]>
Commit | Line | Data |
---|---|---|
457814b5 JS |
1 | # |
2 | # File: makefile.nt | |
3 | # Author: Julian Smart | |
48d1144b | 4 | # Created: 1999 |
457814b5 | 5 | # Updated: |
48d1144b | 6 | # Copyright: (c) Julian Smart |
457814b5 | 7 | # |
48d1144b JS |
8 | # Makefile environment for building samples. Include this from |
9 | # your own makefile. | |
457814b5 JS |
10 | # Use FINAL=1 argument to nmake to build final version with no debugging |
11 | # info | |
12 | ||
13 | # Set WXDIR for your system | |
97507cce | 14 | WXDIR = j:\dev\wx2\wxWindows |
457814b5 JS |
15 | |
16 | WXUSINGDLL=0 | |
17 | ||
48d1144b | 18 | !include $(WXDIR)\src\makevc.env |
457814b5 | 19 | |
5d4b632b | 20 | all: $(PROGRAM).exe |
457814b5 JS |
21 | |
22 | wx: | |
23 | cd $(WXDIR)\src\msw | |
48d1144b JS |
24 | nmake -f makefile.vc FINAL=$(FINAL) |
25 | # cd $(THISDIR) | |
457814b5 JS |
26 | |
27 | wxclean: | |
28 | cd $(WXDIR)\src\msw | |
48d1144b JS |
29 | nmake -f makefile.vc clean |
30 | # cd $(THISDIR) | |
457814b5 | 31 | |
4f02408e | 32 | $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res |
457814b5 JS |
33 | $(link) @<< |
34 | -out:$(PROGRAM).exe | |
35 | $(LINKFLAGS) | |
4f02408e | 36 | $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res |
457814b5 JS |
37 | $(LIBS) |
38 | << | |
39 | ||
4f02408e JS |
40 | $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc |
41 | $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc | |
42 | ||
457814b5 | 43 | clean: |
48d1144b | 44 | -erase $(OBJECTS) |
457814b5 JS |
45 | -erase *.exe |
46 | -erase *.res | |
47 | -erase *.map | |
48 | -erase *.sbr | |
49 | -erase *.pdb |