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_rslb.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 #*************************************************************************
32 #######################################################
35 .IF
"$(RESLIB$(TNR)TARGETN)"!=""
37 .IF
"$(BUILDHIDS)"!=""
38 HIDRES
$(TNR
)PARTICLE
=$(subst,$(OUTPATH
),$(COMMON_OUTDIR
) $(MISC
))/$(RESLIB
$(TNR
)NAME
)_res.hid
40 #HACK cut off the dirty srs files which are included from solver
41 RESLIB
$(TNR
)HIDFILES
:=$(subst,$(OUTPATH
),$(COMMON_OUTDIR
) $(subst,.srs
,_srs.hid
$(RESLIB
$(TNR
)SRSFILES
)))
42 $(HIDRES
$(TNR
)PARTICLE
): $(RESLIB
$(TNR
)HIDFILES
)
43 .IF
"$(VERBOSE)" == "TRUE"
44 @echo
------------------------------
46 @echo
"Making: " $(@
:f
)
47 @
$(IFEXIST
) $@
$(THEN
) $(RM
:s
/+//) $@
$(FI
)
48 # need to strip since solaris cannot handle tab-only whitespace here
49 $(COMMAND_ECHO
)$(TYPE
) $(mktmp
$(strip, $(subst,/,/ $(RESLIB
$(TNR
)HIDFILES
))) )| xargs
-s
1000 cat
> $@.
$(ROUT
).tmp
50 @
$(RENAME
) $@.
$(ROUT
).tmp
$@
52 ALLTAR
: $(HIDRES
$(TNR
)PARTICLE
)
54 .ENDIF
# "$(BUILDHIDS)"!=""
56 $(RSC_MULTI
$(TNR
)) : \
57 $(RESLIB
$(TNR
)SRSFILES
) \
58 $(RESLIB
$(TNR
)TARGETN
) \
60 @echo Compiling
: $(@
:f
)
61 .IF
"$(common_build_reslib)"!=""
62 $(COMMAND_ECHO
)$(RSC
) -presponse
$(VERBOSITY
) @
$(mktmp \
64 $(foreach,i
,$(alllangiso
) -lg
$i \
65 $(null
,$(rescharset_
{$i}) $(default
$(LANG_GUI
)) $(rescharset_
{$i})) \
66 -fs
={$(subst,$(OUTPATH
),$(COMMON_OUTDIR
) $(BIN
))/$(RESLIB
$(TNR
)NAME
)$i.res
} \
67 $(foreach,j
,$(subst,$(PRJ
),$(SOLARSRC
)/$(RSCDEFIMG
)/$(PRJNAME
) $(RESLIB
$(TNR
)IMAGES
)) -lip
={$j}/$i \
69 -lip
=$(SOLARSRC
)/$(RSCDEFIMG
)/res
/$i -lip
=$(SOLARSRC
)/$(RSCDEFIMG
)/res
) \
70 -subMODULE
=$(SOLARSRC
)/$(RSCDEFIMG
) \
71 -subGLOBALRES
=$(SOLARSRC
)/$(RSCDEFIMG
)/res \
72 -oil
={$(subst,$(OUTPATH
),$(COMMON_OUTDIR
) $(BIN
))} \
74 $(RSC
$(TNR
)HEADER
) $(RESLIB
$(TNR
)SRSFILES
) \
76 .ELSE
# "$(common_build_reslib)"!=""
77 $(COMMAND_ECHO
)$(RSC
) -presponse
$(VERBOSITY
) @
$(mktmp \
79 $(foreach,i
,$(alllangiso
) -lg
$i \
80 $(null
,$(rescharset_
{$i}) $(default
$(LANG_GUI
)) $(rescharset_
{$i})) \
81 -fs
={$(BIN
)/$(RESLIB
$(TNR
)NAME
)$i.res
} \
82 $(foreach,j
,$(subst,$(PRJ
),$(SOLARSRC
)/$(RSCDEFIMG
)/$(PRJNAME
) $(RESLIB
$(TNR
)IMAGES
)) -lip
={$j}/$i \
84 -lip
=$(SOLARSRC
)/$(RSCDEFIMG
)/res
/$i -lip
=$(SOLARSRC
)/$(RSCDEFIMG
)/res
) \
85 -subMODULE
=$(SOLARSRC
)/$(RSCDEFIMG
) \
86 -subGLOBALRES
=$(SOLARSRC
)/$(RSCDEFIMG
)/res \
89 $(RSC
$(TNR
)HEADER
) $(RESLIB
$(TNR
)SRSFILES
) \
91 .ENDIF
# "$(common_build_reslib)"!=""
93 $(RESLIB
$(TNR
)TARGETN
): \
94 $(RESLIB
$(TNR
)SRSFILES
) \
96 @echo
"Making: " $(@
:f
)
98 .IF
"$(common_build_reslib)"!=""
99 @@
-$(RM
) $(RSC_MULTI
$(TNR
))
100 .ELSE
# "$(common_build_reslib)"!=""
101 @@
-$(RM
) $(RSC_MULTI
$(TNR
))
102 .ENDIF
# "$(common_build_reslib)"!=""
103 .ELSE
# "$(GUI)"=="UNX"
104 .IF
"$(common_build_reslib)"!=""
105 @@
-$(RM
) $(RSC_MULTI
$(TNR
))
106 .ELSE
# "$(common_build_reslib)"!=""
107 @@
-$(RM
) $(RSC_MULTI
$(TNR
))
108 .ENDIF
# "$(common_build_reslib)"!=""
109 .ENDIF
# "$(GUI)"=="UNX"
110 .ENDIF
# "$(RESLIB$(TNR)TARGETN)"!=""
114 #######################################################