1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
31 .IF
"$(SLOTARGET)"!=""
32 $(SLOTARGET
): $(SLOFILES
) $(IDLSLOFILES
)
37 @echo
"Making: " $(@
:f
)
41 +$(ECHONL
) $(foreach,i
,$(SLOFILES
:f
) $(RSLO
)/$(i
)) | xargs
-n1
> $@
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"
51 @echo
$(foreach,i
,$(SLOFILES
:f
) $(RSLO
)/$(i
:s
/.obj
/.o
/)) | xargs
-n1
> $@
53 @
-nm
`cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@
:d
)$(@
:b
).dump
55 @nm
`cat $(SLOTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@
:d
)$(@
:b
).dump
57 .ENDIF
# "$(GUI)"=="UNX"
58 .ENDIF
# "$(SLOTARGET)"!=""
60 .IF
"$(SECOND_BUILD)"!=""
61 .IF
"$($(SECOND_BUILD)SLOTARGET)"!=""
62 $($(SECOND_BUILD
)SLOTARGET
): $(REAL_
$(SECOND_BUILD
)_SLOFILES
)
64 @echo
$(REAL_
$(SECOND_BUILD
)SLOTARGET
)
67 @echo
"Making: " $(@
:f
)
70 +$(ECHONL
) $(foreach,i
,$(REAL_
$(SECOND_BUILD
)_SLOFILES
:f
) $(RSLO
)/$(i
)) | xargs
-n1
> $@
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"
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)"!=""