]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.msc
Various small fixes and tweaks
[wxWidgets.git] / src / makeprog.msc
1 #
2 # File: makeprog.msc
3 # Author: Julian Smart
4 # Created: 1998
5 # Updated:
6 #
7 # "%W% %G%"
8 #
9 # Include file for 16-bit samples
10 # Use FINAL=1 argument to nmake to build final version with no debugging
11 # info
12
13 WXDIR = $(WXWIN)
14
15 !include $(WXDIR)\src\makemsc.env
16
17 !ifndef FINAL
18 FINAL=0
19 !endif
20
21 .cpp.obj:
22 cl @<<
23 $(CPPFLAGS) /c /Tp $*.cpp
24 <<
25
26 all: $(TARGET).exe
27
28 wx:
29 cd $(WXDIR)\src\msw
30 nmake -f makefile.dos FINAL=$(FINAL)
31 cd $(THISDIR)
32
33 wxclean:
34 cd $(WXDIR)\src\msw
35 nmake -f makefile.dos clean
36 cd $(THISDIR)
37
38 $(TARGET).exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) $(TARGET).def $(TARGET).res
39 link $(LINKFLAGS) /NOE @<<
40 $(OBJECTS) $(WXDIR)\src\msw\dummy.obj,
41 $(TARGET),
42 NUL,
43 $(LIBS),
44 $(TARGET).def
45 ;
46 <<
47 rc -K $(TARGET).res
48
49 $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
50 rc -r /i$(WXDIR)\include $(TARGET)
51
52 clean:
53 -erase *.obj
54 -erase *.exe
55 -erase *.res
56 -erase *.map
57 -erase *.sbr
58 -erase *.pdb