1 #!#############################################################################
3 #! Purpose: tmake template file from which makebase.b32 is generated by running
4 #! tmake -t b32 wxwin.pro
5 #! Author: Michael Fielding
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 %wxCommon) {
17 next if $wxCommon{$file} !~ /\bB\b/;
19 $isCFile = $file =~ /\.c$/;
20 $file =~ s/cp?p?$/obj/;
21 $obj = "\$(MSWDIR)\\" . $file . " ";
22 $project{"WXCOMMONOBJS"} .= $obj;
23 $project{"WXCOBJS"} .= $obj if $isCFile;
26 foreach $file (sort keys %wxMSW) {
27 next if $wxMSW{$file} !~ /\bB\b/;
29 $isCFile = $file =~ /\.c$/;
31 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
32 $file =~ s/cp?p?$/obj/;
33 my $obj = "\$(MSWDIR)\\" . $file . " ";
35 $project{"WXMSWOBJS"} .= $obj;
37 #! remember that this file is in ole subdir
38 $project{"WXOLEOBJS"} .= $obj;
40 $project{"WXCOBJS"} .= $obj if $isCFile;
43 foreach $file (sort keys %wxBase) {
44 $isCFile = $file =~ /\.c$/;
45 $file =~ s/cp?p?$/obj/;
46 $project{"WXCOMMONOBJS"} .= "\$(MSWDIR)\\" . $file . " ";
47 $project{"WXCOBJS"} .= $obj if $isCFile;
53 # This file was automatically generated by tmake
54 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
58 # Author: Julian Smart
60 # Updated: Michael Fielding, 2002
65 # Makefile : Builds wxWindows library wxbase.lib for MS Windows,
66 # and Borland C++ (32-bit).
68 # BCCDIR now defined in ../makeb32.env
71 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
75 THISDIR = $(WXDIR)\src\msw
77 # Set all these to 1 if you want to build a dynamic library
85 !include $(WXDIR)\src\makeb32.env
88 PERIPH_TARGET=zlib regex $(PERIPH_TARGET)
89 PERIPH_CLEAN_TARGET=clean_zlib clean_regex $(PERIPH_CLEAN_TARGET)
95 LIBS= cw32mti import32 ole2w32 odbc32 zlib winpng jpeg tiff regex
106 DOCDIR = $(WXDIR)\docs
109 #$ ExpandList("WXCOMMONOBJS");
111 MSWOBJS = #$ ExpandList("WXMSWOBJS");
113 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
117 wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
121 # Copy the in-CVS setup0.h to setup.h if necessary
123 cd $(WXDIR)\include\wx\msw
124 if not exist setup.h copy setup0.h setup.h
127 # Copy include\wx\msw\setup.h to the architecture-specific location
129 copy $(WXDIR)\include\wx\msw\setup.h $(ARCHSETUPH)
134 -mkdir $(ARCHINCDIR)\wx
139 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
141 tlib "$(WXLIB)" /P1024 @&&!
142 +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
147 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
150 $(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
152 $(WXLIBDIR)\$(WXLIBNAME)
154 $(PERIPH_LIBS) $(LIBS)
157 implib -c $(LIBTARGET) $(WXLIBDIR)\$(WXLIBNAME).dll
160 dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
161 dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res
164 brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
167 $_ = $project{"WXMSWOBJS"};
171 if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
172 $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
174 $text .= $_ . "\n\n";
178 ########################################################
179 # Common objects (always compiled)
182 $_ = $project{"WXCOMMONOBJS"};
186 $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
189 $text .= $_ . "\n\n";
196 ${MAKE} -f makefile.b32
201 ${MAKE} -f makefile.b32
206 ${MAKE} -f makefile.b32 all_execs
211 ${MAKE} -f makefile.b32 wxUSE_GUI=0
216 ${MAKE} -f makefile.b32 clean
221 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
226 ${MAKE} -f makefile.b32 clean
231 ${MAKE} -f makefile.b32 wxUSE_GUI=0
236 ${MAKE} -f makefile.b32 clean
240 cd $(WXDIR)\src\regex
241 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
245 cd $(WXDIR)\src\regex
246 ${MAKE} -f makefile.b32 clean
251 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
256 ${MAKE} -f makefile.b32 clean
262 -H=$(WXDIR)\src\msw\wx32.csm
270 -w-hid # virtual function A hides virtual function B
274 -I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff;$(THISDIR)
275 -I$(WXDIR)\include\wx\msw\gnuwin32
277 -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
287 clean: $(PERIPH_CLEAN_TARGET)
288 -erase $(WXLIBDIR)\wx.tds
289 -erase $(WXLIBDIR)\wx.il?
298 cd $(WXWIN)\distrib\msw\tmake
299 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
300 copy makefile.$(MFTYPE) $(WXWIN)\src\msw