73 lines
2.4 KiB
Makefile
73 lines
2.4 KiB
Makefile
MKFILENAME:=TG_OBJ.MK
|
|
|
|
.IF "$(OBJTARGET)"!=""
|
|
$(OBJTARGET): $(OBJFILES) $(IDLOBJFILES)
|
|
@echo ------------------------------
|
|
@echo Making: $@
|
|
.IF "$(GUI)"=="WNT"
|
|
.IF "$(COM)"=="GCC"
|
|
+echo. $(foreach,i,$(OBJFILES:f) $(ROBJ)$/$(i)) >> $@
|
|
@+$(TYPE) $@ | tr -d ï\n\rï > $@
|
|
@+echo. >> $@
|
|
.ELSE # "$(COM)"=="GCC"
|
|
.IF "$(LIBTARGET)"!="NO"
|
|
@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
|
|
.ENDIF # "$(LIBTARGET)"!="NO"
|
|
$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
|
|
.ENDIF # "$(COM)"=="GCC"
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.IF "$(GUI)"=="UNX"
|
|
+echo $(foreach,i,$(OBJFILES:f) $(ROBJ)$/$(i:s/.obj/.o/)) | xargs -n1 > $@
|
|
.IF "$(OS)"=="MACOSX"
|
|
@-+nm `cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(@:d)$(@:b).dump
|
|
.ELSE
|
|
@+nm `cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(@:d)$(@:b).dump
|
|
.ENDIF
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
.ENDIF # "$(OBJTARGET)"!=""
|
|
|
|
|
|
.IF "$(SVXLIGHT)"!=""
|
|
.IF "$(SVXLIGHTOBJTARGET)"!=""
|
|
$(SVXLIGHTOBJTARGET): $(REAL_SVXLIGHTOBJFILES)
|
|
@echo ------------------------------
|
|
@echo Making: $@
|
|
.IF "$(GUI)"=="WNT"
|
|
.IF "$(COM)"=="GCC"
|
|
# $(LIBMGR) $(LIBFLAGS) $@ $(OBJFILES)
|
|
+echo. $(foreach,i,$(REAL_SVXLIGHTOBJFILES:f) $(ROBJ)$/$(i)) >> $@
|
|
.ELSE
|
|
.IF "$(LIBTARGET)"!="NO"
|
|
@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
|
|
.ENDIF # "$(LIBTARGET)"!="NO"
|
|
$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
|
|
.ENDIF
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.IF "$(GUI)"=="UNX"
|
|
+echo $(foreach,i,$(REAL_SVXLIGHTOBJFILES:f) $(ROBJ)$/$(i:s/.obj/.o/)) | xargs -n1 > $@
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
.ENDIF # "$(SVXLIGHTOBJTARGET)"!=""
|
|
.ENDIF # "$(SVXLIGHT)"!=""
|
|
|
|
.IF "$(SECOND_BUILD)"!=""
|
|
.IF "$($(SECOND_BUILD)OBJTARGET)"!=""
|
|
$($(SECOND_BUILD)OBJTARGET): $(REAL_$(SECOND_BUILD)_OBJFILES)
|
|
@echo ------------------------------
|
|
@echo Making: $@
|
|
.IF "$(GUI)"=="WNT"
|
|
.IF "$(COM)"=="GCC"
|
|
# $(LIBMGR) $(LIBFLAGS) $@ $(OBJFILES)
|
|
+echo. $(foreach,i,$(REAL_$(SECOND_BUILD)_OBJFILES:f) $(ROBJ)$/$(i)) > $@
|
|
.ELSE
|
|
.IF "$(LIBTARGET)"!="NO"
|
|
@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
|
|
.ENDIF # "$(LIBTARGET)"!="NO"
|
|
$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
|
|
.ENDIF
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.IF "$(GUI)"=="UNX"
|
|
+echo $(foreach,i,$(REAL_$(SECOND_BUILD)_OBJFILES:f) $(ROBJ)$/$(i:s/.obj/.o/)) | xargs -n1 >> $@
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
.ENDIF # "$($(SECOND_BUILD)OBJTARGET)"!=""
|
|
.ENDIF # "$(SECOND_BUILD)"!=""
|
|
|