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 $wxGeneric{$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 at #$ Now()
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.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)
88 $(LIBTARGET): $(OBJECTS)
90 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
96 $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
98 $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
99 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
101 $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
102 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
104 # $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
105 # *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
108 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
109 cd $(WXWIN)\distrib\msw\tmake
110 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
111 copy makefile.$(MFTYPE) $(WXWIN)\src\msw