xref: /aoo41x/main/solenv/inc/_tg_scp.mk (revision d71964d5)
1*d71964d5SAndrew Rist# *************************************************************
2*d71964d5SAndrew Rist#
3*d71964d5SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*d71964d5SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*d71964d5SAndrew Rist#  distributed with this work for additional information
6*d71964d5SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*d71964d5SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*d71964d5SAndrew Rist#  "License"); you may not use this file except in compliance
9*d71964d5SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*d71964d5SAndrew Rist#
11*d71964d5SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*d71964d5SAndrew Rist#
13*d71964d5SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*d71964d5SAndrew Rist#  software distributed under the License is distributed on an
15*d71964d5SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d71964d5SAndrew Rist#  KIND, either express or implied.  See the License for the
17*d71964d5SAndrew Rist#  specific language governing permissions and limitations
18*d71964d5SAndrew Rist#  under the License.
19*d71964d5SAndrew Rist#
20*d71964d5SAndrew Rist# *************************************************************
21cdf0e10cSrcweir# unroll begin
22cdf0e10cSrcweir
23cdf0e10cSrcweir.IF "$(SCP1TARGETN)"!=""
24cdf0e10cSrcweir
25cdf0e10cSrcweir# try to get missing parfiles
26cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
27cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
28cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
29cdf0e10cSrcweir
30cdf0e10cSrcweirLOCALSCP1FILES+=$(foreach,i,$(SCP1FILES) $(foreach,j,$(SCP1LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
31cdf0e10cSrcweir
32cdf0e10cSrcweir$(SCP1TARGETN): $(LOCALSCP1FILES)
33cdf0e10cSrcweir	@echo "Making:   " $(@:f)
34cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP1LINK_PRODUCT_TYPE)
35cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP1FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
36cdf0e10cSrcweir.ENDIF
37cdf0e10cSrcweir
38cdf0e10cSrcweir# Anweisungen fuer das Linken
39cdf0e10cSrcweir# unroll begin
40cdf0e10cSrcweir
41cdf0e10cSrcweir.IF "$(SCP2TARGETN)"!=""
42cdf0e10cSrcweir
43cdf0e10cSrcweir# try to get missing parfiles
44cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
45cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
46cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
47cdf0e10cSrcweir
48cdf0e10cSrcweirLOCALSCP2FILES+=$(foreach,i,$(SCP2FILES) $(foreach,j,$(SCP2LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
49cdf0e10cSrcweir
50cdf0e10cSrcweir$(SCP2TARGETN): $(LOCALSCP2FILES)
51cdf0e10cSrcweir	@echo "Making:   " $(@:f)
52cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP2LINK_PRODUCT_TYPE)
53cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP2FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
54cdf0e10cSrcweir.ENDIF
55cdf0e10cSrcweir
56cdf0e10cSrcweir# Anweisungen fuer das Linken
57cdf0e10cSrcweir# unroll begin
58cdf0e10cSrcweir
59cdf0e10cSrcweir.IF "$(SCP3TARGETN)"!=""
60cdf0e10cSrcweir
61cdf0e10cSrcweir# try to get missing parfiles
62cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
63cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
64cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
65cdf0e10cSrcweir
66cdf0e10cSrcweirLOCALSCP3FILES+=$(foreach,i,$(SCP3FILES) $(foreach,j,$(SCP3LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
67cdf0e10cSrcweir
68cdf0e10cSrcweir$(SCP3TARGETN): $(LOCALSCP3FILES)
69cdf0e10cSrcweir	@echo "Making:   " $(@:f)
70cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP3LINK_PRODUCT_TYPE)
71cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP3FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
72cdf0e10cSrcweir.ENDIF
73cdf0e10cSrcweir
74cdf0e10cSrcweir# Anweisungen fuer das Linken
75cdf0e10cSrcweir# unroll begin
76cdf0e10cSrcweir
77cdf0e10cSrcweir.IF "$(SCP4TARGETN)"!=""
78cdf0e10cSrcweir
79cdf0e10cSrcweir# try to get missing parfiles
80cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
81cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
82cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
83cdf0e10cSrcweir
84cdf0e10cSrcweirLOCALSCP4FILES+=$(foreach,i,$(SCP4FILES) $(foreach,j,$(SCP4LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
85cdf0e10cSrcweir
86cdf0e10cSrcweir$(SCP4TARGETN): $(LOCALSCP4FILES)
87cdf0e10cSrcweir	@echo "Making:   " $(@:f)
88cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP4LINK_PRODUCT_TYPE)
89cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP4FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
90cdf0e10cSrcweir.ENDIF
91cdf0e10cSrcweir
92cdf0e10cSrcweir# Anweisungen fuer das Linken
93cdf0e10cSrcweir# unroll begin
94cdf0e10cSrcweir
95cdf0e10cSrcweir.IF "$(SCP5TARGETN)"!=""
96cdf0e10cSrcweir
97cdf0e10cSrcweir# try to get missing parfiles
98cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
99cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
100cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
101cdf0e10cSrcweir
102cdf0e10cSrcweirLOCALSCP5FILES+=$(foreach,i,$(SCP5FILES) $(foreach,j,$(SCP5LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
103cdf0e10cSrcweir
104cdf0e10cSrcweir$(SCP5TARGETN): $(LOCALSCP5FILES)
105cdf0e10cSrcweir	@echo "Making:   " $(@:f)
106cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP5LINK_PRODUCT_TYPE)
107cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP5FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
108cdf0e10cSrcweir.ENDIF
109cdf0e10cSrcweir
110cdf0e10cSrcweir# Anweisungen fuer das Linken
111cdf0e10cSrcweir# unroll begin
112cdf0e10cSrcweir
113cdf0e10cSrcweir.IF "$(SCP6TARGETN)"!=""
114cdf0e10cSrcweir
115cdf0e10cSrcweir# try to get missing parfiles
116cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
117cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
118cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
119cdf0e10cSrcweir
120cdf0e10cSrcweirLOCALSCP6FILES+=$(foreach,i,$(SCP6FILES) $(foreach,j,$(SCP6LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
121cdf0e10cSrcweir
122cdf0e10cSrcweir$(SCP6TARGETN): $(LOCALSCP6FILES)
123cdf0e10cSrcweir	@echo "Making:   " $(@:f)
124cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP6LINK_PRODUCT_TYPE)
125cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP6FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
126cdf0e10cSrcweir.ENDIF
127cdf0e10cSrcweir
128cdf0e10cSrcweir# Anweisungen fuer das Linken
129cdf0e10cSrcweir# unroll begin
130cdf0e10cSrcweir
131cdf0e10cSrcweir.IF "$(SCP7TARGETN)"!=""
132cdf0e10cSrcweir
133cdf0e10cSrcweir# try to get missing parfiles
134cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
135cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
136cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
137cdf0e10cSrcweir
138cdf0e10cSrcweirLOCALSCP7FILES+=$(foreach,i,$(SCP7FILES) $(foreach,j,$(SCP7LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
139cdf0e10cSrcweir
140cdf0e10cSrcweir$(SCP7TARGETN): $(LOCALSCP7FILES)
141cdf0e10cSrcweir	@echo "Making:   " $(@:f)
142cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP7LINK_PRODUCT_TYPE)
143cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP7FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
144cdf0e10cSrcweir.ENDIF
145cdf0e10cSrcweir
146cdf0e10cSrcweir# Anweisungen fuer das Linken
147cdf0e10cSrcweir# unroll begin
148cdf0e10cSrcweir
149cdf0e10cSrcweir.IF "$(SCP8TARGETN)"!=""
150cdf0e10cSrcweir
151cdf0e10cSrcweir# try to get missing parfiles
152cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
153cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
154cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
155cdf0e10cSrcweir
156cdf0e10cSrcweirLOCALSCP8FILES+=$(foreach,i,$(SCP8FILES) $(foreach,j,$(SCP8LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
157cdf0e10cSrcweir
158cdf0e10cSrcweir$(SCP8TARGETN): $(LOCALSCP8FILES)
159cdf0e10cSrcweir	@echo "Making:   " $(@:f)
160cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP8LINK_PRODUCT_TYPE)
161cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP8FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
162cdf0e10cSrcweir.ENDIF
163cdf0e10cSrcweir
164cdf0e10cSrcweir# Anweisungen fuer das Linken
165cdf0e10cSrcweir# unroll begin
166cdf0e10cSrcweir
167cdf0e10cSrcweir.IF "$(SCP9TARGETN)"!=""
168cdf0e10cSrcweir
169cdf0e10cSrcweir# try to get missing parfiles
170cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
171cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
172cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
173cdf0e10cSrcweir
174cdf0e10cSrcweirLOCALSCP9FILES+=$(foreach,i,$(SCP9FILES) $(foreach,j,$(SCP9LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
175cdf0e10cSrcweir
176cdf0e10cSrcweir$(SCP9TARGETN): $(LOCALSCP9FILES)
177cdf0e10cSrcweir	@echo "Making:   " $(@:f)
178cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP9LINK_PRODUCT_TYPE)
179cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP9FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
180cdf0e10cSrcweir.ENDIF
181cdf0e10cSrcweir
182cdf0e10cSrcweir# Anweisungen fuer das Linken
183cdf0e10cSrcweir# unroll begin
184cdf0e10cSrcweir
185cdf0e10cSrcweir.IF "$(SCP10TARGETN)"!=""
186cdf0e10cSrcweir
187cdf0e10cSrcweir# try to get missing parfiles
188cdf0e10cSrcweir$(PAR)/%.par : $(SOLARPARDIR)/%.par
189cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d:d)
190cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $< $@
191cdf0e10cSrcweir
192cdf0e10cSrcweirLOCALSCP10FILES+=$(foreach,i,$(SCP10FILES) $(foreach,j,$(SCP10LINK_PRODUCT_TYPE) $(PAR)/$j/$i ))
193cdf0e10cSrcweir
194cdf0e10cSrcweir$(SCP10TARGETN): $(LOCALSCP10FILES)
195cdf0e10cSrcweir	@echo "Making:   " $(@:f)
196cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)/$(SCP10LINK_PRODUCT_TYPE)
197cdf0e10cSrcweir	$(COMMAND_ECHO)$(SCPLINK) $(SCPLINKFLAGS) @@$(mktmp $(foreach,i,$(SCP10FILES) $(subst,$(@:d:d:d), $(@:d:d))/$(i:+","))) -o $@
198cdf0e10cSrcweir.ENDIF
199cdf0e10cSrcweir
200cdf0e10cSrcweir# Anweisungen fuer das Linken
201