]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeprog.msc
wxUniv compilation fix
[wxWidgets.git] / src / makeprog.msc
... / ...
CommitLineData
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
13WXDIR = $(WXWIN)
14
15!include $(WXDIR)\src\makemsc.env
16
17!ifndef FINAL
18FINAL=0
19!endif
20
21.cpp.obj:
22 cl @<<
23$(CPPFLAGS) /c /Tp $*.cpp
24<<
25
26all: $(TARGET).exe
27
28wx:
29 cd $(WXDIR)\src\msw
30 nmake -f makefile.dos FINAL=$(FINAL)
31 cd $(THISDIR)
32
33wxclean:
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),
42NUL,
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 /i$(WXDIR)\contrib\include $(TARGET)
51
52clean:
53 -erase *.obj
54 -erase *.exe
55 -erase *.res
56 -erase *.map
57 -erase *.sbr
58 -erase *.pdb