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 $file =~ s/cp?p?$/obj/;
31 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)\\' . $file . " "
34 foreach $file (sort keys %wxMSW) {
35 #! these files don't compile with SC++ 6
36 next if $file =~ /^(joystick|pnghand)\./;
38 next if $wxGeneric{$file} =~ /\b16\b/;
40 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
41 $file =~ s/cp?p?$/obj/;
42 $project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
43 $project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
44 $project{"WXMSWOBJS"} .= $file . " "
48 # This file was automatically generated by tmake at #$ Now()
49 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
51 # Symantec C++ makefile for the msw objects
52 # called from src\makefile.sc
54 # configuration section (see src\makefile.sc) ###########################
62 LIBTARGET = $(LIBDIR)\wx.lib
66 # end of configuration section ##########################################
68 GENDIR=$(WXDIR)\src\generic
69 COMMDIR=$(WXDIR)\src\common
71 MSWDIR=$(WXDIR)\src\msw
73 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
76 $(COMMDIR)\y_tab.obj \
77 #$ ExpandList("WXCOMMONOBJS");
79 MSWOBJS = #$ ExpandList("WXMSWOBJS");
81 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
82 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
86 $(LIBTARGET): $(OBJECTS)
88 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
94 $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
96 $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
97 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
99 $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
100 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
102 # $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
103 # *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
106 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
107 cd $(WXWIN)\distrib\msw\tmake
108 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
109 copy makefile.$(MFTYPE) $(WXWIN)\src\msw