]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.b32
added mlte initialization
[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
4bf78aae 26!if "$(FINAL)" == "0"
b2cf617c 27#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
741f371c 28LINKFLAGS=/v /c /aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
4bf78aae
JS
29OPT = -Od
30DEBUG_FLAGS= -v
31!else
b2cf617c 32#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
741f371c 33LINKFLAGS=/aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
4bf78aae
JS
34OPT = -Od
35DEBUG_FLAGS =
36!endif
dbda9e86 37
f6bcfd97 38CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
dbda9e86
JS
39
40all: $(TARGET).exe $(EXTRATARGETS)
4bf78aae
JS
41
42$(TARGET).exe: $(OBJECTS) $(TARGET).res
c3b177ae 43 $(LINK) $(LINKFLAGS) @&&!
4bf78aae
JS
44c0w32.obj $(OBJECTS)
45$(TARGET)
46nul
47$(LIBS)
48
49$(TARGET).res
50!
51
52.$(SRCSUFF).obj:
53 bcc32 $(CPPFLAGS) -c {$< }
54
55.c.obj:
56 bcc32 $(CPPFLAGS) -P- -c {$< }
57
58$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
b14391d1 59 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
4bf78aae
JS
60
61clean:
62 -erase *.obj
63 -erase *.exe
64 -erase *.res
65 -erase *.map
66 -erase *.rws
c3b177ae
JS
67 -erase *.tds
68 -erase *.il?
4bf78aae 69