1999-07-14 18:46:12 -04: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 . " "
|
|
|
|
}
|
|
|
|
|
2003-04-22 17:02:29 -04:00
|
|
|
foreach $file (sort keys %wxHTML) {
|
|
|
|
next if $wxHTML{$file} =~ /\b16\b/;
|
|
|
|
|
|
|
|
$file =~ s/cp?p?$/obj/;
|
|
|
|
$project{"WXHTMLOBJS"} .= '$(HTMLDIR)\\' . $file . " "
|
|
|
|
}
|
|
|
|
|
1999-07-14 18:46:12 -04:00
|
|
|
foreach $file (sort keys %wxCommon) {
|
2002-01-03 18:08:41 -05:00
|
|
|
next if $wxCommon{$file} =~ /\b(16|U)\b/;
|
|
|
|
|
1999-07-14 18:46:12 -04:00
|
|
|
$file =~ s/cp?p?$/obj/;
|
|
|
|
$project{"WXCOMMONOBJS"} .= '$(COMMDIR)\\' . $file . " "
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach $file (sort keys %wxMSW) {
|
|
|
|
#! these files don't compile with SC++ 6
|
2003-04-22 17:02:29 -04:00
|
|
|
#! next if $file =~ /^(joystick|pnghand)\./;
|
1999-07-14 18:46:12 -04:00
|
|
|
|
2003-04-19 14:15:17 -04:00
|
|
|
next if $wxMSW{$file} =~ /\b16\b/;
|
1999-07-14 18:46:12 -04:00
|
|
|
|
1999-10-25 03:22:06 -04:00
|
|
|
my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
|
1999-07-14 18:46:12 -04:00
|
|
|
$file =~ s/cp?p?$/obj/;
|
1999-10-25 03:22:06 -04:00
|
|
|
$project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
|
|
|
|
$project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
|
|
|
|
$project{"WXMSWOBJS"} .= $file . " "
|
1999-07-14 18:46:12 -04:00
|
|
|
}
|
|
|
|
#$}
|
|
|
|
|
2002-02-02 18:15:23 -05:00
|
|
|
# This file was automatically generated by tmake
|
1999-07-14 18:46:12 -04:00
|
|
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
|
|
|
|
|
2003-05-07 07:41:21 -04:00
|
|
|
# Digital mars makefile
|
|
|
|
# was Symantec C++ makefile for the msw objects
|
|
|
|
#
|
1999-07-14 18:46:12 -04:00
|
|
|
# called from src\makefile.sc
|
|
|
|
|
|
|
|
# configuration section (see src\makefile.sc) ###########################
|
|
|
|
|
2003-05-07 07:41:21 -04:00
|
|
|
WXDIR = ..\..
|
1999-07-14 18:46:12 -04:00
|
|
|
|
|
|
|
include ..\makesc.env
|
|
|
|
|
|
|
|
DEBUG=0
|
|
|
|
|
2003-04-19 14:15:17 -04:00
|
|
|
LIBTARGET = $(LIBDIR)\wx$(SC_SUFFIX).lib
|
1999-07-14 18:46:12 -04:00
|
|
|
|
|
|
|
OPTIONS=
|
|
|
|
|
|
|
|
# end of configuration section ##########################################
|
|
|
|
|
|
|
|
GENDIR=$(WXDIR)\src\generic
|
|
|
|
COMMDIR=$(WXDIR)\src\common
|
2003-04-22 17:02:29 -04:00
|
|
|
HTMLDIR=$(WXDIR)\src\html
|
1999-07-14 18:46:12 -04:00
|
|
|
OLEDIR=ole
|
|
|
|
MSWDIR=$(WXDIR)\src\msw
|
|
|
|
|
|
|
|
GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
|
|
|
|
|
2003-04-22 17:02:29 -04:00
|
|
|
COMMONOBJS = #$ ExpandList("WXCOMMONOBJS");
|
|
|
|
|
|
|
|
HTMLOBJS = #$ ExpandList ("WXHTMLOBJS");
|
1999-07-14 18:46:12 -04:00
|
|
|
|
|
|
|
MSWOBJS = #$ ExpandList("WXMSWOBJS");
|
|
|
|
|
|
|
|
# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
|
2003-04-24 17:37:23 -04:00
|
|
|
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
|
1999-07-14 18:46:12 -04:00
|
|
|
|
2003-06-18 08:59:17 -04:00
|
|
|
all: MAKEARCHDIR MAKELIBS PCH $(LIBTARGET) zlib png jpeg tiff regex
|
2003-04-19 14:15:17 -04:00
|
|
|
|
|
|
|
MAKEARCHDIR:
|
|
|
|
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
|
|
|
|
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)
|
|
|
|
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
|
|
|
|
@if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
|
2003-06-18 08:59:17 -04:00
|
|
|
@if not exist $(WXOUTDIR)\nul mkdir $(WXOUTDIR)
|
1999-07-14 18:46:12 -04:00
|
|
|
|
2003-05-07 09:18:45 -04:00
|
|
|
#build our own copies of missing libraries
|
|
|
|
MAKELIBS:
|
|
|
|
implib /s $(LIBDIR)\$(SHELLLIB) $(LIBDIR)\$(SC_SUFFIX)\$(SHELLLIB).def
|
|
|
|
implib /s $(LIBDIR)\$(WINSOCKLIB) $(LIBDIR)\$(SC_SUFFIX)\$(WINSOCKLIB).def
|
2003-04-22 17:02:29 -04:00
|
|
|
|
1999-07-14 18:46:12 -04:00
|
|
|
$(LIBTARGET): $(OBJECTS)
|
|
|
|
-del $(LIBTARGET)
|
|
|
|
*lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
|
|
|
|
|
2003-06-18 08:59:17 -04:00
|
|
|
clean: clean_msw clean_zlib clean_png clean_jpeg clean_tiff clean_regex clean_pch
|
2003-04-24 17:16:56 -04:00
|
|
|
|
|
|
|
clean_msw:
|
2003-04-19 14:15:17 -04:00
|
|
|
-del $(COMMDIR)\*.obj
|
|
|
|
-del $(MSWDIR)\*.obj
|
|
|
|
-del $(GENDIR)\*.obj
|
2003-05-07 07:41:21 -04:00
|
|
|
-del $(HTMLDIR)\*.obj
|
1999-07-14 18:46:12 -04:00
|
|
|
-del *.obj
|
2003-05-07 07:41:21 -04:00
|
|
|
-del *.sym
|
|
|
|
-del ole\*.obj
|
|
|
|
-del $(LIBTARGET)
|
1999-07-14 18:46:12 -04:00
|
|
|
|
2003-06-18 08:59:17 -04:00
|
|
|
PCH: $(INCDIR)\wx\wxprec.h
|
|
|
|
dmc $(CPPFLAGS) $(CFLAGS) $(INCLUDE) -HF$(WXOUTDIR)\wxprec.SYM -o$(WXOUTDIR)\wxprec.PCO $(INCDIR)\wx\wxprec.h
|
|
|
|
|
|
|
|
clean_pch:
|
|
|
|
del $(WXOUTDIR)\*.sym
|
|
|
|
del $(WXOUTDIR)\*.PCO
|
|
|
|
|
|
|
|
|
2003-04-22 17:02:29 -04:00
|
|
|
png:
|
|
|
|
make -f $(WXDIR)\src\png\makefile.sc FINAL=$(FINAL)
|
|
|
|
|
|
|
|
clean_png:
|
|
|
|
make -f $(WXDIR)\src\png\makefile.sc clean
|
|
|
|
|
|
|
|
zlib:
|
|
|
|
make -f $(WXDIR)\src\zlib\makefile.sc FINAL=$(FINAL)
|
|
|
|
|
|
|
|
clean_zlib:
|
|
|
|
make -f $(WXDIR)\src\zlib\makefile.sc clean
|
|
|
|
|
|
|
|
jpeg:
|
|
|
|
make -f $(WXDIR)\src\jpeg\makefile.sc FINAL=$(FINAL)
|
|
|
|
|
|
|
|
clean_jpeg:
|
|
|
|
make -f $(WXDIR)\src\jpeg\makefile.sc clean
|
|
|
|
|
|
|
|
regex:
|
|
|
|
make -f $(WXDIR)\src\regex\makefile.sc FINAL=$(FINAL)
|
|
|
|
|
|
|
|
clean_regex:
|
|
|
|
make -f $(WXDIR)\src\regex\makefile.sc clean
|
|
|
|
|
|
|
|
tiff:
|
|
|
|
make -f $(WXDIR)\src\tiff\makefile.sc FINAL=$(FINAL)
|
|
|
|
|
|
|
|
clean_tiff:
|
|
|
|
make -f $(WXDIR)\src\tiff\makefile.sc clean
|
1999-07-14 18:46:12 -04:00
|
|
|
|
1999-07-23 17:26:57 -04:00
|
|
|
MFTYPE=sc
|
2003-06-18 08:59:17 -04:00
|
|
|
self : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
|
|
|
|
perl -x$(WXWIN)\distrib\msw\tmake -S tmake -t$(MFTYPE) wxwin.pro -o $(WXWIN)\distrib\msw\tmake\makefile.sc
|
|
|
|
copy $(WXWIN)\distrib\msw\tmake\makefile.$(MFTYPE) $(WXWIN)\src\msw
|