]> git.saurik.com Git - wxWidgets.git/blob - samples/memcheck/makefile.nt
fixed arguments to make it wxMSW compatible
[wxWidgets.git] / samples / memcheck / makefile.nt
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 memcheck 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 !include $(WXDIR)\src\ntwxwin.mak
18
19 THISDIR = $(WXDIR)\samples\memcheck
20 PROGRAM=memcheck
21
22 OBJECTS = $(PROGRAM).obj
23
24 $(PROGRAM): $(PROGRAM).exe
25
26 all: wx $(PROGRAM).exe
27
28 wx:
29 cd $(WXDIR)\src\msw
30 nmake -f makefile.nt FINAL=$(FINAL)
31 cd $(THISDIR)
32
33 wxclean:
34 cd $(WXDIR)\src\msw
35 nmake -f makefile.nt clean
36 cd $(THISDIR)
37
38 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
39 $(link) @<<
40 -out:$(PROGRAM).exe
41 $(LINKFLAGS)
42 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
43 $(LIBS)
44 <<
45
46
47 $(PROGRAM).obj: $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
48 $(cc) @<<
49 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
50 <<
51
52 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
53 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
54
55
56 clean:
57 -erase *.obj
58 -erase *.sbr
59 -erase *.exe
60 -erase *.res
61 -erase *.map
62 -erase *.pdb