]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.vc
Committing in .
[wxWidgets.git] / src / makeprog.vc
CommitLineData
457814b5
JS
1#
2# File: makefile.nt
3# Author: Julian Smart
48d1144b 4# Created: 1999
3e1ed7d7 5# Updated:
48d1144b 6# Copyright: (c) Julian Smart
457814b5 7#
48d1144b
JS
8# Makefile environment for building samples. Include this from
9# your own makefile.
457814b5
JS
10# Use FINAL=1 argument to nmake to build final version with no debugging
11# info
12
c25a510b 13# Set WXDIR for your system
3e1ed7d7 14WXDIR = $(WXWIN)
457814b5
JS
15
16WXUSINGDLL=0
17
48d1144b 18!include $(WXDIR)\src\makevc.env
457814b5 19
cd852842
GT
20!if "$(RM)" == ""
21RM= erase
22!endif
23
5d4b632b 24all: $(PROGRAM).exe
457814b5
JS
25
26wx:
27 cd $(WXDIR)\src\msw
48d1144b
JS
28 nmake -f makefile.vc FINAL=$(FINAL)
29# cd $(THISDIR)
457814b5
JS
30
31wxclean:
32 cd $(WXDIR)\src\msw
48d1144b
JS
33 nmake -f makefile.vc clean
34# cd $(THISDIR)
457814b5 35
0548ca8d
GT
36
37!if "$(wxUSE_GUI)" == "1"
38
7fee680b 39$(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
457814b5
JS
40 $(link) @<<
41-out:$(PROGRAM).exe
42$(LINKFLAGS)
7fee680b 43$(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
457814b5
JS
44$(LIBS)
45<<
46
4f02408e 47$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
b14391d1 48 $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
4f02408e 49
0548ca8d
GT
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
457814b5 63clean:
cd852842
GT
64 -$(RM) $(OBJECTS)
65 -$(RM) *.exe
66 -$(RM) *.res
67 -$(RM) *.map
68 -$(RM) *.sbr
69 -$(RM) *.pdb