#!############################################################################# #! 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 %wxHTML) { next if $wxHTML{$file} =~ /\b16\b/; $file =~ s/cp?p?$/obj/; $project{"WXHTMLOBJS"} .= '$(HTMLDIR)\\' . $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 $wxMSW{$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$(SC_SUFFIX).lib OPTIONS= # end of configuration section ########################################## GENDIR=$(WXDIR)\src\generic COMMDIR=$(WXDIR)\src\common HTMLDIR=$(WXDIR)\src\html OLEDIR=ole MSWDIR=$(WXDIR)\src\msw GENERICOBJS= #$ ExpandList("WXGENERICOBJS"); COMMONOBJS = #$ ExpandList("WXCOMMONOBJS"); HTMLOBJS = #$ ExpandList ("WXHTMLOBJS"); MSWOBJS = #$ ExpandList("WXMSWOBJS"); # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS) $(WINSOCKLIB) all: MAKEARCHDIR MAKEWINSOCKLIB $(LIBTARGET) zlib png jpeg tiff regex 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 MAKEWINSOCKLIB: if not exist $(WINSOCKLIB) implib /s $(WINSOCKLIB) $(WINDIR)\system32\wsock32.dll ## implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\wsock32.dll ## bug here on win98 no system32 ?? ## implib doesn't work anyway ## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll ##@if not exist $(WINSOCKLIB) $(LIBTARGET): $(OBJECTS) -del $(LIBTARGET) *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul; clean: clean_msw clean_zlib clean_png clean_jpeg clean_tiff clean_regex clean_msw: -del $(COMMDIR)\*.obj -del $(MSWDIR)\*.obj -del $(GENDIR)\*.obj -del $(HTMLDIR)\*.obj -del *.obj -del ole\*.obj -del $(LIBTARGET) 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 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