]>
Commit | Line | Data |
---|---|---|
7be1f0d9 JS |
1 | WXDIR = $(%WXWIN) |
2 | ||
3 | !include $(WXDIR)\src\makewat.env | |
4 | ||
5 | WXLIB = $(WXDIR)\lib | |
6 | LNK = $(PROGRAM).lnk | |
7 | ||
8 | all: $(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 | |
8a2c6ef8 | 24 | @for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i |
7be1f0d9 | 25 | @for %i in ($(OBJECTS)) do @%append $(LNK) file %i |
7be1f0d9 JS |
26 | # @%append $(LNK) $(MINDATA) |
27 | # @%append $(LNK) $(MAXDATA) | |
28 | ||
29 | clean: .SYMBOLIC | |
8a2c6ef8 JS |
30 | -erase *.obj |
31 | -erase *.bak | |
32 | -erase *.err | |
33 | -erase *.pch | |
34 | -erase *.lib | |
35 | -erase *.lnk | |
36 | -erase *.res | |
37 | -erase *.exe | |
38 | -erase *.lbc | |
7be1f0d9 | 39 |