1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
#*************************************************************************
#*
#* $Workfile: tg_rslb.mk $
#*
#* Ersterstellung XX TT.MM.JJ
#* Letzte Aenderung $Author: hr $ $Date: 2000-09-20 14:43:17 $
#* $Revision: 1.1.1.1 $
#*
#* $Logfile: T:/solar/inc/tg_rslb.mkv $
#*
#* Copyright (c) 1990-1997, STAR DIVISION
#*
#*************************************************************************
.IF "$(MULTI_RESLIB_FLAG)" == ""
$(RESLIB1TARGETN) .NULL : RESLIB1
$(RESLIB2TARGETN) .NULL : RESLIB2
$(RESLIB3TARGETN) .NULL : RESLIB3
$(RESLIB4TARGETN) .NULL : RESLIB4
$(RESLIB5TARGETN) .NULL : RESLIB5
$(RESLIB6TARGETN) .NULL : RESLIB6
$(RESLIB7TARGETN) .NULL : RESLIB7
$(RESLIB8TARGETN) .NULL : RESLIB8
$(RESLIB9TARGETN) .NULL : RESLIB9
.ENDIF
.IF "$(MULTI_RESLIB_FLAG)"==""
RESLIB1 RESLIB2 RESLIB3 RESLIB4 RESLIB5 RESLIB6 RESLIB7 RESLIB8 RESLIB9:
.IF "$(GUI)"!="MAC"
.IF "$(GUI)"=="UNX"
@dmake $(RESLIB$(TNR)TARGETN) solarlang=$(solarlang) MULTI_RESLIB_FLAG=true TNR:=$(TNR) $(MFLAGS) $(CALLMACROS)
.ELSE
dmake $(RESLIB$(TNR)TARGETN) solarlang=$(solarlang) MULTI_RESLIB_FLAG=true TNR:=$(TNR) $(MFLAGS) $(CALLMACROS)
.ENDIF
.ELSE
@dmake "$(RESLIB$(TNR)TARGETN)" MULTI_RESLIB_FLAG=true TNR:=$(TNR) $(MFLAGS) $(CALLMACROS)
.ENDIF
.ELSE
#######################################################
# Anweisungen fuer das Linken
# unroll begin
.IF "$(RESLIB$(TNR)TARGETN)"!=""
$(RESLIB$(TNR)TARGETN): \
$(RESLIB$(TNR)SRSFILES) \
$(RESLIB$(TNR)BMPS)
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(NO_REC_RES)"!=""
.IF "$(common_build_reslib)"!=""
$(RSC) -presponse @$(mktmp \
-r \
$(rsclang_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
$(rescharset_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-I{$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(RES))}$/$(langext_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-fs{$(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)} \
-I{$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(RES))}$/$(defaultlangext) \
-I$(PRJ)$/$(GUIBASE)$/res -I$(PRJ)$/res -I$(PRJ)$/win$/res -I$(PRJ)$/..$/res -I$(RSCLOCINC) -I$(RSCGLOINC) -I$(INC) $(SOLARINC) \
$(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \
)
+$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.new >& $(NULLDEV)
+-$(RM) $@ >& $(NULLDEV)
+$(RENAME) $@.new $@
.ELSE # "$(common_build_reslib)"!=""
$(RSC) -presponse @$(mktmp \
-r \
$(rsclang_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
$(rescharset_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-I$(RES)$/$(langext_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-fs$@ \
-I$(PRJ)$/$(INPATH)$/res$/$(defaultlangext) \
-I$(PRJ)$/$(GUIBASE)$/res -I$(PRJ)$/res -I$(PRJ)$/win$/res -I$(PRJ)$/..$/res -I$(RSCLOCINC) -I$(RSCGLOINC) -I$(INC) $(SOLARINC) \
$(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \
)
.ENDIF # "$(common_build_reslib)"!=""
.ELSE # "$(NO_REC_RES)"!=""
$(RSC) -presponse @$(mktmp \
-r \
$(rsclang_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
$(rescharset_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-I$(RES) \
-fs$@ \
-I$(PRJ)$/$(INPATH)$/res \
-I$(PRJ)$/$(GUIBASE)$/res -I$(PRJ)$/res -I$(PRJ)$/win$/res -I$(PRJ)$/..$/res -I$(RSCLOCINC) -I$(RSCGLOINC) -I$(INC) $(SOLARINC) \
$(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \
)
.ENDIF # "$(NO_REC_RES)"!=""
.ELSE # "$(GUI)"=="UNX"
.IF "$(NO_REC_RES)"!=""
.IF "$(common_build_reslib)"!=""
$(RSC) -presponse @$(mktmp \
$(rsclang_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
$(rescharset_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-I{$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(RES))}$/$(langext_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-fs{$(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)} \
-r -p \
-I$(RES) \
-I{$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(RES))}$/$(defaultlangext) \
-I$(PRJ)$/$(GUIBASE)$/res -I$(PRJ)$/res -I$(RSCLOCINC) -I$(RSCGLOINC) -I$(INCLUDE) \
$(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \
)
+-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.new >& $(NULLDEV)
+-$(RM) $@ >& $(NULLDEV)
+$(RENAME) $@.new $@
.ELSE # "$(common_build_reslib)"!=""
$(RSC) -presponse @$(mktmp \
$(rsclang_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
$(rescharset_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-I$(RES)$/$(langext_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-fs$@ \
-r -p \
-I$(RES) \
-I$(PRJ)$/$(INPATH)$/res$/$(defaultlangext) \
-I$(PRJ)$/$(GUIBASE)$/res -I$(PRJ)$/res -I$(RSCLOCINC) -I$(RSCGLOINC) -I$(INCLUDE) \
$(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \
)
.ENDIF # "$(common_build_reslib)"!=""
.ELSE # "$(NO_REC_RES)"!=""
$(RSC) -presponse @$(mktmp \
$(rsclang_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
$(rescharset_{$(subst,$(RESLIB$(TNR)NAME)$(UPD), $(@:b))}) \
-I$(RES) \
-fs$@ \
-r -p \
-I$(RES) \
-I$(PRJ)$/$(INPATH)$/res \
-I$(PRJ)$/$(GUIBASE)$/res -I$(PRJ)$/res -I$(RSCLOCINC) -I$(RSCGLOINC) -I$(INCLUDE) \
$(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \
)
.ENDIF # "$(NO_REC_RES)"!=""
.ENDIF # "$(GUI)"=="UNX"
.ENDIF # "$(RESLIB$(TNR)TARGETN)"!=""
# Anweisungen fuer das Linken
# unroll end
#######################################################
.ENDIF # "$(MULTI_RESLIB_FLAG)"==""
|