]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeprog.b32
Fixed Refresh to use a "const wxRect *" parameter.
[wxWidgets.git] / src / makeprog.b32
... / ...
CommitLineData
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 set by parent make
12# BCCDIR set in makeb32.env
13
14WXDIR = $(WXWIN)
15!include $(WXDIR)\src\makeb32.env
16
17!if "$(WXUSINGDLL)" == "1"
18LIBS=$(WXLIB) $(EXTRALIBS) cw32mti import32 ole2w32 winpng regex zlib jpeg tiff odbc32
19!else
20LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng regex zlib jpeg tiff odbc32
21!endif
22
23# Note: you may need to remove some libraries for earlier versions of BC++, as below
24#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
25
26!if "$(wxUSE_GUI)" == "0"
27LINKOUT = /ap
28!else
29LINKOUT = /aa
30!endif
31
32!if "$(FINAL)" == "0"
33#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
34LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
35OPT = -Od
36DEBUG_FLAGS= -v
37!else
38#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
39LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
40OPT = -Od
41DEBUG_FLAGS =
42!endif
43
44CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
45
46!if "$(wxUSE_GUI)" == "0"
47TARGETRES =
48STARTUP = c0x32.obj
49!else
50TARGETRES = $(TARGET).res
51STARTUP = c0w32.obj
52!endif
53
54all: $(TARGET).exe $(EXTRATARGETS)
55
56$(TARGET).exe: $(OBJECTS) $(TARGETRES)
57 $(LINK) $(LINKFLAGS) @&&!
58$(STARTUP) $(OBJECTS)
59$(TARGET)
60nul
61$(LIBS)
62
63$(TARGETRES)
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
73 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
74
75clean:
76 -erase *.obj
77 -erase *.exe
78 -erase *.res
79 -erase *.map
80 -erase *.rws
81 -erase *.tds
82 -erase *.il?
83