1 #!#############################################################################
3 #! Purpose: tmake template file from which makefile.bcc is generated by running
4 #! tmake -t bcc wxwin.pro -o makefile.bcc
5 #! Author: Vadim Zeitlin
8 #!#############################################################################
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
18 next if $wxGeneric{$file} =~ /\b(PS|G|U)\b/;
20 $file =~ s/cp?p?$/obj/;
21 $project{"WXGENERICOBJS"} .= "\$(MSWDIR)\\" . $file . " "
24 foreach $file (sort keys %wxCommon) {
25 #! socket files don't compile under Win16 currently
26 next if $wxCommon{$file} =~ /\b(32|S)\b/;
28 #! needs extra files (sql*.h) so not compiled by default.
29 next if $file =~ /^odbc\./;
31 $file =~ s/cp?p?$/obj/;
32 $project{"WXCOMMONOBJS"} .= "\$(MSWDIR)\\" . $file . " "
35 #! special hack for Borland in 16 bits needs this file
36 $project{"WXCOMMONOBJS"} .= '${MSWDIR}\resourc2.cpp';
38 foreach $file (sort keys %wxMSW) {
39 #! don't take files not appropriate for 16-bit Windows
40 next if $wxMSW{$file} =~ /\b(32|O)\b/;
42 $file =~ s/cp?p?$/obj/;
43 $project{"WXMSWOBJS"} .= "\$(MSWDIR)\\" . $file . " "
47 # This file was automatically generated by tmake at #$ Now()
48 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE BCC.T!
52 # Author: Julian Smart
55 # Copyright:(c) 1993, AIAI, University of Edinburgh
59 # Makefile : Builds wxWindows library wx.lib for Windows 3.1
63 !error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
67 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
71 # !error You must start compiling from wx\src, not wx\src\msw.
80 !include $(WXDIR)\src\makebcc.env
82 THISDIR = $(WXDIR)\src\msw
84 # Please set these according to the settings in wx_setup.h, so we can include
85 # the appropriate libraries in wx.lib
93 !if "$(USE_CTL3D)" == "1"
94 PERIPH_LIBS=$(BCCDIR)\lib\ctl3dv2.lib $(PERIPH_LIBS)
97 !if "$(USE_XPM_IN_MSW)" == "1"
98 PERIPH_LIBS=$(WXDIR)\xpm.lib $(PERIPH_LIBS)
99 PERIPH_TARGET=xpm $(PERIPH_TARGET)
100 PERIPH_CLEAN_TARGET=clean_xpm $(PERIPH_CLEAN_TARGET)
103 # TODO: add these libraries
104 # PERIPH_LIBS=$(WXDIR)\lib\zlib.lib $(WXDIR)\lib\winpng.lib $(PERIPH_LIBS)
105 PERIPH_TARGET=zlib png $(PERIPH_TARGET)
106 PERIPH_CLEAN_TARGET=clean_zlib clean_png $(PERIPH_CLEAN_TARGET)
108 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
110 LIBTARGET= $(WXLIBDIR)\wx.lib
118 DOCDIR = $(WXDIR)\docs
120 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
123 $(MSWDIR)\y_tab.obj \
124 #$ ExpandList("WXCOMMONOBJS");
126 MSWOBJS = #$ ExpandList("WXMSWOBJS");
128 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
132 wx: $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
134 $(LIBTARGET): $(DUMMY).obj $(OBJECTS) $(PERIPH_LIBS)
136 tlib $(LIBTARGET) /P1024 @&&!
137 +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
140 dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
141 dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
143 $(MSWDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
146 # $(CPPFLAGS2) /c $*.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
149 $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
150 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
152 $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
153 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
155 # $(OBJECTS): $(WXDIR)\include\wx\setup.h
158 $_ = $project{"WXMSWOBJS"};
163 $text .= $_ . "\n\n";
167 ########################################################
168 # Common objects (always compiled)
171 $_ = $project{"WXCOMMONOBJS"};
177 $text .= $_ . "\n\n";
181 ########################################################
182 # Generic objects (not always compiled, depending on
183 # whether platforms have native implementations)
186 $_ = $project{"WXGENERICOBJS"};
192 $text .= $_ . "\n\n";
208 make -f makefile.bcc all_execs
213 make -f makefile.bcc ctl3d dib fafa gauge hytext itsy prologio rcparser wx wxgraph\
214 wxstring wxtree mfutils # wxxpm
218 make -f makefile.bcc ctl3d fafa wxstring itsy gauge # wxxpm
222 cd $(WXDIR)\src\msw\ctl3d\borland
223 make -f makefile.bcc -DCFG=$(CFG)
228 make -f makefile.bcc -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG)
238 make -f makefile.bcc clean
248 make -f makefile.bcc clean
253 -H=$(WXDIR)\src\msw\borland.pch
268 -I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/png;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm
269 -I$(WXDIR)\include\wx\msw\gnuwin32
276 !if "$(BOR_VER)" == "3.1"
278 !elif "$(BOR_VER)" == "4"
279 echo -Ff=512 >>$(CFG)
282 echo -Ff=512 >>$(CFG)
288 clean: $(PERIPH_CLEAN_TARGET)
294 erase ..\common\y_tab.c
295 erase ..\common\lex_yy.c