]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.vc
added dependency handling to Makefiles
[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
9e3cb9ee
JS
41!if "$(wxUSE_GUI)" == "1"
42
43#!if "$(WXUSINGDLL)" == "1"
44#DUMMYOBJ=
45#!endif
0548ca8d 46
7fee680b 47$(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
457814b5
JS
48 $(link) @<<
49-out:$(PROGRAM).exe
50$(LINKFLAGS)
7fee680b 51$(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
457814b5
JS
52$(LIBS)
53<<
54
4f02408e 55$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
b14391d1 56 $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
4f02408e 57
0548ca8d
GT
58!else
59
60$(PROGRAM).exe: $(WXLIB) $(OBJECTS)
61 $(link) @<<
62-out:$(PROGRAM).exe
63$(LINKFLAGS)
64$(OBJECTS) $(DUMMYOBJ)
65$(LIBS)
66<<
67
68!endif
69
70
457814b5 71clean:
cd852842
GT
72 -$(RM) $(OBJECTS)
73 -$(RM) *.exe
74 -$(RM) *.res
75 -$(RM) *.map
76 -$(RM) *.sbr
77 -$(RM) *.pdb