]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.vc
[ 1509599 ] 'Split pickers page in widgets sample' with more icons and rebaking.
[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 !ifndef WXUSINGDLL
17 WXUSINGDLL=0
18 !endif
19
20 !include $(WXDIR)\src\makevc.env
21
22 !if "$(RM)" == ""
23 RM= erase
24 !endif
25
26 all: $(PROGRAM).exe
27
28 wx:
29 cd $(WXDIR)\src\msw
30 nmake -f makefile.vc FINAL=$(FINAL)
31 # cd $(THISDIR)
32
33 wxclean:
34 cd $(WXDIR)\src\msw
35 nmake -f makefile.vc clean
36 # cd $(THISDIR)
37
38
39 !if "$(wxUSE_GUI)" == ""
40 wxUSE_GUI=1
41 !endif
42
43 !if "$(wxUSE_GUI)" == "1"
44
45 #!if "$(WXUSINGDLL)" == "1"
46 DUMMYOBJ=
47 #!endif
48
49 $(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
50 $(link) @<<
51 -out:$(PROGRAM).exe
52 $(LINKFLAGS)
53 $(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
54 $(LIBS)
55 <<
56
57 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
58 $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
59
60 !else
61
62 $(PROGRAM).exe: $(WXLIB) $(OBJECTS)
63 $(link) @<<
64 -out:$(PROGRAM).exe
65 $(LINKFLAGS)
66 $(OBJECTS) $(DUMMYOBJ)
67 $(LIBS)
68 <<
69
70 !endif
71
72
73 clean:
74 -$(RM) *.obj
75 -$(RM) *.exe
76 -$(RM) *.res
77 -$(RM) *.map
78 -$(RM) *.sbr
79 -$(RM) *.pdb