update dev300-m58
[ooovba.git] / solenv / inc / tg_obj.mk
blob659af6fdc735d317ce4ded5ff3fbab99ebdd20c7
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_obj.mk,v $
11 # $Revision: 1.16 $
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 #*************************************************************************
32 MKFILENAME:=TG_OBJ.MK
34 .IF "$(OBJTARGET)"!=""
35 $(OBJTARGET): $(OBJFILES) $(IDLOBJFILES)
36 @echo ------------------------------
37 @echo Making: $@
38 .IF "$(GUI)"=="OS2"
39 .IF "$(LIBTARGET)"!="NO"
40 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
41 .ENDIF # "$(LIBTARGET)"!="NO"
42 $(LIBMGR) $(LIBFLAGS) $@ $(&)
43 .ENDIF # "$(GUI)"=="OS2"
45 .IF "$(GUI)"=="WNT"
46 .IF "$(COM)"=="GCC"
47 $(ECHONL) $(foreach,i,$(OBJFILES:f) $(ROBJ)/$(i)) > $@
48 .ELSE # "$(COM)"=="GCC"
49 .IF "$(LIBTARGET)"!="NO"
50 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
51 .ENDIF # "$(LIBTARGET)"!="NO"
52 $(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
53 .ENDIF # "$(COM)"=="GCC"
54 .ENDIF # "$(GUI)"=="WNT"
55 .IF "$(GUI)"=="UNX"
56 echo $(foreach,i,$(OBJFILES:f) $(ROBJ)/$(i:s/.obj/.o/)) | xargs -n1 > $@
57 .IF "$(OS)"=="MACOSX"
58 @-nm `cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump
59 .ELSE
60 @nm `cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump
61 .ENDIF
62 .ENDIF # "$(GUI)"=="UNX"
63 .ENDIF # "$(OBJTARGET)"!=""
66 .IF "$(SECOND_BUILD)"!=""
67 .IF "$($(SECOND_BUILD)OBJTARGET)"!=""
68 $($(SECOND_BUILD)OBJTARGET): $(REAL_$(SECOND_BUILD)_OBJFILES)
69 @echo ------------------------------
70 @echo Making: $@
71 .IF "$(GUI)"=="OS2"
72 .IF "$(LIBTARGET)"!="NO"
73 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
74 .ENDIF # "$(LIBTARGET)"!="NO"
75 $(LIBMGR) $(LIBFLAGS) $@ $(&)
76 .ENDIF # "$(GUI)"=="OS2"
78 .IF "$(GUI)"=="WNT"
79 .IF "$(COM)"=="GCC"
80 # $(LIBMGR) $(LIBFLAGS) $@ $(OBJFILES)
81 $(ECHONL) $(foreach,i,$(REAL_$(SECOND_BUILD)_OBJFILES:f) $(ROBJ)/$(i)) > $@
82 .ELSE
83 .IF "$(LIBTARGET)"!="NO"
84 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
85 .ENDIF # "$(LIBTARGET)"!="NO"
86 $(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
87 .ENDIF
88 .ENDIF # "$(GUI)"=="WNT"
89 .IF "$(GUI)"=="UNX"
90 echo $(foreach,i,$(REAL_$(SECOND_BUILD)_OBJFILES:f) $(ROBJ)/$(i:s/.obj/.o/)) | xargs -n1 >> $@
91 .ENDIF # "$(GUI)"=="UNX"
92 .ENDIF # "$($(SECOND_BUILD)OBJTARGET)"!=""
93 .ENDIF # "$(SECOND_BUILD)"!=""
95 .IF "$(GUI)"=="OS2"
96 .IF "$(LIBTARGET)"!="NO"
97 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
98 .ENDIF # "$(LIBTARGET)"!="NO"
99 $(LIBMGR) $(LIBFLAGS) $@ $(&)
100 .ENDIF # "$(GUI)"=="OS2"