1 #!################################################################################
3 #! Purpose: tmake template file from which makefile.unx.in is generated by running
4 #! tmake -t unx wxwin.pro -o makefile.unx.in
5 #! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
8 #!################################################################################
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric, %wxHtml, %wxUnix and %wxGTK hashes.
13 IncludeTemplate("filelist.t");
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
17 next if $wxGeneric{$file} =~ /\bR\b/;
19 $file =~ s/cp?p?$/\o/;
20 $project{"WXGENERICOBJS"} .= $file . " "
23 foreach $file (sort keys %wxCommon) {
24 next if $wxCommon{$file} =~ /\bR\b/;
26 $file =~ s/cp?p?$/\o/;
27 $project{"WXCOMMONOBJS"} .= $file . " "
30 foreach $file (sort keys %wxGTK) {
31 $file =~ s/cp?p?$/\o/;
32 $project{"WXGTKOBJS"} .= $file . " "
35 foreach $file (sort keys %wxHTML) {
36 $file =~ s/cp?p?$/\o/;
37 $project{"WXHTMLOBJS"} .= $file . " "
40 foreach $file (sort keys %wxUNIX) {
41 $file =~ s/cp?p?$/\o/;
42 $project{"WXUNIXOBJS"} .= $file . " "
48 # $(INSTALL_DATA) $(INCDIR)/wx/window.h $(includedir)/wx/window.h
50 # foreach $file (sort keys %wxINCLUDE) {
51 # next if $wxINCLUDE{$file} =~ /\b(GTK|MSW|MOT|PM|MAC|GEN|HTM|UNX)\b/;
53 # $project{"WXINSTALLWX"} .= "$(INSTALL_DATA)" . " " . "\$(INCDIR)/wx/" . $file . " \$(includedir)/wx/" . $file . "\n"
58 # This file was automatically generated by tmake at #$ Now()
59 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
63 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
66 # Copyright:(c) 1993, AIAI, University of Edinburgh,
67 # Copyright:(c) 1999, Vadim Zeitlin
68 # Copyright:(c) 1999, Robert Roebling
70 # Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
72 ########################### VERSION #################################
80 ########################### VERSION #################################
82 WX_MAJOR_VERSION_NUMBER = @WX_MAJOR_VERSION_NUMBER@
83 WX_MINOR_VERSION_NUMBER = @WX_MINOR_VERSION_NUMBER@
84 WX_RELEASE_NUMBER = @WX_RELEASE_NUMBER@
86 ########################### Misc #################################
90 ########################### Paths #################################
92 srcdir = @srcdir@/src/gtk
94 top_srcdir = @top_srcdir@
96 exec_prefix = @exec_prefix@
100 libexecdir = @libexecdir@
102 sysconfdir = @sysconfdir@
103 sharedstatedir = @sharedstatedir@
104 localstatedir = @localstatedir@
108 includedir = @includedir@
109 oldincludedir = /usr/include
113 pkgdatadir = $(datadir)/@PACKAGE@
114 pkglibdir = $(libdir)/@PACKAGE@
115 pkgincludedir = $(includedir)/@PACKAGE@
120 INSTALL_PROGRAM = @INSTALL_PROGRAM@
121 INSTALL_DATA = @INSTALL_DATA@
122 INSTALL_SCRIPT = @INSTALL_SCRIPT@
123 transform = @program_transform_name@
131 build_alias = @build_alias@
132 build_triplet = @build@
133 host_alias = @host_alias@
134 host_triplet = @host@
135 target_alias = @target_alias@
136 target_triplet = @target@
138 EXTRA_VPATH = @EXTRA_VPATH_MF@
140 VPATH = .:${srcdir}:${srcdir}/src/common:${srcdir}/src/generic:${srcdir}/src/html:${EXTRA_VPATH}
142 ########################### Programs #################################
152 # Compiler for lex/yacc .c programs
166 MAKEINFO = @MAKEINFO@
168 ########################### Flags #################################
170 CFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CFLAGS@
171 CPPFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CXXFLAGS@
173 ########################### Rules #################################
175 # Clears all default suffixes
176 .SUFFIXES: .o .cpp .c
179 $(CCC) -c $(CFLAGS) -o $@ $<
182 $(CC) -c $(CPPFLAGS) -o $@ $<
184 ########################### Files #################################
186 WXDIR = $(srcdir)/../..
188 # Subordinate library possibilities
190 GENDIR = $(WXDIR)/src/generic
191 COMMDIR = $(WXDIR)/src/common
192 HTMLDIR = $(WXDIR)/src/html
193 UNIXDIR = $(WXDIR)/src/unix
194 PNGDIR = $(WXDIR)/src/png
195 JPEGDIR = $(WXDIR)/src/jpeg
196 ZLIBDIR = $(WXDIR)/src/zlib
197 GTKDIR = $(WXDIR)/src/gtk
198 INCDIR = $(WXDIR)/include
200 DOCDIR = $(WXDIR)\docs
203 #$ ExpandList("WXGENERICOBJS");
207 #$ ExpandList("WXCOMMONOBJS");
210 #$ ExpandList("WXHTMLOBJS");
213 #$ ExpandList("WXGTKOBJS");
216 #$ ExpandList("WXUNIXOBJS");
300 OBJECTS = $(GTKOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJ) $(UNIXOBJS) \
301 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
303 all: $(OBJECTS) $(WXLIB)
306 $AR) $(AROPTIONS) $@ $(OBJECTS)
309 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
311 parser.o: parser.c lexer.c
312 $(CCLEX) -c $(CFLAGS) -o $@ parser.c
314 parser.c: $(COMMDIR)/parser.y lexer.c
315 $(YACC) $(COMMDIR)/parser.y
316 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
317 sed -e "s/BUFSIZ/5000/g" | \
318 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
319 sed -e "s/yy/PROIO_yy/g" | \
320 sed -e "s/input/PROIO_input/g" | \
321 sed -e "s/unput/PROIO_unput/g" > parser.c
324 lexer.c: $(COMMDIR)/lexer.l
325 $(LEX) $(COMMDIR)/lexer.l
326 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
327 sed -e "s/yy/PROIO_yy/g" | \
328 sed -e "s/input/PROIO_input/g" | \
329 sed -e "s/unput/PROIO_unput/g" > lexer.c
333 #$ ExpandList("WXINSTALLWX");