2002-09-04 06:47:11 -04:00
|
|
|
#!#############################################################################
|
|
|
|
#! File: baseb32.t
|
|
|
|
#! Purpose: tmake template file from which makebase.b32 is generated by running
|
|
|
|
#! tmake -t b32 wxwin.pro
|
|
|
|
#! Author: Michael Fielding
|
|
|
|
#! Created: 6-08-02
|
|
|
|
#! Version: $Id$
|
|
|
|
#!#############################################################################
|
|
|
|
|
|
|
|
#${
|
|
|
|
#! include the code which parses filelist.txt file and initializes
|
|
|
|
#! %wxCommon, %wxGeneric and %wxMSW hashes.
|
|
|
|
IncludeTemplate("filelist.t");
|
|
|
|
|
|
|
|
#! now transform these hashes into $project tags
|
|
|
|
foreach $file (sort keys %wxCommon) {
|
|
|
|
next if $wxCommon{$file} !~ /\bB\b/;
|
|
|
|
|
|
|
|
$isCFile = $file =~ /\.c$/;
|
|
|
|
$file =~ s/cp?p?$/obj/;
|
2003-06-19 05:21:07 -04:00
|
|
|
$obj = "\$(OBJ_PATH)\\" . $file . " ";
|
2002-09-04 06:47:11 -04:00
|
|
|
$project{"WXCOMMONOBJS"} .= $obj;
|
|
|
|
$project{"WXCOBJS"} .= $obj if $isCFile;
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach $file (sort keys %wxMSW) {
|
|
|
|
next if $wxMSW{$file} !~ /\bB\b/;
|
|
|
|
|
|
|
|
$isCFile = $file =~ /\.c$/;
|
|
|
|
|
|
|
|
my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
|
|
|
|
$file =~ s/cp?p?$/obj/;
|
2003-06-19 05:21:07 -04:00
|
|
|
my $obj = "\$(OBJ_PATH)\\" . $file . " ";
|
2002-09-04 06:47:11 -04:00
|
|
|
|
|
|
|
$project{"WXMSWOBJS"} .= $obj;
|
|
|
|
if ( $isOleObj ) {
|
|
|
|
#! remember that this file is in ole subdir
|
|
|
|
$project{"WXOLEOBJS"} .= $obj;
|
|
|
|
}
|
|
|
|
$project{"WXCOBJS"} .= $obj if $isCFile;
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach $file (sort keys %wxBase) {
|
|
|
|
$isCFile = $file =~ /\.c$/;
|
|
|
|
$file =~ s/cp?p?$/obj/;
|
2003-06-19 05:21:07 -04:00
|
|
|
$project{"WXCOMMONOBJS"} .= "\$(OBJ_PATH)\\" . $file . " ";
|
2002-09-04 06:47:11 -04:00
|
|
|
$project{"WXCOBJS"} .= $obj if $isCFile;
|
|
|
|
}
|
|
|
|
#$}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This file was automatically generated by tmake
|
|
|
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
|
|
|
|
|
|
|
|
#
|
|
|
|
# File: makebase.b32
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1998
|
|
|
|
# Updated: Michael Fielding, 2002
|
|
|
|
# Copyright:
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
|
|
|
# Makefile : Builds wxWindows library wxbase.lib for MS Windows,
|
|
|
|
# and Borland C++ (32-bit).
|
|
|
|
|
|
|
|
# BCCDIR now defined in ../makeb32.env
|
|
|
|
|
|
|
|
!if "$(WXWIN)" == ""
|
|
|
|
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
|
|
!endif
|
|
|
|
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
THISDIR = $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
# Set all these to 1 if you want to build a dynamic library
|
|
|
|
!if "$(DLL)" == "1"
|
|
|
|
WXMAKINGDLL=1
|
|
|
|
WXBUILDDLL=1
|
|
|
|
!endif
|
|
|
|
|
|
|
|
wxUSE_GUI=0
|
|
|
|
|
|
|
|
!include $(WXDIR)\src\makeb32.env
|
|
|
|
|
|
|
|
PERIPH_LIBS=
|
2002-12-04 09:11:26 -05:00
|
|
|
PERIPH_TARGET=zlib regex $(PERIPH_TARGET)
|
|
|
|
PERIPH_CLEAN_TARGET=clean_zlib clean_regex $(PERIPH_CLEAN_TARGET)
|
2002-09-04 06:47:11 -04:00
|
|
|
|
|
|
|
!if "$(DLL)" == "0"
|
|
|
|
DUMMY=dummy
|
|
|
|
!else
|
|
|
|
DUMMY=dummydll
|
2003-06-19 05:21:07 -04:00
|
|
|
LIBS= cw32mti import32 ole2w32 odbc32 zlib regex
|
2002-09-04 06:47:11 -04:00
|
|
|
!endif
|
|
|
|
|
|
|
|
LIBTARGET=$(WXLIB)
|
|
|
|
|
|
|
|
GENDIR=..\generic
|
|
|
|
COMMDIR=..\common
|
|
|
|
HTMLDIR=..\html
|
|
|
|
OLEDIR=.\ole
|
|
|
|
MSWDIR=.
|
|
|
|
|
|
|
|
DOCDIR = $(WXDIR)\docs
|
|
|
|
|
|
|
|
COMMONOBJS = \
|
|
|
|
#$ ExpandList("WXCOMMONOBJS");
|
|
|
|
|
|
|
|
MSWOBJS = #$ ExpandList("WXMSWOBJS");
|
|
|
|
|
|
|
|
OBJECTS = $(COMMONOBJS) $(MSWOBJS)
|
|
|
|
|
|
|
|
default: wx
|
|
|
|
|
2003-06-19 05:21:07 -04:00
|
|
|
wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph makeoutdir $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
|
2002-09-04 06:47:11 -04:00
|
|
|
|
|
|
|
all: wx
|
|
|
|
|
2003-06-19 05:21:07 -04:00
|
|
|
makeoutdir:
|
|
|
|
-mkdir $(OBJ_PATH)
|
|
|
|
|
2002-09-04 06:47:11 -04:00
|
|
|
# Copy the in-CVS setup0.h to setup.h if necessary
|
|
|
|
makesetuph:
|
|
|
|
cd $(WXDIR)\include\wx\msw
|
|
|
|
if not exist setup.h copy setup0.h setup.h
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
# Copy include\wx\msw\setup.h to the architecture-specific location
|
|
|
|
makearchsetuph:
|
|
|
|
copy $(WXDIR)\include\wx\msw\setup.h $(ARCHSETUPH)
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
$(ARCHINCDIR)\wx:
|
|
|
|
-mkdir $(ARCHINCDIR)
|
|
|
|
-mkdir $(ARCHINCDIR)\wx
|
2002-09-06 06:51:49 -04:00
|
|
|
-erase $(CFG)
|
2002-09-04 06:47:11 -04:00
|
|
|
|
|
|
|
!if "$(DLL)" == "0"
|
|
|
|
|
|
|
|
$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
|
|
|
|
-erase $(WXLIB)
|
|
|
|
tlib "$(WXLIB)" /P1024 @&&!
|
|
|
|
+$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
|
|
|
|
!
|
|
|
|
|
|
|
|
!else
|
|
|
|
|
|
|
|
$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
|
|
|
|
-erase $(WXLIB)
|
|
|
|
-erase $(WXDLL)
|
|
|
|
$(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
|
|
|
|
c0d32.obj $(OBJECTS)
|
|
|
|
$(WXLIBDIR)\$(WXLIBNAME)
|
|
|
|
nul
|
|
|
|
$(PERIPH_LIBS) $(LIBS)
|
|
|
|
wxb32
|
|
|
|
!
|
|
|
|
implib -c $(LIBTARGET) $(WXLIBDIR)\$(WXLIBNAME).dll
|
|
|
|
!endif
|
|
|
|
|
|
|
|
dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
|
|
|
|
dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res
|
|
|
|
|
|
|
|
version.res:
|
|
|
|
brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
|
|
|
|
|
|
|
|
#${
|
|
|
|
$_ = $project{"WXMSWOBJS"};
|
|
|
|
my @objs = split;
|
|
|
|
foreach (@objs) {
|
|
|
|
$text .= $_ . ": ";
|
|
|
|
$suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
|
|
|
|
s/obj$/$suffix/;
|
2003-06-19 05:21:07 -04:00
|
|
|
s/OBJ_PATH/MSWDIR/;
|
|
|
|
if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
|
|
|
|
|
2002-09-04 06:47:11 -04:00
|
|
|
$text .= $_ . "\n\n";
|
|
|
|
}
|
|
|
|
#$}
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Common objects (always compiled)
|
|
|
|
|
|
|
|
#${
|
|
|
|
$_ = $project{"WXCOMMONOBJS"};
|
|
|
|
my @objs = split;
|
|
|
|
foreach (@objs) {
|
|
|
|
$text .= $_ . ": ";
|
|
|
|
$suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
|
2003-06-19 05:21:07 -04:00
|
|
|
s/OBJ_PATH/COMMDIR/;
|
2002-09-04 06:47:11 -04:00
|
|
|
s/obj$/$suffix/;
|
|
|
|
$text .= $_ . "\n\n";
|
|
|
|
}
|
|
|
|
#$}
|
|
|
|
|
|
|
|
|
|
|
|
all_utils:
|
|
|
|
cd $(WXDIR)\utils
|
|
|
|
${MAKE} -f makefile.b32
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
all_samples:
|
|
|
|
cd $(WXDIR)\samples
|
|
|
|
${MAKE} -f makefile.b32
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
all_execs:
|
|
|
|
cd $(WXDIR)\utils
|
|
|
|
${MAKE} -f makefile.b32 all_execs
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zlib: $(CFG)
|
|
|
|
cd $(WXDIR)\src\zlib
|
|
|
|
${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
clean_zlib:
|
|
|
|
cd $(WXDIR)\src\zlib
|
|
|
|
${MAKE} -f makefile.b32 clean
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
|
|
|
|
regex: $(CFG)
|
|
|
|
cd $(WXDIR)\src\regex
|
|
|
|
${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
clean_regex:
|
|
|
|
cd $(WXDIR)\src\regex
|
|
|
|
${MAKE} -f makefile.b32 clean
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(CFG): makebase.b32
|
|
|
|
copy &&!
|
|
|
|
-Hc
|
|
|
|
-H=$(WXDIR)\src\msw\wx32.csm
|
|
|
|
-3
|
|
|
|
-d
|
|
|
|
-a1 # byte alignment
|
|
|
|
-R-
|
|
|
|
-X
|
|
|
|
-w-par
|
|
|
|
-w-aus
|
|
|
|
-w-hid # virtual function A hides virtual function B
|
|
|
|
-tWM
|
|
|
|
-tWC
|
|
|
|
|
|
|
|
-I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff;$(THISDIR)
|
|
|
|
-I$(WXDIR)\include\wx\msw\gnuwin32
|
|
|
|
|
|
|
|
-L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
|
|
|
|
-D__WXWIN__
|
|
|
|
-D__WXMSW__
|
|
|
|
-D__WINDOWS__
|
|
|
|
-DWIN32
|
|
|
|
$(OPT)
|
|
|
|
$(DEBUG_FLAGS)
|
|
|
|
$(WIN95FLAG)
|
|
|
|
! $(CFG)
|
|
|
|
|
|
|
|
clean: $(PERIPH_CLEAN_TARGET)
|
2003-06-19 05:21:07 -04:00
|
|
|
-$(RM) $(WXLIBDIR)\*.tds
|
|
|
|
-$(RM) $(WXLIBDIR)\*.il?
|
|
|
|
-$(RM) $(OBJ_PATH)\*.obj
|
|
|
|
-$(RM) $(OBJ_PATH)\*.pch
|
|
|
|
-$(RM) $(OBJ_PATH)\*.csm
|
|
|
|
-$(RM) $(OBJ_PATH)\"wx32.#??"
|
|
|
|
|
|
|
|
cleancfg:
|
|
|
|
-$(RM) $(OBJ_PATH)\*.cfg
|
|
|
|
|
|
|
|
|
|
|
|
cleanall: clean cleancfg
|
2002-09-04 06:47:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
self:
|
|
|
|
cd $(WXWIN)\distrib\msw\tmake
|
2003-06-19 05:21:07 -04:00
|
|
|
perl -S tmake -tb32base wxwin.pro -o makebase.b32
|
|
|
|
copy makebase.b32 $(WXWIN)\src\msw
|