]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.wat
Compile and build fixes
[wxWidgets.git] / src / makeprog.wat
CommitLineData
7be1f0d9
JS
1WXDIR = $(%WXWIN)
2
3!include $(WXDIR)\src\makewat.env
4
5WXLIB = $(WXDIR)\lib
6LNK = $(PROGRAM).lnk
7
8all: $(PROGRAM).exe
9
10$(PROGRAM).exe : $(OBJECTS) $(PROGRAM).res $(LNK) $(WXLIB)\wx.lib
11 wlink @$(LNK)
12 $(BINDCOMMAND) $(PROGRAM).res
13
14$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
15 $(RC) $(RESFLAGS1) $(PROGRAM).rc
16
17$(LNK) : makefile.wat
18 %create $(LNK)
19 @%append $(LNK) debug all
20 @%append $(LNK) system $(LINKOPTION)
21 @%append $(LNK) $(STACK)
22 @%append $(LNK) name $(PROGRAM).exe
23 @%append $(LNK) file $(WXLIB)\wx.lib
24 @for %i in ($(OBJECTS)) do @%append $(LNK) file %i
25
26# @for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
27# @%append $(LNK) $(MINDATA)
28# @%append $(LNK) $(MAXDATA)
29
30clean: .SYMBOLIC
31 -erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe
32