]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeprog.b32
initial attempts to get raw bitmaps working under Mac
[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, OBJECTS and
9# TARGETDEF (if you want to include a DEF file in the build) before
10# including this file.
11
12# WXWIN set by parent make
13# BCCDIR set in makeb32.env
14
15WXDIR = $(WXWIN)
16
17!ifndef EXEDIR
18EXEDIR = BORL
19!endif
20
21!include $(WXDIR)\src\makeb32.env
22
23!if "$(wxUSE_GUI)" == "0"
24IMGLIBS=
25!else
26IMGLIBS= png_$(DEBUG_SUFFIX) jpeg_$(DEBUG_SUFFIX) tiff_$(DEBUG_SUFFIX)
27!endif
28
29!if "$(FINAL)" == "0"
30EX_LIBS=$(EXTRALIBS:.lib=_d.lib)
31!else
32EX_LIBS=$(EXTRALIBS)
33!endif
34
35!if "$(WXUSINGDLL)" == "1"
36LIBS=$(WXLIB) $(EX_LIBS) cw32mti import32 ole2w32 regex_$(DEBUG_SUFFIX) zlib_$(DEBUG_SUFFIX) $(IMGLIBS)
37!else
38LIBS=$(WXLIB) $(EX_LIBS) cw32mt import32 ole2w32 regex_$(DEBUG_SUFFIX) zlib_$(DEBUG_SUFFIX) $(IMGLIBS)
39!endif
40
41!if "$(wxUSE_ODBC)" == "1"
42LIBS=$(LIBS) odbc32
43!endif
44
45# Note: you may need to remove some libraries for earlier versions of BC++, as below
46#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
47
48!if "$(wxUSE_GUI)" == "0"
49LINKOUT = /ap
50!else
51LINKOUT = /aa
52!endif
53
54!if "$(FINAL)" == "0"
55#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
56LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
57OPT = -Od
58DEBUG_FLAGS= -v
59!else
60#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
61LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
62OPT = -Od
63DEBUG_FLAGS =
64!endif
65
66CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
67
68!if "$(wxUSE_GUI)" == "0"
69TARGETRES =
70STARTUP = c0x32.obj
71!else
72TARGETRES = $(EXEDIR)\$(TARGET).res
73STARTUP = c0w32.obj
74!endif
75
76EXE_TARGET=$(EXEDIR)\$(TARGET)
77
78default : all
79
80maked:
81 -if not exist $(EXEDIR) mkdir $(EXEDIR)
82
83wx: $(EXE_TARGET).exe $(EXTRATARGETS)
84
85all: maked wx
86
87
88$(EXE_TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
89 $(LINK) $(LINKFLAGS) -j$(EXEDIR) @&&!
90$(STARTUP) $(OBJECTS)
91$(EXE_TARGET)
92nul
93$(LIBS)
94$(TARGETDEF)
95$(TARGETRES)
96!
97
98.path.obj=$(EXEDIR)
99
100.$(SRCSUFF).obj:
101 bcc32 $(CPPFLAGS) -c -o$(EXEDIR)\$(<B).obj {$< }
102
103.c.obj:
104 bcc32 $(CPPFLAGS) -P- -c -o$(EXEDIR)\$(<B).obj {$< }
105
106$(TARGETRES) : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
107 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$(EXEDIR)\$(<B).res $(TARGET)
108
109clean:
110 -erase $(EXEDIR)\*.obj
111 -erase $(EXEDIR)\*.exe
112 -erase $(EXEDIR)\*.res
113 -erase $(EXEDIR)\*.map
114 -erase $(EXEDIR)\*.rws
115 -erase $(EXEDIR)\*.tds
116 -erase $(EXEDIR)\*.il?
117