0f04dbf324
(you can still get this information from CVS/Entries and there will be fewer bogus revisions) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
112 lines
3.1 KiB
Perl
112 lines
3.1 KiB
Perl
#!#############################################################################
|
|
#! 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) {
|
|
next if $wxCommon{$file} =~ /\b(16|U)\b/;
|
|
|
|
$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/;
|
|
|
|
my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
|
|
$file =~ s/cp?p?$/obj/;
|
|
$project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
|
|
$project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
|
|
$project{"WXMSWOBJS"} .= $file . " "
|
|
}
|
|
#$}
|
|
|
|
# This file was automatically generated by tmake
|
|
# 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.
|
|
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
|
|
|
|
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
|
|
|
|
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
|