]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.vc
a fix for the last fix
[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
37 !if "$(wxUSE_GUI)" == "1"
38
39 $(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
40 $(link) @<<
41 -out:$(PROGRAM).exe
42 $(LINKFLAGS)
43 $(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
44 $(LIBS)
45 <<
46
47 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
48 $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
49
50 !else
51
52 $(PROGRAM).exe: $(WXLIB) $(OBJECTS)
53 $(link) @<<
54 -out:$(PROGRAM).exe
55 $(LINKFLAGS)
56 $(OBJECTS) $(DUMMYOBJ)
57 $(LIBS)
58 <<
59
60 !endif
61
62
63 clean:
64 -$(RM) $(OBJECTS)
65 -$(RM) *.exe
66 -$(RM) *.res
67 -$(RM) *.map
68 -$(RM) *.sbr
69 -$(RM) *.pdb