]>
Commit | Line | Data |
---|---|---|
1 | WXDIR = ..\..\.. | |
2 | ||
3 | NOPRECOMP=1 | |
4 | ||
5 | !include $(WXDIR)\src\makewat.env | |
6 | ||
7 | WXLIB=$(WXDIR)\lib | |
8 | LIBTARGET = ..\lib\wxtree.lib | |
9 | IFLAGS = -i=$(WXINC) -i=$(WXBASEINC) | |
10 | EXTRACPPFLAGS = | |
11 | NAME = wxtree | |
12 | LNK = test.lnk | |
13 | TESTOBJECTS=test.obj | |
14 | ||
15 | OBJECTS = $(name).obj | |
16 | ||
17 | all: $(OBJECTS) $(LIBTARGET) | |
18 | ||
19 | $(LIBTARGET): $(OBJECTS) | |
20 | *wlib /b /c /n /P=256 $(LIBTARGET) $(OBJECTS) | |
21 | ||
22 | test: test.exe | |
23 | ||
24 | test.obj: test.$(SRCSUFF) test.h wxtree.h | |
25 | ||
26 | test.exe : $(TESTOBJECTS) test.res $(LNK) $(LIBTARGET) $(WXLIB)\wx$(LEVEL).lib | |
27 | wlink @$(LNK) | |
28 | $(BINDCOMMAND) test.res | |
29 | ||
30 | test.res : test.rc $(WXDIR)\include\msw\wx.rc | |
31 | $(RC) $(RESFLAGS1) test.rc | |
32 | ||
33 | $(LNK) : makefile.wat | |
34 | %create $(LNK) | |
35 | @%append $(LNK) debug all | |
36 | @%append $(LNK) system $(LINKOPTION) | |
37 | @%append $(LNK) $(MINDATA) | |
38 | @%append $(LNK) $(MAXDATA) | |
39 | @%append $(LNK) $(STACK) | |
40 | @%append $(LNK) name test | |
41 | @%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib | |
42 | @%append $(LNK) file $(LIBTARGET) | |
43 | @for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i | |
44 | @for %i in ($(TESTOBJECTS)) do @%append $(LNK) file %i | |
45 | ||
46 | clean: .SYMBOLIC | |
47 | -erase $(LIBTARGET) *.obj *.bak *.err *.pch *.lib *.lbc *.res *.exe | |
48 | ||
49 |