xref: /aoo42x/main/solenv/inc/tg_slo.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28
29MKFILENAME:=TG_SLO.MK
30
31.IF "$(SLOTARGET)"!=""
32$(SLOTARGET): $(SLOFILES) $(IDLSLOFILES)
33.IF "$(MDB)" != ""
34	@echo $(SLOTARGET)
35	@echo $(&:+"\n")
36.ENDIF
37	@echo "Making:   " $(@:f)
38#	@$(RM) $@
39.IF "$(GUI)"=="WNT"
40.IF "$(COM)"=="GCC"
41	+$(ECHONL) $(foreach,i,$(SLOFILES:f) $(RSLO)/$(i)) | xargs -n1 > $@
42.ELSE
43.IF "$(LIBTARGET)"!="NO"
44	@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
45.ENDIF          # "$(LIBTARGET)"!="NO"
46	$(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
47.ENDIF			# "$(COM)"=="GCC"
48.ENDIF			# "$(GUI)"=="WNT"
49
50.IF "$(GUI)"=="OS2"
51.IF "$(LIBTARGET)"!="NO"
52	@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
53.ENDIF          # "$(LIBTARGET)"!="NO"
54	$(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) $@ $(&)
55.ENDIF			# "$(GUI)"=="OS2"
56
57.IF "$(GUI)"=="UNX"
58	@echo $(foreach,i,$(SLOFILES:f) $(RSLO)/$(i:s/.obj/.o/)) | xargs -n1 > $@
59.IF "$(OS)"=="MACOSX"
60	@-nm `cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump
61.ELSE
62	@nm `cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump
63.ENDIF
64.ENDIF			# "$(GUI)"=="UNX"
65.ENDIF			# "$(SLOTARGET)"!=""
66
67.IF "$(SECOND_BUILD)"!=""
68.IF "$($(SECOND_BUILD)SLOTARGET)"!=""
69$($(SECOND_BUILD)SLOTARGET): $(REAL_$(SECOND_BUILD)_SLOFILES)
70.IF "$(MDB)" != ""
71	@echo $(REAL_$(SECOND_BUILD)SLOTARGET)
72	@echo $(&:+"\n")
73.ENDIF
74	@echo "Making:   " $(@:f)
75.IF "$(GUI)"=="WNT"
76.IF "$(COM)"=="GCC"
77	+$(ECHONL) $(foreach,i,$(REAL_$(SECOND_BUILD)_SLOFILES:f) $(RSLO)/$(i)) | xargs -n1 > $@
78.ELSE
79.IF "$(LIBTARGET)"!="NO"
80	@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
81.ENDIF          # "$(LIBTARGET)"!="NO"
82	$(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
83
84.IF "$(GUI)"=="OS2"
85.IF "$(LIBTARGET)"!="NO"
86	@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
87.ENDIF          # "$(LIBTARGET)"!="NO"
88	$(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) $@ $(&)
89.ENDIF			# "$(GUI)"=="OS2"
90
91.ENDIF			# "$(COM)"=="GCC"
92.ENDIF			# "$(GUI)"=="WNT"
93
94.IF "$(GUI)"=="UNX"
95	@echo $(foreach,i,$(REAL_$(SECOND_BUILD)_SLOFILES:f) $(RSLO)/$(i:s/.obj/.o/)) | xargs -n1 > $@
96.ENDIF			# "$(GUI)"=="UNX"
97.ENDIF			# "$($(SECOND_BUILD)SLOTARGET)"!=""
98.ENDIF			# "$(SECOND_BUILD)"!=""
99