xref: /trunk/main/solenv/inc/tg_rslb.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24#######################################################
25# unroll begin
26
27.IF "$(RESLIB$(TNR)TARGETN)"!=""
28
29$(RSC_MULTI$(TNR)) : \
30		$(RESLIB$(TNR)SRSFILES) \
31		$(RESLIB$(TNR)TARGETN) \
32		$(RESLIB$(TNR)BMPS)
33	@echo Compiling: $(@:f)
34.IF "$(common_build_reslib)"!=""
35	$(COMMAND_ECHO)$(RSC) -presponse $(VERBOSITY) @$(mktmp \
36	-r -p \
37	$(foreach,i,$(alllangiso) -lg$i \
38	$(null,$(rescharset_{$i}) $(default$(LANG_GUI)) $(rescharset_{$i})) \
39	-fs={$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(BIN))/$(RESLIB$(TNR)NAME)$i.res} \
40    $(foreach,j,$(subst,$(PRJ),$(SOLARSRC)/$(RSCDEFIMG)/$(PRJNAME) $(RESLIB$(TNR)IMAGES)) -lip={$j}/$i \
41    -lip={$j} ) \
42    -lip=$(SOLARSRC)/$(RSCDEFIMG)/res/$i -lip=$(SOLARSRC)/$(RSCDEFIMG)/res \
43    -lip=$(SOLARSRC)/$(RSCDEFIMG)/$i -lip=$(SOLARSRC)/$(RSCDEFIMG) ) \
44	-subMODULE=$(SOLARSRC)/$(RSCDEFIMG) \
45	-subGLOBALRES=$(SOLARSRC)/$(RSCDEFIMG)/res \
46    -oil={$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(BIN))} \
47    -ft=$@ \
48	$(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \
49	) > $(NULLDEV)
50.ELSE			# "$(common_build_reslib)"!=""
51	$(COMMAND_ECHO)$(RSC) -presponse $(VERBOSITY) @$(mktmp \
52	-r -p \
53	$(foreach,i,$(alllangiso) -lg$i \
54	$(null,$(rescharset_{$i}) $(default$(LANG_GUI)) $(rescharset_{$i})) \
55	-fs={$(BIN)/$(RESLIB$(TNR)NAME)$i.res} \
56    $(foreach,j,$(subst,$(PRJ),$(SOLARSRC)/$(RSCDEFIMG)/$(PRJNAME) $(RESLIB$(TNR)IMAGES)) -lip={$j}/$i \
57    -lip={$j} ) \
58    -lip=$(SOLARSRC)/$(RSCDEFIMG)/res/$i -lip=$(SOLARSRC)/$(RSCDEFIMG)/res \
59    -lip=$(SOLARSRC)/$(RSCDEFIMG)/$i -lip=$(SOLARSRC)/$(RSCDEFIMG) ) \
60	-subMODULE=$(SOLARSRC)/$(RSCDEFIMG) \
61	-subGLOBALRES=$(SOLARSRC)/$(RSCDEFIMG)/res \
62    -oil=$(BIN) \
63    -ft=$@ \
64	$(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \
65	) > $(NULLDEV)
66.ENDIF			# "$(common_build_reslib)"!=""
67
68$(RESLIB$(TNR)TARGETN): \
69		$(RESLIB$(TNR)SRSFILES) \
70		$(RESLIB$(TNR)BMPS)
71	@echo "Making:   " $(@:f)
72.IF "$(GUI)"=="UNX"
73.IF "$(common_build_reslib)"!=""
74    @@-$(RM) $(RSC_MULTI$(TNR))
75.ELSE			# "$(common_build_reslib)"!=""
76    @@-$(RM) $(RSC_MULTI$(TNR))
77.ENDIF			# "$(common_build_reslib)"!=""
78.ELSE				# "$(GUI)"=="UNX"
79.IF "$(common_build_reslib)"!=""
80    @@-$(RM) $(RSC_MULTI$(TNR))
81.ELSE			# "$(common_build_reslib)"!=""
82    @@-$(RM) $(RSC_MULTI$(TNR))
83.ENDIF			# "$(common_build_reslib)"!=""
84.ENDIF              # "$(GUI)"=="UNX"
85.ENDIF				# "$(RESLIB$(TNR)TARGETN)"!=""
86
87
88# unroll end
89#######################################################
90
91