]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeprog.b32
Committing in .
[wxWidgets.git] / src / makeprog.b32
... / ...
CommitLineData
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
16LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg xpm tiff odbc32
17
18# Note: you may need to remove some libraries for earlier versions of BC++, as below
19#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib xpm tiff
20
21!if "$(FINAL)" == "0"
22#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
23LINKFLAGS=/v /c /aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
24OPT = -Od
25DEBUG_FLAGS= -v
26!else
27#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
28LINKFLAGS=/aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
29OPT = -Od
30DEBUG_FLAGS =
31!endif
32
33CPPFLAGS=$(DEBUG_FLAGS) $(EXTRACPPFLAGS) $(OPT) @$(CFG)
34
35all: $(TARGET).exe $(EXTRATARGETS)
36
37$(TARGET).exe: $(OBJECTS) $(TARGET).res
38 $(LINK) $(LINKFLAGS) @&&!
39c0w32.obj $(OBJECTS)
40$(TARGET)
41nul
42$(LIBS)
43
44$(TARGET).res
45!
46
47.$(SRCSUFF).obj:
48 bcc32 $(CPPFLAGS) -c {$< }
49
50.c.obj:
51 bcc32 $(CPPFLAGS) -P- -c {$< }
52
53$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
54 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
55
56clean:
57 -erase *.obj
58 -erase *.exe
59 -erase *.res
60 -erase *.map
61 -erase *.rws
62 -erase *.tds
63 -erase *.il?
64