]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.b32
repaired some of the more obvious horrors in the contrib (configure) Makefiles
[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
11# WXWIN and BCCDIR are set by parent make
12
13WXDIR = $(WXWIN)
14!include $(WXDIR)\src\makeb32.env
15
bf3dab48 16LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg xpm tiff odbc32
4bf78aae 17
b2cf617c
JS
18# Note: you may need to remove some libraries for earlier versions of BC++, as below
19#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib xpm tiff
20
4bf78aae 21!if "$(FINAL)" == "0"
b2cf617c 22#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
741f371c 23LINKFLAGS=/v /c /aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
4bf78aae
JS
24OPT = -Od
25DEBUG_FLAGS= -v
26!else
b2cf617c 27#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
741f371c 28LINKFLAGS=/aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
4bf78aae
JS
29OPT = -Od
30DEBUG_FLAGS =
31!endif
dbda9e86
JS
32
33CPPFLAGS=$(DEBUG_FLAGS) $(EXTRACPPFLAGS) $(OPT) @$(CFG)
34
35all: $(TARGET).exe $(EXTRATARGETS)
4bf78aae
JS
36
37$(TARGET).exe: $(OBJECTS) $(TARGET).res
c3b177ae 38 $(LINK) $(LINKFLAGS) @&&!
4bf78aae
JS
39c0w32.obj $(OBJECTS)
40$(TARGET)
41nul
42$(LIBS)
43
44$(TARGET).res
45!
46
47.$(SRCSUFF).obj:
48 bcc32 $(CPPFLAGS) -c {$< }
49
50.c.obj:
51 bcc32 $(CPPFLAGS) -P- -c {$< }
52
53$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
b14391d1 54 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
4bf78aae
JS
55
56clean:
57 -erase *.obj
58 -erase *.exe
59 -erase *.res
60 -erase *.map
61 -erase *.rws
c3b177ae
JS
62 -erase *.tds
63 -erase *.il?
4bf78aae 64