]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.b32
Inital fill in background, removed tabs, -1->wxID_ANY, TRUE->true, FALSE->false
[wxWidgets.git] / src / makeprog.b32
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
15 WXDIR = $(WXWIN)
16
17 !ifndef EXEDIR
18 EXEDIR = BORL
19 !endif
20
21 !include $(WXDIR)\src\makeb32.env
22
23 !if "$(wxUSE_GUI)" == "0"
24 IMGLIBS=
25 !else
26 IMGLIBS= png_bc$(DEBUG_SUFFIX) jpeg_bc$(DEBUG_SUFFIX) tiff_bc$(DEBUG_SUFFIX)
27 !endif
28
29 !if "$(FINAL)" == "0"
30 EX_LIBS=$(EXTRALIBS:.lib=_bcd.lib)
31 !else
32 EX_LIBS=$(EXTRALIBS:.lib=_bc.lib)
33 !endif
34
35 !if "$(WXUSINGDLL)" == "1"
36 LIBS=$(WXLIB) $(EX_LIBS) cw32mti import32 ole2w32 regex_bc$(DEBUG_SUFFIX) zlib_bc$(DEBUG_SUFFIX) $(IMGLIBS)
37 !else
38 LIBS=$(WXLIB) $(EX_LIBS) cw32mt import32 ole2w32 regex_bc$(DEBUG_SUFFIX) zlib_bc$(DEBUG_SUFFIX) $(IMGLIBS)
39 !endif
40
41 !if "$(wxUSE_ODBC)" == "1"
42 LIBS=$(LIBS) odbc32
43 !endif
44
45
46 !if "$(wxUSE_GUI)" == "0"
47 LINKOUT = /ap
48 !else
49 LINKOUT = /aa
50 !endif
51
52 !if "$(FINAL)" == "0"
53 #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
54 LINKFLAGS=/v /c $(LINKOUT) -L"$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk" $(EXTRALINKFLAGS)
55 OPT = -Od
56 DEBUG_FLAGS= -v
57 !else
58 #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
59 LINKFLAGS=$(LINKOUT) -L"$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk" $(EXTRALINKFLAGS)
60 OPT = -Od
61 DEBUG_FLAGS =
62 !endif
63
64 CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
65
66 !if "$(wxUSE_GUI)" == "0"
67 TARGETRES =
68 STARTUP = c0x32.obj
69 !else
70 TARGETRES = $(EXEDIR)\$(TARGET).res
71 STARTUP = c0w32.obj
72 !endif
73
74 EXE_TARGET=$(EXEDIR)\$(TARGET)
75
76 default : all
77
78 maked:
79 -if not exist $(EXEDIR)\nul mkdir $(EXEDIR)
80
81 wx: $(EXE_TARGET).exe $(EXTRATARGETS)
82
83 all: maked wx
84
85
86 $(EXE_TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
87 $(LINK) $(LINKFLAGS) -j$(EXEDIR) @&&!
88 $(STARTUP) $(OBJECTS)
89 $(EXE_TARGET)
90 nul
91 $(LIBS)
92 $(TARGETDEF)
93 $(TARGETRES)
94 !
95
96 .path.obj=$(EXEDIR)
97
98 .$(SRCSUFF).obj:
99 bcc32 $(CPPFLAGS) -c -n$(EXEDIR) {$< }
100
101 .c.obj:
102 bcc32 $(CPPFLAGS) -P- -c -n$(EXEDIR) {$< }
103
104 !if "$(wxUSE_GUI)" != "0"
105 #make resources only with GUI apps
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 !endif
109
110 clean:
111 -$(RM) $(EXEDIR)\*.obj
112 -$(RM) $(EXEDIR)\*.exe
113 -$(RM) $(EXEDIR)\*.res
114 -$(RM) $(EXEDIR)\*.map
115 -$(RM) $(EXEDIR)\*.rws
116 -$(RM) $(EXEDIR)\*.tds
117 -$(RM) $(EXEDIR)\*.il?
118