diff --git a/src/mgl/makeprog.wat b/src/mgl/makeprog.wat new file mode 100644 index 0000000000..46a2427d3d --- /dev/null +++ b/src/mgl/makeprog.wat @@ -0,0 +1,35 @@ +WXDIR = $(%WXWIN) + +!include $(WXDIR)\src\mgl\makewat.env + +WXLIB = $(WXDIR)\lib +LNK = $(PROGRAM).lnk + +all: $(PROGRAM).exe $(EXTRATARGETS) + +$(PROGRAM).exe : $(OBJECTS) $(LNK) $(WXLIB)\wx.lib + wlink @$(LNK) + +$(LNK) : makefile.wat + %create $(LNK) + @%append $(LNK) debug all + @%append $(LNK) system $(LINKOPTION) + @%append $(LNK) $(STACK) + @%append $(LNK) name $(PROGRAM).exe + @for %i in ($(OBJECTS)) do @%append $(LNK) file %i + @for %i in ($(LIBS)) do @%append $(LNK) lib %i + @for %i in ($(EXTRALIBS)) do @%append $(LNK) lib %i +# @%append $(LNK) $(MINDATA) +# @%append $(LNK) $(MAXDATA) + +clean: .SYMBOLIC + -erase *.obj + -erase *.bak + -erase *.err + -erase *.pch + -erase *.lib + -erase $(LNK) + -erase *.res + -erase *.exe + -erase *.lbc +