Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / solenv / inc / tg_slo.mk
blob4195ffda1c1dd910caa2569ad9d538cf0fb0fc0e
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
29 MKFILENAME:=TG_SLO.MK
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"
50 .IF "$(GUI)"=="UNX"
51 @echo $(foreach,i,$(SLOFILES:f) $(RSLO)/$(i:s/.obj/.o/)) | xargs -n1 > $@
52 .IF "$(OS)"=="MACOSX"
53 @-nm `cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump
54 .ELSE
55 @nm `cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump
56 .ENDIF
57 .ENDIF # "$(GUI)"=="UNX"
58 .ENDIF # "$(SLOTARGET)"!=""
60 .IF "$(SECOND_BUILD)"!=""
61 .IF "$($(SECOND_BUILD)SLOTARGET)"!=""
62 $($(SECOND_BUILD)SLOTARGET): $(REAL_$(SECOND_BUILD)_SLOFILES)
63 .IF "$(MDB)" != ""
64 @echo $(REAL_$(SECOND_BUILD)SLOTARGET)
65 @echo $(&:+"\n")
66 .ENDIF
67 @echo "Making: " $(@:f)
68 .IF "$(GUI)"=="WNT"
69 .IF "$(COM)"=="GCC"
70 +$(ECHONL) $(foreach,i,$(REAL_$(SECOND_BUILD)_SLOFILES:f) $(RSLO)/$(i)) | xargs -n1 > $@
71 .ELSE
72 .IF "$(LIBTARGET)"!="NO"
73 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
74 .ENDIF # "$(LIBTARGET)"!="NO"
75 $(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
77 .ENDIF # "$(COM)"=="GCC"
78 .ENDIF # "$(GUI)"=="WNT"
80 .IF "$(GUI)"=="UNX"
81 @echo $(foreach,i,$(REAL_$(SECOND_BUILD)_SLOFILES:f) $(RSLO)/$(i:s/.obj/.o/)) | xargs -n1 > $@
82 .ENDIF # "$(GUI)"=="UNX"
83 .ENDIF # "$($(SECOND_BUILD)SLOTARGET)"!=""
84 .ENDIF # "$(SECOND_BUILD)"!=""