]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.vc
This is how wxPlotWindow would look like with the
[wxWidgets.git] / src / makeprog.vc
1 #
2 # File: makefile.nt
3 # Author: Julian Smart
4 # Created: 1999
5 # Updated:
6 # Copyright: (c) Julian Smart
7 #
8 # Makefile environment for building samples. Include this from
9 # your own makefile.
10 # Use FINAL=1 argument to nmake to build final version with no debugging
11 # info
12
13 # Set WXDIR for your system
14 WXDIR = $(WXWIN)
15
16 WXUSINGDLL=0
17
18 !include $(WXDIR)\src\makevc.env
19
20 !if "$(RM)" == ""
21 RM= erase
22 !endif
23
24 all: $(PROGRAM).exe
25
26 wx:
27 cd $(WXDIR)\src\msw
28 nmake -f makefile.vc FINAL=$(FINAL)
29 # cd $(THISDIR)
30
31 wxclean:
32 cd $(WXDIR)\src\msw
33 nmake -f makefile.vc clean
34 # cd $(THISDIR)
35
36 $(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
37 $(link) @<<
38 -out:$(PROGRAM).exe
39 $(LINKFLAGS)
40 $(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
41 $(LIBS)
42 <<
43
44 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
45 $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
46
47 clean:
48 -$(RM) $(OBJECTS)
49 -$(RM) *.exe
50 -$(RM) *.res
51 -$(RM) *.map
52 -$(RM) *.sbr
53 -$(RM) *.pdb