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