]>
Commit | Line | Data |
---|---|---|
457814b5 JS |
1 | # |
2 | # File: makefile.nt | |
3 | # Author: Julian Smart | |
48d1144b | 4 | # Created: 1999 |
3e1ed7d7 | 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 | ||
c25a510b | 13 | # Set WXDIR for your system |
3e1ed7d7 | 14 | WXDIR = $(WXWIN) |
457814b5 JS |
15 | |
16 | WXUSINGDLL=0 | |
17 | ||
48d1144b | 18 | !include $(WXDIR)\src\makevc.env |
457814b5 | 19 | |
cd852842 GT |
20 | !if "$(RM)" == "" |
21 | RM= erase | |
22 | !endif | |
23 | ||
5d4b632b | 24 | all: $(PROGRAM).exe |
457814b5 JS |
25 | |
26 | wx: | |
27 | cd $(WXDIR)\src\msw | |
48d1144b JS |
28 | nmake -f makefile.vc FINAL=$(FINAL) |
29 | # cd $(THISDIR) | |
457814b5 JS |
30 | |
31 | wxclean: | |
32 | cd $(WXDIR)\src\msw | |
48d1144b JS |
33 | nmake -f makefile.vc clean |
34 | # cd $(THISDIR) | |
457814b5 | 35 | |
7fee680b | 36 | $(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res |
457814b5 JS |
37 | $(link) @<< |
38 | -out:$(PROGRAM).exe | |
39 | $(LINKFLAGS) | |
7fee680b | 40 | $(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res |
457814b5 JS |
41 | $(LIBS) |
42 | << | |
43 | ||
4f02408e | 44 | $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc |
b14391d1 | 45 | $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc |
4f02408e | 46 | |
457814b5 | 47 | clean: |
cd852842 GT |
48 | -$(RM) $(OBJECTS) |
49 | -$(RM) *.exe | |
50 | -$(RM) *.res | |
51 | -$(RM) *.map | |
52 | -$(RM) *.sbr | |
53 | -$(RM) *.pdb |