]>
Commit | Line | Data |
---|---|---|
bbf1f0e5 KB |
1 | # |
2 | # File: makefile.nt | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds MFC/wxWin example (MS VC++). | |
11 | # Use FINAL=1 argument to nmake to build final version with no debugging | |
12 | # info | |
13 | ||
14 | # Set WXDIR for your system | |
15 | WXDIR = $(WXWIN) | |
16 | ||
17 | EXTRALIBS=# mfc42.lib | |
18 | EXTRAINC=-Ig:\DevStudio\mfc\include | |
19 | EXTRAFLAGS=/D_AFXDLL | |
20 | ||
21 | !include $(WXDIR)\src\ntwxwin.mak | |
22 | ||
23 | THISDIR = $(WXDIR)\samples\mfc | |
24 | PROGRAM=mfctest | |
25 | ||
26 | OBJECTS = $(PROGRAM).obj | |
27 | ||
28 | $(PROGRAM): $(PROGRAM).exe | |
29 | ||
30 | all: wx $(PROGRAM).exe | |
31 | ||
32 | wx: | |
33 | cd $(WXDIR)\src\msw | |
34 | nmake -f makefile.nt FINAL=$(FINAL) | |
35 | cd $(THISDIR) | |
36 | ||
37 | wxclean: | |
38 | cd $(WXDIR)\src\msw | |
39 | nmake -f makefile.nt clean | |
40 | cd $(THISDIR) | |
41 | ||
42 | $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res | |
43 | $(link) @<< | |
44 | -out:$(PROGRAM).exe | |
45 | $(LINKFLAGS) | |
46 | $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res | |
47 | $(LIBS) | |
48 | << | |
49 | ||
50 | ||
51 | $(PROGRAM).obj: $(PROGRAM).h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ) | |
52 | $(cc) @<< | |
53 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
54 | << | |
55 | ||
56 | $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc | |
57 | $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc | |
58 | ||
59 | clean: | |
60 | -erase *.obj | |
61 | -erase *.sbr | |
62 | -erase *.exe | |
63 | -erase *.res | |
64 | -erase *.map | |
65 | -erase *.pdb | |
66 |