1 #!#############################################################################
3 #! Purpose: tmake template file from which makefile.sc is generated by running
4 #! tmake -t sc wxwin.pro -o makefile.sc
5 #! Author: Vadim Zeitlin
8 #!#############################################################################
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
18 if ( $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/ ) {
19 $tag = "WXNONESSENTIALOBJS";
22 $tag = "WXGENERICOBJS";
25 $file =~ s/cp?p?$/obj/;
26 $project{$tag} .= '$(GENDIR)\\' . $file . " "
29 foreach $file (sort keys %wxHTML) {
30 next if $wxHTML{$file} =~ /\b16\b/;
32 $file =~ s/cp?p?$/obj/;
33 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)\\' . $file . " "
36 foreach $file (sort keys %wxCommon) {
37 next if $wxCommon{$file} =~ /\b(16|U)\b/;
39 $file =~ s/cp?p?$/obj/;
40 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)\\' . $file . " "
43 foreach $file (sort keys %wxMSW) {
44 #! these files don't compile with SC++ 6
45 #! next if $file =~ /^(joystick|pnghand)\./;
47 next if $wxMSW{$file} =~ /\b16\b/;
49 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
50 $file =~ s/cp?p?$/obj/;
51 $project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
52 $project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
53 $project{"WXMSWOBJS"} .= $file . " "
57 # This file was automatically generated by tmake
58 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
60 # Symantec C++ makefile for the msw objects
61 # called from src\makefile.sc
63 # configuration section (see src\makefile.sc) ###########################
71 LIBTARGET = $(LIBDIR)\wx$(SC_SUFFIX).lib
75 # end of configuration section ##########################################
77 GENDIR=$(WXDIR)\src\generic
78 COMMDIR=$(WXDIR)\src\common
79 HTMLDIR=$(WXDIR)\src\html
81 MSWDIR=$(WXDIR)\src\msw
83 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
85 COMMONOBJS = #$ ExpandList("WXCOMMONOBJS");
87 HTMLOBJS = #$ ExpandList ("WXHTMLOBJS");
89 MSWOBJS = #$ ExpandList("WXMSWOBJS");
91 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
92 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS) $(WINSOCKLIB)
94 all: MAKEARCHDIR MAKEWINSOCKLIB $(LIBTARGET) zlib png jpeg tiff regex
97 @if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
98 @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)
99 @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
100 @if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
103 @if not exist $(WINSOCKLIB) implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
104 ## implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
105 ## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
106 ##@if not exist $(WINSOCKLIB)
108 $(LIBTARGET): $(OBJECTS)
110 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
112 clean: clean_zlib clean_png clean_jpeg clean_tiff clean_regex
113 -del $(COMMDIR)\*.obj
116 -del $(HTMLDIR)\*.obj
121 make -f $(WXDIR)\src\png\makefile.sc FINAL=$(FINAL)
124 make -f $(WXDIR)\src\png\makefile.sc clean
127 make -f $(WXDIR)\src\zlib\makefile.sc FINAL=$(FINAL)
130 make -f $(WXDIR)\src\zlib\makefile.sc clean
133 make -f $(WXDIR)\src\jpeg\makefile.sc FINAL=$(FINAL)
136 make -f $(WXDIR)\src\jpeg\makefile.sc clean
139 make -f $(WXDIR)\src\regex\makefile.sc FINAL=$(FINAL)
142 make -f $(WXDIR)\src\regex\makefile.sc clean
145 make -f $(WXDIR)\src\tiff\makefile.sc FINAL=$(FINAL)
148 make -f $(WXDIR)\src\tiff\makefile.sc clean
151 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
152 cd $(WXWIN)\distrib\msw\tmake
153 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
154 copy makefile.$(MFTYPE) $(WXWIN)\src\msw