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_slo.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 #*************************************************************************
35 .IF
"$(SLOTARGET)"!=""
36 $(SLOTARGET
): $(SLOFILES
) $(IDLSLOFILES
)
41 .IF
"$(VERBOSE)" == "TRUE"
42 @echo
------------------------------
44 @echo
"Making: " $(@
:f
)
48 +$(ECHONL
) $(foreach,i
,$(SLOFILES
:f
) $(RSLO
)/$(i
)) | xargs
-n1
> $@
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"
58 .IF
"$(LIBTARGET)"!="NO"
59 @
-$(TYPE
) $(mktmp
$(&:+"\n")) > $(@
:s
/.lib
/.lin
/)
60 .ENDIF
# "$(LIBTARGET)"!="NO"
61 $(COMMAND_ECHO
)$(LIBMGR
) $(LIBFLAGS
) $@
$(&)
62 .ENDIF
# "$(GUI)"=="OS2"
65 @echo
$(foreach,i
,$(SLOFILES
:f
) $(RSLO
)/$(i
:s
/.obj
/.o
/)) | xargs
-n1
> $@
67 @
-nm
`cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@
:d
)$(@
:b
).dump
69 @nm
`cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@
:d
)$(@
:b
).dump
71 .ENDIF
# "$(GUI)"=="UNX"
72 .ENDIF
# "$(SLOTARGET)"!=""
74 .IF
"$(SECOND_BUILD)"!=""
75 .IF
"$($(SECOND_BUILD)SLOTARGET)"!=""
76 $($(SECOND_BUILD
)SLOTARGET
): $(REAL_
$(SECOND_BUILD
)_SLOFILES
)
78 @echo
$(REAL_
$(SECOND_BUILD
)SLOTARGET
)
81 .IF
"$(VERBOSE)" == "TRUE"
82 @echo
------------------------------
84 @echo
"Making: " $(@
:f
)
87 +$(ECHONL
) $(foreach,i
,$(REAL_
$(SECOND_BUILD
)_SLOFILES
:f
) $(RSLO
)/$(i
)) | xargs
-n1
> $@
89 .IF
"$(LIBTARGET)"!="NO"
90 @
-$(TYPE
) $(mktmp
$(&:+"\n")) > $(@
:s
/.lib
/.lin
/)
91 .ENDIF
# "$(LIBTARGET)"!="NO"
92 $(COMMAND_ECHO
)$(LIBMGR
) $(LIBFLAGS
) /OUT
:$@ @
$(mktmp
$(&:+"\n"))
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"
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)"!=""