]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.b32
Added missing includes for non-precompiled headers.
[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#
8# Include file for samples and utilities. Set TARGET and OBJECTS
9# before including this file.
10
6b6fc9b0
VZ
11# WXWIN set by parent make
12# BCCDIR set in makeb32.env
4bf78aae
JS
13
14WXDIR = $(WXWIN)
15!include $(WXDIR)\src\makeb32.env
16
f6bcfd97 17!if "$(WXUSINGDLL)" == "1"
08e0d1cc 18LIBS=$(WXLIB) $(EXTRALIBS) cw32mti import32 ole2w32 winpng regex zlib jpeg tiff odbc32
f6bcfd97 19!else
08e0d1cc 20LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng regex zlib jpeg tiff odbc32
f6bcfd97 21!endif
4bf78aae 22
b2cf617c 23# Note: you may need to remove some libraries for earlier versions of BC++, as below
9d8c2f41 24#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
b2cf617c 25
8c3288a7
CE
26!if "$(wxUSE_GUI)" == "0"
27LINKOUT = /ap
28!else
29LINKOUT = /aa
30!endif
31
4bf78aae 32!if "$(FINAL)" == "0"
b2cf617c 33#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
8c3288a7 34LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
4bf78aae
JS
35OPT = -Od
36DEBUG_FLAGS= -v
37!else
b2cf617c 38#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
8c3288a7 39LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
4bf78aae
JS
40OPT = -Od
41DEBUG_FLAGS =
42!endif
dbda9e86 43
f6bcfd97 44CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
dbda9e86 45
8c3288a7
CE
46!if "$(wxUSE_GUI)" == "0"
47TARGETRES =
48STARTUP = c0x32.obj
49!else
50TARGETRES = $(TARGET).res
51STARTUP = c0w32.obj
52!endif
53
dbda9e86 54all: $(TARGET).exe $(EXTRATARGETS)
4bf78aae 55
8c3288a7 56$(TARGET).exe: $(OBJECTS) $(TARGETRES)
c3b177ae 57 $(LINK) $(LINKFLAGS) @&&!
8c3288a7 58$(STARTUP) $(OBJECTS)
4bf78aae
JS
59$(TARGET)
60nul
61$(LIBS)
62
8c3288a7 63$(TARGETRES)
4bf78aae
JS
64!
65
66.$(SRCSUFF).obj:
67 bcc32 $(CPPFLAGS) -c {$< }
68
69.c.obj:
70 bcc32 $(CPPFLAGS) -P- -c {$< }
71
72$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
b14391d1 73 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
4bf78aae
JS
74
75clean:
76 -erase *.obj
77 -erase *.exe
78 -erase *.res
79 -erase *.map
80 -erase *.rws
c3b177ae
JS
81 -erase *.tds
82 -erase *.il?
4bf78aae 83