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