]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.b32
Committing in .
[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)
16!include $(WXDIR)\src\makeb32.env
17
2b5f62a0
VZ
18!if "$(wxUSE_GUI)" == "0"
19IMGLIBS=
20!else
21IMGLIBS= winpng jpeg tiff
22!endif
23
f6bcfd97 24!if "$(WXUSINGDLL)" == "1"
1eb9ddb9 25LIBS=$(WXLIB) $(EXTRALIBS) cw32mti import32 ole2w32 regex zlib $(IMGLIBS)
f6bcfd97 26!else
1eb9ddb9
MB
27LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 regex zlib $(IMGLIBS)
28!endif
29
30!if "$(wxUSE_ODBC)" == "1"
31LIBS=$(LIBS) odbc32
f6bcfd97 32!endif
4bf78aae 33
b2cf617c 34# Note: you may need to remove some libraries for earlier versions of BC++, as below
9d8c2f41 35#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
b2cf617c 36
8c3288a7
CE
37!if "$(wxUSE_GUI)" == "0"
38LINKOUT = /ap
39!else
40LINKOUT = /aa
41!endif
42
4bf78aae 43!if "$(FINAL)" == "0"
b2cf617c 44#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
8c3288a7 45LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
4bf78aae
JS
46OPT = -Od
47DEBUG_FLAGS= -v
48!else
b2cf617c 49#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
8c3288a7 50LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
4bf78aae
JS
51OPT = -Od
52DEBUG_FLAGS =
53!endif
dbda9e86 54
f6bcfd97 55CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
dbda9e86 56
8c3288a7
CE
57!if "$(wxUSE_GUI)" == "0"
58TARGETRES =
59STARTUP = c0x32.obj
60!else
61TARGETRES = $(TARGET).res
62STARTUP = c0w32.obj
63!endif
64
dbda9e86 65all: $(TARGET).exe $(EXTRATARGETS)
4bf78aae 66
77fc3492 67$(TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
c3b177ae 68 $(LINK) $(LINKFLAGS) @&&!
8c3288a7 69$(STARTUP) $(OBJECTS)
4bf78aae
JS
70$(TARGET)
71nul
72$(LIBS)
1eb9ddb9 73$(TARGETDEF)
8c3288a7 74$(TARGETRES)
4bf78aae
JS
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
b14391d1 84 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
4bf78aae
JS
85
86clean:
87 -erase *.obj
88 -erase *.exe
89 -erase *.res
90 -erase *.map
91 -erase *.rws
c3b177ae
JS
92 -erase *.tds
93 -erase *.il?
4bf78aae 94