]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.vc
Corrected typo
[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 15
2b5f62a0 16!ifndef WXUSINGDLL
457814b5 17WXUSINGDLL=0
2b5f62a0 18!endif
457814b5 19
48d1144b 20!include $(WXDIR)\src\makevc.env
457814b5 21
cd852842
GT
22!if "$(RM)" == ""
23RM= erase
24!endif
25
5d4b632b 26all: $(PROGRAM).exe
457814b5
JS
27
28wx:
29 cd $(WXDIR)\src\msw
48d1144b
JS
30 nmake -f makefile.vc FINAL=$(FINAL)
31# cd $(THISDIR)
457814b5
JS
32
33wxclean:
34 cd $(WXDIR)\src\msw
48d1144b
JS
35 nmake -f makefile.vc clean
36# cd $(THISDIR)
457814b5 37
0548ca8d 38
1ec59037
GT
39!if "$(wxUSE_GUI)" == ""
40wxUSE_GUI=1
41!endif
42
9e3cb9ee
JS
43!if "$(wxUSE_GUI)" == "1"
44
45#!if "$(WXUSINGDLL)" == "1"
f618020a 46DUMMYOBJ=
9e3cb9ee 47#!endif
0548ca8d 48
7fee680b 49$(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
457814b5
JS
50 $(link) @<<
51-out:$(PROGRAM).exe
52$(LINKFLAGS)
7fee680b 53$(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
457814b5
JS
54$(LIBS)
55<<
56
4f02408e 57$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
b14391d1 58 $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
4f02408e 59
0548ca8d
GT
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
457814b5 73clean:
2b5f62a0 74 -$(RM) *.obj
cd852842
GT
75 -$(RM) *.exe
76 -$(RM) *.res
77 -$(RM) *.map
78 -$(RM) *.sbr
79 -$(RM) *.pdb