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
70 XPMDIR=$(WXDIR)\src\xpm
72 MSWDIR=$(WXDIR)\src\msw
74 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
77 $(COMMDIR)\y_tab.obj \
78 #$ ExpandList("WXCOMMONOBJS");
80 MSWOBJS = #$ ExpandList("WXMSWOBJS");
82 XPMOBJECTS = $(XPMDIR)\crbuffri.obj\
83 $(XPMDIR)\crdatfri.obj\
84 $(XPMDIR)\create.obj $(XPMDIR)\crifrbuf.obj\
85 $(XPMDIR)\crifrdat.obj\
87 $(XPMDIR)\hashtab.obj $(XPMDIR)\misc.obj\
88 $(XPMDIR)\parse.obj $(XPMDIR)\rdftodat.obj\
90 $(XPMDIR)\rgb.obj $(XPMDIR)\scan.obj\
91 $(XPMDIR)\simx.obj $(XPMDIR)\wrffrdat.obj\
92 $(XPMDIR)\wrffrp.obj $(XPMDIR)\wrffri.obj
94 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
95 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) # $(XPMOBJECTS)
99 $(LIBTARGET): $(OBJECTS)
101 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
107 $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
109 $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
110 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
112 $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
113 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
115 # $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
116 # *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
119 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
120 cd $(WXWIN)\distrib\msw\tmake
121 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
122 copy makefile.$(MFTYPE) $(WXWIN)\src\msw