1 #!#############################################################################
3 #! Purpose: tmake template file from which makefile.g95 is generated by running
4 #! tmake -t g95 wxwin.pro -o makefile.g95
5 #! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
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) {
17 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
18 #! so take the generic version
19 if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) {
20 next unless $file =~ /^dirdlgg\./;
23 $file =~ s/cp?p?$/\$(OBJSUFF)/;
24 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
27 foreach $file (sort keys %wxCommon) {
28 next if $wxCommon{$file} =~ /\b(16)\b/;
30 #! needs extra files (sql*.h) so not compiled by default.
31 next if $file =~ /^odbc\./;
33 $file =~ s/cp?p?$/\$(OBJSUFF)/;
34 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
37 foreach $file (sort keys %wxMSW) {
38 #! Mingw32 doesn't have the OLE headers and has some troubles with
40 next if $wxMSW{$file} =~ /\b(O|16)\b/;
42 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
43 next if $file =~ /^dirdlg\./;
45 $file =~ s/cp?p?$/\$(OBJSUFF)/;
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 G95.T!
55 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
58 # Copyright:(c) 1993, AIAI, University of Edinburgh,
59 # Copyright:(c) 1999, Vadim Zeitlin
60 # Copyright:(c) 1999, Robert Roebling
62 # Makefile for libwx.a
64 # Replace this with your own path if necessary
67 # All common compiler flags and options are now in
68 # this central makefile.
69 include $(WXDIR)/src/makeg95.env
71 # Subordinate library possibilities
75 GENDIR = $(WXDIR)/src/generic
76 COMMDIR = $(WXDIR)/src/common
77 XPMDIR = $(WXDIR)/src/xpm
78 PNGDIR = $(WXDIR)/src/png
79 JPEGDIR = $(WXDIR)/src/jpeg
80 ZLIBDIR = $(WXDIR)/src/zlib
81 OLEDIR = $(WXDIR)/src/msw/ole
82 MSWDIR = $(WXDIR)/src/msw
84 DOCDIR = $(WXDIR)\docs
87 #$ ExpandList("WXGENERICOBJS");
90 $(COMMDIR)/y_tab.$(OBJSUFF) \
91 #$ ExpandList("WXCOMMONOBJS");
94 #$ ExpandList("WXMSWOBJS");
97 $(ZLIBDIR)/adler32.$(OBJSUFF) \
98 $(ZLIBDIR)/compress.$(OBJSUFF) \
99 $(ZLIBDIR)/crc32.$(OBJSUFF) \
100 $(ZLIBDIR)/gzio.$(OBJSUFF) \
101 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
102 $(ZLIBDIR)/deflate.$(OBJSUFF) \
103 $(ZLIBDIR)/trees.$(OBJSUFF) \
104 $(ZLIBDIR)/zutil.$(OBJSUFF) \
105 $(ZLIBDIR)/inflate.$(OBJSUFF) \
106 $(ZLIBDIR)/infblock.$(OBJSUFF) \
107 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
108 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
109 $(ZLIBDIR)/infutil.$(OBJSUFF) \
110 $(ZLIBDIR)/inffast.$(OBJSUFF)
113 $(PNGDIR)/png.$(OBJSUFF) \
114 $(PNGDIR)/pngread.$(OBJSUFF) \
115 $(PNGDIR)/pngrtran.$(OBJSUFF) \
116 $(PNGDIR)/pngrutil.$(OBJSUFF) \
117 $(PNGDIR)/pngpread.$(OBJSUFF) \
118 $(PNGDIR)/pngtrans.$(OBJSUFF) \
119 $(PNGDIR)/pngwrite.$(OBJSUFF) \
120 $(PNGDIR)/pngwtran.$(OBJSUFF) \
121 $(PNGDIR)/pngwutil.$(OBJSUFF) \
122 $(PNGDIR)/pngerror.$(OBJSUFF) \
123 $(PNGDIR)/pngmem.$(OBJSUFF) \
124 $(PNGDIR)/pngwio.$(OBJSUFF) \
125 $(PNGDIR)/pngrio.$(OBJSUFF) \
126 $(PNGDIR)/pngget.$(OBJSUFF) \
127 $(PNGDIR)/pngset.$(OBJSUFF)
131 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
132 $(JPEGDIR)/jutils.$(OBJSUFF) \
133 $(JPEGDIR)/jerror.$(OBJSUFF) \
134 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
135 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
136 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
137 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
138 $(JPEGDIR)/jctrans.$(OBJSUFF) \
139 $(JPEGDIR)/jcparam.$(OBJSUFF) \
140 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
141 $(JPEGDIR)/jcinit.$(OBJSUFF) \
142 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
143 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
144 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
145 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
146 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
147 $(JPEGDIR)/jccolor.$(OBJSUFF) \
148 $(JPEGDIR)/jcsample.$(OBJSUFF) \
149 $(JPEGDIR)/jchuff.$(OBJSUFF) \
150 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
151 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
152 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
153 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
154 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
155 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
156 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
157 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
158 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
159 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
160 $(JPEGDIR)/jdinput.$(OBJSUFF) \
161 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
162 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
163 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
164 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
165 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
166 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
167 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
168 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
169 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
170 $(JPEGDIR)/jidctint.$(OBJSUFF) \
171 $(JPEGDIR)/jidctred.$(OBJSUFF) \
172 $(JPEGDIR)/jdsample.$(OBJSUFF) \
173 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
174 $(JPEGDIR)/jquant1.$(OBJSUFF) \
175 $(JPEGDIR)/jquant2.$(OBJSUFF) \
176 $(JPEGDIR)/jdmerge.$(OBJSUFF)
178 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
179 $(XPMDIR)/crdatfri.o\
180 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
181 $(XPMDIR)/crifrdat.o\
183 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
184 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
186 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
187 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
188 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
190 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) \
191 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
193 all: $(OBJECTS) $(WXLIB)
195 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
196 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
199 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
201 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
202 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
204 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
205 copy ..\common\dosyacc.c ..\common\y_tab.c
207 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
208 copy ..\common\doslex.c ..\common\lex_yy.c
210 # Replace lex with flex if you run into compilation
211 # problems with lex_yy.c. See also note about LEX_SCANNER
213 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
214 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
216 # Try one of these if the above line doesn't work.
217 # Alternative syntax (1)
218 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
219 # Alternative syntax (2)
220 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
222 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
223 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
224 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
227 # Replace yacc with bison if you run into compilation
228 # problems with y_tab.c.
230 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
231 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
233 # If you use e.g. gcc on Unix, uncomment these lines
234 # and comment out the above.
236 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
237 # $(YACC) $(COMMDIR)/parser.y
238 # mv y.tab.c $(COMMDIR)/y_tab.c
243 -erase ..\common\y_tab.c
244 -erase ..\common\lex_yy.c
246 -erase ..\generic\*.o
250 -erase ..\..\lib\libwx$(GUISUFFIX).a
255 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
256 cd $(WXWIN)\distrib\msw\tmake
257 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
258 copy makefile.$(MFTYPE) $(WXWIN)\src\msw