]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeprog.b32
No real changes.
[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 "$(wxUSE_GUI)" == "0"
18IMGLIBS=
19!else
20IMGLIBS= winpng jpeg tiff
21!endif
22
23!if "$(WXUSINGDLL)" == "1"
24LIBS=$(WXLIB) $(EXTRALIBS) cw32mti import32 ole2w32 regex zlib $(IMGLIBS) odbc32
25!else
26LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 regex zlib $(IMGLIBS) odbc32
27!endif
28
29# Note: you may need to remove some libraries for earlier versions of BC++, as below
30#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
31
32!if "$(wxUSE_GUI)" == "0"
33LINKOUT = /ap
34!else
35LINKOUT = /aa
36!endif
37
38!if "$(FINAL)" == "0"
39#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
40LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
41OPT = -Od
42DEBUG_FLAGS= -v
43!else
44#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
45LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
46OPT = -Od
47DEBUG_FLAGS =
48!endif
49
50CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
51
52TARGETDEF =
53!if "$(wxUSE_GUI)" == "0"
54TARGETRES =
55STARTUP = c0x32.obj
56!else
57if exist $(TARGET).def TARGETDEF = $(TARGET).def
58TARGETRES = $(TARGET).res
59STARTUP = c0w32.obj
60!endif
61
62all: $(TARGET).exe $(EXTRATARGETS)
63
64$(TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
65 $(LINK) $(LINKFLAGS) @&&!
66$(STARTUP) $(OBJECTS)
67$(TARGET)
68nul
69$(LIBS)
70
71$(TARGETRES)
72!
73
74.$(SRCSUFF).obj:
75 bcc32 $(CPPFLAGS) -c {$< }
76
77.c.obj:
78 bcc32 $(CPPFLAGS) -P- -c {$< }
79
80$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
81 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
82
83clean:
84 -erase *.obj
85 -erase *.exe
86 -erase *.res
87 -erase *.map
88 -erase *.rws
89 -erase *.tds
90 -erase *.il?
91