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 $file =~ s/cp?p?$/obj/;
41 $project{"WXMSWOBJS"} .= '$(MSWDIR)\\' . $file . " "
45 # This file was automatically generated by tmake at #$ Now()
46 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
48 # Symantec C++ makefile for the msw objects
49 # called from src\makefile.sc
51 # configuration section (see src\makefile.sc) ###########################
59 LIBTARGET = $(LIBDIR)\wx.lib
63 # end of configuration section ##########################################
65 GENDIR=$(WXDIR)\src\generic
66 COMMDIR=$(WXDIR)\src\common
67 XPMDIR=$(WXDIR)\src\xpm
69 MSWDIR=$(WXDIR)\src\msw
71 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
74 $(COMMDIR)\y_tab.obj \
75 #$ ExpandList("WXCOMMONOBJS");
77 MSWOBJS = #$ ExpandList("WXMSWOBJS");
79 XPMOBJECTS = $(XPMDIR)\crbuffri.obj\
80 $(XPMDIR)\crdatfri.obj\
81 $(XPMDIR)\create.obj $(XPMDIR)\crifrbuf.obj\
82 $(XPMDIR)\crifrdat.obj\
84 $(XPMDIR)\hashtab.obj $(XPMDIR)\misc.obj\
85 $(XPMDIR)\parse.obj $(XPMDIR)\rdftodat.obj\
87 $(XPMDIR)\rgb.obj $(XPMDIR)\scan.obj\
88 $(XPMDIR)\simx.obj $(XPMDIR)\wrffrdat.obj\
89 $(XPMDIR)\wrffrp.obj $(XPMDIR)\wrffri.obj
91 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
92 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) # $(XPMOBJECTS)
96 $(LIBTARGET): $(OBJECTS)
98 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
104 $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
106 $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
107 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
109 $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
110 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
112 # $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
113 # *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
116 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
117 cd $(WXWIN)\distrib\msw\tmake
118 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
119 copy makefile.$(MFTYPE) $(WXWIN)\src\msw