1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: tg_obj.mk,v $
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 #*************************************************************************
34 .IF
"$(OBJTARGET)"!=""
35 $(OBJTARGET
): $(OBJFILES
) $(IDLOBJFILES
)
36 @echo
------------------------------
39 .IF
"$(LIBTARGET)"!="NO"
40 @
-$(TYPE
) $(mktmp
$(&:+"\n")) > $(@
:s
/.lib
/.lin
/)
41 .ENDIF
# "$(LIBTARGET)"!="NO"
42 $(LIBMGR
) $(LIBFLAGS
) $@
$(&)
43 .ENDIF
# "$(GUI)"=="OS2"
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"
56 echo
$(foreach,i
,$(OBJFILES
:f
) $(ROBJ
)/$(i
:s
/.obj
/.o
/)) | xargs
-n1
> $@
58 @
-nm
`cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@
:d
)$(@
:b
).dump
60 @nm
`cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@
:d
)$(@
:b
).dump
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
------------------------------
72 .IF
"$(LIBTARGET)"!="NO"
73 @
-$(TYPE
) $(mktmp
$(&:+"\n")) > $(@
:s
/.lib
/.lin
/)
74 .ENDIF
# "$(LIBTARGET)"!="NO"
75 $(LIBMGR
) $(LIBFLAGS
) $@
$(&)
76 .ENDIF
# "$(GUI)"=="OS2"
80 # $(LIBMGR) $(LIBFLAGS) $@ $(OBJFILES)
81 $(ECHONL
) $(foreach,i
,$(REAL_
$(SECOND_BUILD
)_OBJFILES
:f
) $(ROBJ
)/$(i
)) > $@
83 .IF
"$(LIBTARGET)"!="NO"
84 @
-$(TYPE
) $(mktmp
$(&:+"\n")) > $(@
:s
/.lib
/.lin
/)
85 .ENDIF
# "$(LIBTARGET)"!="NO"
86 $(LIBMGR
) $(LIBFLAGS
) /OUT
:$@ @
$(mktmp
$(&:+"\n"))
88 .ENDIF
# "$(GUI)"=="WNT"
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)"!=""
96 .IF
"$(LIBTARGET)"!="NO"
97 @
-$(TYPE
) $(mktmp
$(&:+"\n")) > $(@
:s
/.lib
/.lin
/)
98 .ENDIF
# "$(LIBTARGET)"!="NO"
99 $(LIBMGR
) $(LIBFLAGS
) $@
$(&)
100 .ENDIF
# "$(GUI)"=="OS2"