1999-07-14 22:46:12 +00:00
|
|
|
#!#############################################################################
|
|
|
|
#! File: sc.t
|
|
|
|
#! Purpose: tmake template file from which makefile.sc is generated by running
|
|
|
|
#! tmake -t sc wxwin.pro -o makefile.sc
|
|
|
|
#! Author: Vadim Zeitlin
|
|
|
|
#! Created: 14.07.99
|
|
|
|
#! 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 %wxGeneric) {
|
|
|
|
my $tag = "";
|
|
|
|
if ( $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/ ) {
|
|
|
|
$tag = "WXNONESSENTIALOBJS";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$tag = "WXGENERICOBJS";
|
|
|
|
}
|
|
|
|
|
|
|
|
$file =~ s/cp?p?$/obj/;
|
|
|
|
$project{$tag} .= '$(GENDIR)\\' . $file . " "
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach $file (sort keys %wxCommon) {
|
2002-01-03 23:08:41 +00:00
|
|
|
next if $wxCommon{$file} =~ /\b(16|U)\b/;
|
|
|
|
|
1999-07-14 22:46:12 +00:00
|
|
|
$file =~ s/cp?p?$/obj/;
|
|
|
|
$project{"WXCOMMONOBJS"} .= '$(COMMDIR)\\' . $file . " "
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach $file (sort keys %wxMSW) {
|
|
|
|
#! these files don't compile with SC++ 6
|
|
|
|
next if $file =~ /^(joystick|pnghand)\./;
|
|
|
|
|
|
|
|
next if $wxGeneric{$file} =~ /\b16\b/;
|
|
|
|
|
1999-10-25 07:22:06 +00:00
|
|
|
my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
|
1999-07-14 22:46:12 +00:00
|
|
|
$file =~ s/cp?p?$/obj/;
|
1999-10-25 07:22:06 +00:00
|
|
|
$project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
|
|
|
|
$project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
|
|
|
|
$project{"WXMSWOBJS"} .= $file . " "
|
1999-07-14 22:46:12 +00:00
|
|
|
}
|
|
|
|
#$}
|
|
|
|
|
|
|
|
# This file was automatically generated by tmake at #$ Now()
|
|
|
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
|
|
|
|
|
|
|
|
# Symantec C++ makefile for the msw objects
|
|
|
|
# called from src\makefile.sc
|
|
|
|
|
|
|
|
# configuration section (see src\makefile.sc) ###########################
|
|
|
|
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
|
|
|
|
include ..\makesc.env
|
|
|
|
|
|
|
|
DEBUG=0
|
|
|
|
|
|
|
|
LIBTARGET = $(LIBDIR)\wx.lib
|
|
|
|
|
|
|
|
OPTIONS=
|
|
|
|
|
|
|
|
# end of configuration section ##########################################
|
|
|
|
|
|
|
|
GENDIR=$(WXDIR)\src\generic
|
|
|
|
COMMDIR=$(WXDIR)\src\common
|
|
|
|
OLEDIR=ole
|
|
|
|
MSWDIR=$(WXDIR)\src\msw
|
|
|
|
|
|
|
|
GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
|
|
|
|
|
|
|
|
COMMONOBJS = \
|
|
|
|
$(COMMDIR)\y_tab.obj \
|
|
|
|
#$ ExpandList("WXCOMMONOBJS");
|
|
|
|
|
|
|
|
MSWOBJS = #$ ExpandList("WXMSWOBJS");
|
|
|
|
|
|
|
|
# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
|
2001-05-09 22:36:51 +00:00
|
|
|
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
|
1999-07-14 22:46:12 +00:00
|
|
|
|
|
|
|
all: $(LIBTARGET)
|
|
|
|
|
|
|
|
$(LIBTARGET): $(OBJECTS)
|
|
|
|
-del $(LIBTARGET)
|
|
|
|
*lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-del *.obj
|
|
|
|
-del $(LIBTARGET)
|
|
|
|
|
|
|
|
$(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
|
|
|
|
|
|
|
|
$(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
|
|
|
|
copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
|
|
|
|
|
|
|
|
$(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
|
|
|
|
copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
|
|
|
|
|
|
|
|
# $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
|
|
|
|
# *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
|
|
|
|
|
1999-07-23 21:26:57 +00:00
|
|
|
MFTYPE=sc
|
|
|
|
makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
|
|
|
|
cd $(WXWIN)\distrib\msw\tmake
|
|
|
|
tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
|
|
|
|
copy makefile.$(MFTYPE) $(WXWIN)\src\msw
|