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