]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.b32
Needed some variation; got bored of seeing the compilation errors for this
[wxWidgets.git] / src / makeprog.b32
CommitLineData
4bf78aae
JS
1#
2# File: makeprog.b32
3# Author: Julian Smart
4# Created: 1999
5# Updated:
6# Copyright:
7#
8# Include file for samples and utilities. Set TARGET and OBJECTS
9# before including this file.
10
11# WXWIN and BCCDIR are set by parent make
12
13WXDIR = $(WXWIN)
14!include $(WXDIR)\src\makeb32.env
15
0f3e3e0c 16LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg
4bf78aae
JS
17
18!if "$(FINAL)" == "0"
dbda9e86 19LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib $(EXTRALINKFLAGS)
4bf78aae
JS
20OPT = -Od
21DEBUG_FLAGS= -v
22!else
dbda9e86 23LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib $(EXTRALINKFLAGS)
4bf78aae
JS
24OPT = -Od
25DEBUG_FLAGS =
26!endif
dbda9e86
JS
27
28CPPFLAGS=$(DEBUG_FLAGS) $(EXTRACPPFLAGS) $(OPT) @$(CFG)
29
30all: $(TARGET).exe $(EXTRATARGETS)
4bf78aae
JS
31
32$(TARGET).exe: $(OBJECTS) $(TARGET).res
33 tlink32 $(LINKFLAGS) @&&!
34c0w32.obj $(OBJECTS)
35$(TARGET)
36nul
37$(LIBS)
38
39$(TARGET).res
40!
41
42.$(SRCSUFF).obj:
43 bcc32 $(CPPFLAGS) -c {$< }
44
45.c.obj:
46 bcc32 $(CPPFLAGS) -P- -c {$< }
47
48$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
49 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
50
51clean:
52 -erase *.obj
53 -erase *.exe
54 -erase *.res
55 -erase *.map
56 -erase *.rws
57