xref: /aoo41x/main/solenv/inc/tg_slo.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir
25cdf0e10cSrcweirMKFILENAME:=TG_SLO.MK
26cdf0e10cSrcweir
27cdf0e10cSrcweir.IF "$(SLOTARGET)"!=""
28cdf0e10cSrcweir$(SLOTARGET): $(SLOFILES) $(IDLSLOFILES)
29cdf0e10cSrcweir.IF "$(MDB)" != ""
30cdf0e10cSrcweir	@echo $(SLOTARGET)
31cdf0e10cSrcweir	@echo $(&:+"\n")
32cdf0e10cSrcweir.ENDIF
33cdf0e10cSrcweir	@echo "Making:   " $(@:f)
34cdf0e10cSrcweir#	@$(RM) $@
35cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
36cdf0e10cSrcweir.IF "$(COM)"=="GCC"
37cdf0e10cSrcweir	+$(ECHONL) $(foreach,i,$(SLOFILES:f) $(RSLO)/$(i)) | xargs -n1 > $@
38cdf0e10cSrcweir.ELSE
39cdf0e10cSrcweir.IF "$(LIBTARGET)"!="NO"
40cdf0e10cSrcweir	@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
41cdf0e10cSrcweir.ENDIF          # "$(LIBTARGET)"!="NO"
42cdf0e10cSrcweir	$(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
43cdf0e10cSrcweir.ENDIF			# "$(COM)"=="GCC"
44cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
45cdf0e10cSrcweir
46cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
47cdf0e10cSrcweir.IF "$(LIBTARGET)"!="NO"
48cdf0e10cSrcweir	@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
49cdf0e10cSrcweir.ENDIF          # "$(LIBTARGET)"!="NO"
50cdf0e10cSrcweir	$(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) $@ $(&)
51cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="OS2"
52cdf0e10cSrcweir
53cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
54cdf0e10cSrcweir	@echo $(foreach,i,$(SLOFILES:f) $(RSLO)/$(i:s/.obj/.o/)) | xargs -n1 > $@
55cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
56cdf0e10cSrcweir	@-nm `cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump
57cdf0e10cSrcweir.ELSE
58cdf0e10cSrcweir	@nm `cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump
59cdf0e10cSrcweir.ENDIF
60cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="UNX"
61cdf0e10cSrcweir.ENDIF			# "$(SLOTARGET)"!=""
62cdf0e10cSrcweir
63cdf0e10cSrcweir.IF "$(SECOND_BUILD)"!=""
64cdf0e10cSrcweir.IF "$($(SECOND_BUILD)SLOTARGET)"!=""
65cdf0e10cSrcweir$($(SECOND_BUILD)SLOTARGET): $(REAL_$(SECOND_BUILD)_SLOFILES)
66cdf0e10cSrcweir.IF "$(MDB)" != ""
67cdf0e10cSrcweir	@echo $(REAL_$(SECOND_BUILD)SLOTARGET)
68cdf0e10cSrcweir	@echo $(&:+"\n")
69cdf0e10cSrcweir.ENDIF
70cdf0e10cSrcweir	@echo "Making:   " $(@:f)
71cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
72cdf0e10cSrcweir.IF "$(COM)"=="GCC"
73cdf0e10cSrcweir	+$(ECHONL) $(foreach,i,$(REAL_$(SECOND_BUILD)_SLOFILES:f) $(RSLO)/$(i)) | xargs -n1 > $@
74cdf0e10cSrcweir.ELSE
75cdf0e10cSrcweir.IF "$(LIBTARGET)"!="NO"
76cdf0e10cSrcweir	@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
77cdf0e10cSrcweir.ENDIF          # "$(LIBTARGET)"!="NO"
78cdf0e10cSrcweir	$(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
79cdf0e10cSrcweir
80cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
81cdf0e10cSrcweir.IF "$(LIBTARGET)"!="NO"
82cdf0e10cSrcweir	@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
83cdf0e10cSrcweir.ENDIF          # "$(LIBTARGET)"!="NO"
84cdf0e10cSrcweir	$(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) $@ $(&)
85cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="OS2"
86cdf0e10cSrcweir
87cdf0e10cSrcweir.ENDIF			# "$(COM)"=="GCC"
88cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
89cdf0e10cSrcweir
90cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
91cdf0e10cSrcweir	@echo $(foreach,i,$(REAL_$(SECOND_BUILD)_SLOFILES:f) $(RSLO)/$(i:s/.obj/.o/)) | xargs -n1 > $@
92cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="UNX"
93cdf0e10cSrcweir.ENDIF			# "$($(SECOND_BUILD)SLOTARGET)"!=""
94cdf0e10cSrcweir.ENDIF			# "$(SECOND_BUILD)"!=""
95