3 !include $(WXDIR)\src\makewat.env
6 LNK = $(OUTPUTDIR)$(PROGRAM).lnk
8 all: $(OUTPUTDIR) $(OUTPUTDIR)$(PROGRAM).exe $(EXTRATARGETS) .SYMBOLIC
11 @if not exist $^@ mkdir $^@
16 RESFILE=$(OUTPUTDIR)$(PROGRAM).res
19 $(OUTPUTDIR)$(PROGRAM).exe : $(OBJECTS) $(RESFILE) $(LNK) $(WXLIB)\$(LIBNAME).lib
22 $(BINDCOMMAND) $(RESFILE)
26 $(RESFILE): $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
27 $(RC) $(RESFLAGS) /fo=$(RESFILE) $(PROGRAM).rc
32 @%append $(LNK) $(DEBUGINFO)
33 @%append $(LNK) system $(LINKOPTION)
34 @%append $(LNK) $(STACK)
35 @%append $(LNK) name $(OUTPUTDIR)$(PROGRAM).exe
36 @for %i in ($(OBJECTS)) do @%append $(LNK) file %i
37 @for %i in ($(LIBS)) do @%append $(LNK) lib %i
38 @for %i in ($(EXTRALIBS)) do @%append $(LNK) lib %i
41 -erase $(OUTPUTDIR)*.obj
42 -erase $(OUTPUTDIR)*.bak
43 -erase $(OUTPUTDIR)*.err
44 -erase $(OUTPUTDIR)*.pch
45 -erase $(OUTPUTDIR)*.lib
47 -erase $(OUTPUTDIR)*.res
48 -erase $(OUTPUTDIR)*.exe
49 -erase $(OUTPUTDIR)*.lbc