X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0499e2f21fe63792f0e3ae785a029edc6671a29..bd1a4a99fc1bec4ac5d0b14379dc5345d6ce3253:/src/makelib.wat?ds=sidebyside diff --git a/src/makelib.wat b/src/makelib.wat index ec5f1a0979..110f0398a5 100644 --- a/src/makelib.wat +++ b/src/makelib.wat @@ -1,24 +1,41 @@ -!include makewat.env +# +# Changelist: 2003-02-25 - Juergen Ulbts - update from wxWindows 2.5.x/HEAD branch +# + + +THISDIR = $+ $(%cdrive):$(%cwd) $- +# set OUTPUTDIR to the directory to be used for the .obj files created during +# the build (under $THISDIR) +!ifndef OUTPUTDIR +OUTPUTDIR=$(THISDIR)\$(BASEDIRPREFIX)$(CONFIGURATION)Watcom +# no trailing slash for win98 +!endif + +!include $(WXDIR)\src\makewat.env -# the name of the file containing the objects to be put in the library -LNK = tmp.lbc -all: $(LIBTARGET) +all: MAKDIR $(LIBTARGET) .SYMBOLIC + +MAKDIR: .SYMBOLIC + @if not exist $(OUTPUTDIR) mkdir $(OUTPUTDIR) + +# the name of the file containing the objects to be put in the library +LBCFILE=$(LIBTARGET).lbc $(LIBTARGET) : $(OBJECTS) - %create $(LNK) - @for %i in ( $(OBJECTS) ) do @%append $(LNK) +%i - wlib /b /c /n /p=512 $^@ @$(LNK) + %create $(LBCFILE) + @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i + $(LIB) /b /c /n /p=512 $^@ @$(LBCFILE) clean: .SYMBOLIC - -erase *.obj - -erase *.bak - -erase *.err - -erase *.pch - -erase *.lib - -erase *.lbc - -erase *.res - -erase *.exe - -erase *.lbc + -erase $(OUTPUTDIR)\*.obj + -erase $(OUTPUTDIR)\*.bak + -erase $(OUTPUTDIR)\*.err + -erase $(OUTPUTDIR)\*.pch + -erase $(OUTPUTDIR)\*.lib + -erase $(OUTPUTDIR)\*.lbc + -erase $(OUTPUTDIR)\*.res + -erase $(OUTPUTDIR)\*.exe + -erase $(OUTPUTDIR)\*.lbc -erase $(LIBTARGET)