tg_app.mk (7871dc3e) tg_app.mk (534c536d)
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

--- 230 unchanged lines hidden (view full) ---

239 $(COMMAND_ECHO)$(TYPE) $(@) $(@:d)unloader.exe > $(@:d)_new.exe
240 $(COMMAND_ECHO)$(RM) $@
241 $(COMMAND_ECHO)$(RENAME) $(@:d)_new.exe $(@:d)loader.exe
242.ENDIF # "$(TARGET)" == "setup"
243
244.ENDIF # "$(GUI)" == "WNT"
245
246.IF "$(GUI)" == "OS2"
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

--- 230 unchanged lines hidden (view full) ---

239 $(COMMAND_ECHO)$(TYPE) $(@) $(@:d)unloader.exe > $(@:d)_new.exe
240 $(COMMAND_ECHO)$(RM) $@
241 $(COMMAND_ECHO)$(RENAME) $(@:d)_new.exe $(@:d)loader.exe
242.ENDIF # "$(TARGET)" == "setup"
243
244.ENDIF # "$(GUI)" == "WNT"
245
246.IF "$(GUI)" == "OS2"
247 @+-$(MKDIR) $(@:d:d) >& $(NULLDEV)
247 @+-$(MKDIR) $(@:d:d) > $(NULLDEV)
248.IF "$(APP$(TNR)LINKRES)" != ""
248.IF "$(APP$(TNR)LINKRES)" != ""
249 @+-$(RM) $(MISC)/$(APP$(TNR)LINKRES:b).rc >& $(NULLDEV)
249 @+-$(RM) $(MISC)/$(APP$(TNR)LINKRES:b).rc > $(NULLDEV)
250.IF "$(APP$(TNR)ICON)" != ""
250.IF "$(APP$(TNR)ICON)" != ""
251 @-+$(WRAPCMD) echo 1 ICON $(EMQ)"$(APP$(TNR)ICON)$(EMQ)" | $(SED) 'sX\\X\\\\Xg' >> $(MISC)/$(APP$(TNR)LINKRES:b).rc
251 @-+echo ICON 1 $(EMQ)"$(APP$(TNR)ICON:s#/#\\\\#)$(EMQ)" >> $(MISC)$/$(APP$(TNR)LINKRES:b).rc
252.ENDIF # "$(APP$(TNR)ICON)" != ""
253.IF "$(APP$(TNR)VERINFO)" != ""
254 @-+echo $(EMQ)#define VERVARIANT $(BUILD) >> $(MISC)/$(APP$(TNR)LINKRES:b).rc
255 @-+echo $(EMQ)#include $(EMQ)"$(APP$(TNR)VERINFO)$(EMQ)" >> $(MISC)/$(APP$(TNR)LINKRES:b).rc
256.ENDIF # "$(APP$(TNR)VERINFO)" != ""
257 $(COMMAND_ECHO)$(RC) -r -DOS2 $(APP$(TNR)PRODUCTDEF) -I$(SOLARRESDIR) $(INCLUDE) $(RCLINKFLAGS) $(MISC)/$(APP$(TNR)LINKRES:b).rc
258.ENDIF # "$(APP$(TNR)LINKRES)" != ""
259
260.IF "$(TARGETTYPE)" == "GUI"
261 @echo NAME $(APP$(TNR)TARGET) WINDOWAPI > $(MISC)/$(APP$(TNR)TARGET).def
262.ENDIF
263
252.ENDIF # "$(APP$(TNR)ICON)" != ""
253.IF "$(APP$(TNR)VERINFO)" != ""
254 @-+echo $(EMQ)#define VERVARIANT $(BUILD) >> $(MISC)/$(APP$(TNR)LINKRES:b).rc
255 @-+echo $(EMQ)#include $(EMQ)"$(APP$(TNR)VERINFO)$(EMQ)" >> $(MISC)/$(APP$(TNR)LINKRES:b).rc
256.ENDIF # "$(APP$(TNR)VERINFO)" != ""
257 $(COMMAND_ECHO)$(RC) -r -DOS2 $(APP$(TNR)PRODUCTDEF) -I$(SOLARRESDIR) $(INCLUDE) $(RCLINKFLAGS) $(MISC)/$(APP$(TNR)LINKRES:b).rc
258.ENDIF # "$(APP$(TNR)LINKRES)" != ""
259
260.IF "$(TARGETTYPE)" == "GUI"
261 @echo NAME $(APP$(TNR)TARGET) WINDOWAPI > $(MISC)/$(APP$(TNR)TARGET).def
262.ENDIF
263
264 .IF "$(VERBOSE)" == "TRUE"
265 @+echo $(APP$(TNR)LINKFLAGS) \
266 $(LINKFLAGSAPP) $(APP$(TNR)BASEX) \
267 $(APP$(TNR)STACKN) \
268 -o $@ \
269 -Zmap -L$(LB) \
270 -L$(SOLARVERSION)/$(INPATH)/lib \
271 $(STDOBJ) \
272 $(APP$(TNR)LINKRES) \
273 $(APP$(TNR)RES) \
274 $(APP$(TNR)DEF) \
275 $(APP$(TNR)OBJS) \
276 $(APP$(TNR)LIBS) \
277 $(APP$(TNR)STDLIBS:^"-l") \
278 $(APP$(TNR)STDLIB:^"-l") $(STDLIB$(TNR):^"-l")
279 .ENDIF
280 $(COMMAND_ECHO)$(APP$(TNR)LINKER) -v \
281 $(APP$(TNR)LINKFLAGS) \
282 $(LINKFLAGSAPP) $(APP$(TNR)BASEX) \
283 $(APP$(TNR)STACKN) \
284 -o $@ \
285 -Zmap -L$(LB) \
286 -L$(SOLARVERSION)/$(INPATH)/lib \
287 $(STDOBJ) \
288 $(APP$(TNR)LINKRES) \
289 $(APP$(TNR)RES) \
290 $(APP$(TNR)DEF) \
291 $(APP$(TNR)OBJS) \
292 $(APP$(TNR)LIBS) \
264 $(COMMAND_ECHO)$(APP$(TNR)LINKER) -v \
265 $(APP$(TNR)LINKFLAGS) \
266 $(LINKFLAGSAPP) $(APP$(TNR)BASEX) \
267 $(APP$(TNR)STACKN) \
268 -o $@ \
269 -Zmap -L$(LB) \
270 -L$(SOLARVERSION)/$(INPATH)/lib \
271 $(STDOBJ) \
272 $(APP$(TNR)LINKRES) \
273 $(APP$(TNR)RES) \
274 $(APP$(TNR)DEF) \
275 $(APP$(TNR)OBJS) \
276 $(APP$(TNR)LIBS) \
293 $(APP$(TNR)STDLIBS:^"-l") \
294 $(APP$(TNR)STDLIB:^"-l") $(STDLIB$(TNR):^"-l")
277 $(APP$(TNR)STDLIBS) \
278 $(APP$(TNR)STDLIB) $(STDLIB$(TNR))
295
296
297.IF "$(APP$(TNR)TARGET)" == "loader"
298 $(COMMAND_ECHO)+$(PERL) loader.pl $@
299 $(COMMAND_ECHO)+$(TYPE) $(@) $(@:d)unloader.exe > $(@:d)_new.exe
300 $(COMMAND_ECHO)+$(RM) $@
301 $(COMMAND_ECHO)+$(RENAME) $(@:d)_new.exe $(@:d)loader.exe
302.ENDIF # "$(TARGET)" == "setup"
303
304.ENDIF # "$(GUI)" == "OS2"
305
306.ENDIF # "$(APP$(TNR)TARGETN)"!=""
307
308
309# Instruction for linking
310# unroll end
311#######################################################
312
279
280
281.IF "$(APP$(TNR)TARGET)" == "loader"
282 $(COMMAND_ECHO)+$(PERL) loader.pl $@
283 $(COMMAND_ECHO)+$(TYPE) $(@) $(@:d)unloader.exe > $(@:d)_new.exe
284 $(COMMAND_ECHO)+$(RM) $@
285 $(COMMAND_ECHO)+$(RENAME) $(@:d)_new.exe $(@:d)loader.exe
286.ENDIF # "$(TARGET)" == "setup"
287
288.ENDIF # "$(GUI)" == "OS2"
289
290.ENDIF # "$(APP$(TNR)TARGETN)"!=""
291
292
293# Instruction for linking
294# unroll end
295#######################################################
296