]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.b32
byte length for interim UniChar String corrected
[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#
1eb9ddb9
MB
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.
4bf78aae 11
6b6fc9b0
VZ
12# WXWIN set by parent make
13# BCCDIR set in makeb32.env
4bf78aae
JS
14
15WXDIR = $(WXWIN)
2cedc12a
CE
16
17!ifndef EXEDIR
18EXEDIR = BORL
19!endif
20
4bf78aae
JS
21!include $(WXDIR)\src\makeb32.env
22
2b5f62a0
VZ
23!if "$(wxUSE_GUI)" == "0"
24IMGLIBS=
25!else
7a9f270f 26IMGLIBS= png_bc$(DEBUG_SUFFIX) jpeg_bc$(DEBUG_SUFFIX) tiff_bc$(DEBUG_SUFFIX)
2b5f62a0
VZ
27!endif
28
e6275f8d 29!if "$(FINAL)" == "0"
7a9f270f 30EX_LIBS=$(EXTRALIBS:.lib=_bcd.lib)
e6275f8d 31!else
7a9f270f 32EX_LIBS=$(EXTRALIBS:.lib=_bc.lib)
e6275f8d
CE
33!endif
34
f6bcfd97 35!if "$(WXUSINGDLL)" == "1"
7a9f270f 36LIBS=$(WXLIB) $(EX_LIBS) cw32mti import32 ole2w32 regex_bc$(DEBUG_SUFFIX) zlib_bc$(DEBUG_SUFFIX) $(IMGLIBS)
f6bcfd97 37!else
7a9f270f 38LIBS=$(WXLIB) $(EX_LIBS) cw32mt import32 ole2w32 regex_bc$(DEBUG_SUFFIX) zlib_bc$(DEBUG_SUFFIX) $(IMGLIBS)
1eb9ddb9
MB
39!endif
40
41!if "$(wxUSE_ODBC)" == "1"
42LIBS=$(LIBS) odbc32
f6bcfd97 43!endif
4bf78aae 44
b2cf617c 45
8c3288a7
CE
46!if "$(wxUSE_GUI)" == "0"
47LINKOUT = /ap
48!else
49LINKOUT = /aa
50!endif
51
4bf78aae 52!if "$(FINAL)" == "0"
b2cf617c 53#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
bf6e8dc9 54LINKFLAGS=/v /c $(LINKOUT) -L"$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk" $(EXTRALINKFLAGS)
4bf78aae
JS
55OPT = -Od
56DEBUG_FLAGS= -v
57!else
b2cf617c 58#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
bf6e8dc9 59LINKFLAGS=$(LINKOUT) -L"$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk" $(EXTRALINKFLAGS)
4bf78aae
JS
60OPT = -Od
61DEBUG_FLAGS =
62!endif
dbda9e86 63
f6bcfd97 64CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
dbda9e86 65
8c3288a7
CE
66!if "$(wxUSE_GUI)" == "0"
67TARGETRES =
68STARTUP = c0x32.obj
69!else
2cedc12a 70TARGETRES = $(EXEDIR)\$(TARGET).res
8c3288a7
CE
71STARTUP = c0w32.obj
72!endif
73
2cedc12a
CE
74EXE_TARGET=$(EXEDIR)\$(TARGET)
75
76default : all
77
78maked:
cc693a82 79 -if not exist $(EXEDIR)\nul mkdir $(EXEDIR)
4bf78aae 80
2cedc12a
CE
81wx: $(EXE_TARGET).exe $(EXTRATARGETS)
82
83all: maked wx
84
85
86$(EXE_TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
87 $(LINK) $(LINKFLAGS) -j$(EXEDIR) @&&!
8c3288a7 88$(STARTUP) $(OBJECTS)
2cedc12a 89$(EXE_TARGET)
4bf78aae
JS
90nul
91$(LIBS)
1eb9ddb9 92$(TARGETDEF)
8c3288a7 93$(TARGETRES)
4bf78aae
JS
94!
95
2cedc12a
CE
96.path.obj=$(EXEDIR)
97
4bf78aae 98.$(SRCSUFF).obj:
cc693a82 99 bcc32 $(CPPFLAGS) -c -n$(EXEDIR) {$< }
4bf78aae
JS
100
101.c.obj:
cc693a82 102 bcc32 $(CPPFLAGS) -P- -c -n$(EXEDIR) {$< }
4bf78aae 103
1997b8ba
CE
104!if "$(wxUSE_GUI)" != "0"
105#make resources only with GUI apps
2cedc12a
CE
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)
1997b8ba 108!endif
4bf78aae
JS
109
110clean:
cc693a82
CE
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?
4bf78aae 118