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 %wxCommon) {
30 next if $wxCommon{$file} =~ /\b(16|U)\b/;
32 $file =~ s/cp?p?$/obj/;
33 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)\\' . $file . " "
36 foreach $file (sort keys %wxMSW) {
37 #! these files don't compile with SC++ 6
38 next if $file =~ /^(joystick|pnghand)\./;
40 next if $wxMSW{$file} =~ /\b16\b/;
42 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
43 $file =~ s/cp?p?$/obj/;
44 $project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
45 $project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
46 $project{"WXMSWOBJS"} .= $file . " "
50 # This file was automatically generated by tmake
51 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
53 # Symantec C++ makefile for the msw objects
54 # called from src\makefile.sc
56 # configuration section (see src\makefile.sc) ###########################
64 LIBTARGET = $(LIBDIR)\wx$(SC_SUFFIX).lib
68 # end of configuration section ##########################################
70 GENDIR=$(WXDIR)\src\generic
71 COMMDIR=$(WXDIR)\src\common
73 MSWDIR=$(WXDIR)\src\msw
75 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
78 $(COMMDIR)\y_tab.obj \
79 #$ ExpandList("WXCOMMONOBJS");
81 MSWOBJS = #$ ExpandList("WXMSWOBJS");
83 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
84 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
86 all: MAKEARCHDIR $(LIBTARGET)
89 @if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
90 @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)
91 @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
92 @if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
94 $(LIBTARGET): $(OBJECTS)
96 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
105 ## $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
107 ## $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
108 ## copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
110 ## $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
111 ## copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
113 ### $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
114 ### *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
117 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
118 cd $(WXWIN)\distrib\msw\tmake
119 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
120 copy makefile.$(MFTYPE) $(WXWIN)\src\msw