]> 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, OBJECTS and
9# TARGETDEF (if you want to include a DEF file in the build) before
10# including this file.
11
12# WXWIN set by parent make
13# BCCDIR set in makeb32.env
14
15WXDIR = $(WXWIN)
16!include $(WXDIR)\src\makeb32.env
17
18!if "$(wxUSE_GUI)" == "0"
19IMGLIBS=
20!else
21IMGLIBS= winpng jpeg tiff
22!endif
23
24!if "$(WXUSINGDLL)" == "1"
25LIBS=$(WXLIB) $(EXTRALIBS) cw32mti import32 ole2w32 regex zlib $(IMGLIBS)
26!else
27LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 regex zlib $(IMGLIBS)
28!endif
29
30!if "$(wxUSE_ODBC)" == "1"
31LIBS=$(LIBS) odbc32
32!endif
33
34# Note: you may need to remove some libraries for earlier versions of BC++, as below
35#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
36
37!if "$(wxUSE_GUI)" == "0"
38LINKOUT = /ap
39!else
40LINKOUT = /aa
41!endif
42
43!if "$(FINAL)" == "0"
44#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
45LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
46OPT = -Od
47DEBUG_FLAGS= -v
48!else
49#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
50LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
51OPT = -Od
52DEBUG_FLAGS =
53!endif
54
55CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
56
57!if "$(wxUSE_GUI)" == "0"
58TARGETRES =
59STARTUP = c0x32.obj
60!else
61TARGETRES = $(TARGET).res
62STARTUP = c0w32.obj
63!endif
64
65all: $(TARGET).exe $(EXTRATARGETS)
66
67$(TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
68 $(LINK) $(LINKFLAGS) @&&!
69$(STARTUP) $(OBJECTS)
70$(TARGET)
71nul
72$(LIBS)
73$(TARGETDEF)
74$(TARGETRES)
75!
76
77.$(SRCSUFF).obj:
78 bcc32 $(CPPFLAGS) -c {$< }
79
80.c.obj:
81 bcc32 $(CPPFLAGS) -P- -c {$< }
82
83$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
84 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
85
86clean:
87 -erase *.obj
88 -erase *.exe
89 -erase *.res
90 -erase *.map
91 -erase *.rws
92 -erase *.tds
93 -erase *.il?
94