]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.vc
Fix/hack 1.
[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 36
1ec59037
GT
37!if "$(wxUSE_GUI)" == ""
38wxUSE_GUI=1
39!endif
40
0548ca8d
GT
41!if "$(wxUSE_GUI)" == "1"
42
7fee680b 43$(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
457814b5
JS
44 $(link) @<<
45-out:$(PROGRAM).exe
46$(LINKFLAGS)
7fee680b 47$(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
457814b5
JS
48$(LIBS)
49<<
50
4f02408e 51$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
b14391d1 52 $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
4f02408e 53
0548ca8d
GT
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
457814b5 67clean:
cd852842
GT
68 -$(RM) $(OBJECTS)
69 -$(RM) *.exe
70 -$(RM) *.res
71 -$(RM) *.map
72 -$(RM) *.sbr
73 -$(RM) *.pdb