]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeprog.b32
Blind fix to precompiled headers verified by author of bug #1003085
[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
17!ifndef EXEDIR
18EXEDIR = BORL
19!endif
20
21!include $(WXDIR)\src\makeb32.env
22
23!if "$(wxUSE_GUI)" == "0"
24IMGLIBS=
25!else
26IMGLIBS= png_bc$(DEBUG_SUFFIX) jpeg_bc$(DEBUG_SUFFIX) tiff_bc$(DEBUG_SUFFIX)
27!endif
28
29!if "$(FINAL)" == "0"
30EX_LIBS=$(EXTRALIBS:.lib=_bcd.lib)
31!else
32EX_LIBS=$(EXTRALIBS:.lib=_bc.lib)
33!endif
34
35!if "$(WXUSINGDLL)" == "1"
36LIBS=$(WXLIB) $(EX_LIBS) cw32mti import32 ole2w32 regex_bc$(DEBUG_SUFFIX) zlib_bc$(DEBUG_SUFFIX) $(IMGLIBS)
37!else
38LIBS=$(WXLIB) $(EX_LIBS) cw32mt import32 ole2w32 regex_bc$(DEBUG_SUFFIX) zlib_bc$(DEBUG_SUFFIX) $(IMGLIBS)
39!endif
40
41!if "$(wxUSE_ODBC)" == "1"
42LIBS=$(LIBS) odbc32
43!endif
44
45
46!if "$(wxUSE_GUI)" == "0"
47LINKOUT = /ap
48!else
49LINKOUT = /aa
50!endif
51
52!if "$(FINAL)" == "0"
53#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
54LINKFLAGS=/v /c $(LINKOUT) -L"$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk" $(EXTRALINKFLAGS)
55OPT = -Od
56DEBUG_FLAGS= -v
57!else
58#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
59LINKFLAGS=$(LINKOUT) -L"$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk" $(EXTRALINKFLAGS)
60OPT = -Od
61DEBUG_FLAGS =
62!endif
63
64CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
65
66!if "$(wxUSE_GUI)" == "0"
67TARGETRES =
68STARTUP = c0x32.obj
69!else
70TARGETRES = $(EXEDIR)\$(TARGET).res
71STARTUP = c0w32.obj
72!endif
73
74EXE_TARGET=$(EXEDIR)\$(TARGET)
75
76default : all
77
78maked:
79 -if not exist $(EXEDIR)\nul mkdir $(EXEDIR)
80
81wx: $(EXE_TARGET).exe $(EXTRATARGETS)
82
83all: maked wx
84
85
86$(EXE_TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
87 $(LINK) $(LINKFLAGS) -j$(EXEDIR) @&&!
88$(STARTUP) $(OBJECTS)
89$(EXE_TARGET)
90nul
91$(LIBS)
92$(TARGETDEF)
93$(TARGETRES)
94!
95
96.path.obj=$(EXEDIR)
97
98.$(SRCSUFF).obj:
99 bcc32 $(CPPFLAGS) -c -n$(EXEDIR) {$< }
100
101.c.obj:
102 bcc32 $(CPPFLAGS) -P- -c -n$(EXEDIR) {$< }
103
104!if "$(wxUSE_GUI)" != "0"
105#make resources only with GUI apps
106$(TARGETRES) : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
107 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$(EXEDIR)\$(<B).res $(TARGET)
108!endif
109
110clean:
111 -$(RM) $(EXEDIR)\*.obj
112 -$(RM) $(EXEDIR)\*.exe
113 -$(RM) $(EXEDIR)\*.res
114 -$(RM) $(EXEDIR)\*.map
115 -$(RM) $(EXEDIR)\*.rws
116 -$(RM) $(EXEDIR)\*.tds
117 -$(RM) $(EXEDIR)\*.il?
118