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{"WXGTK_GENERICOBJS"} .= $file . " "
23 #! now transform these hashes into $project tags
24 foreach $file (sort keys %wxGeneric) {
26 $file =~ s/cp?p?$/\o/;
27 $project{"WXMOTIF_GENERICOBJS"} .= $file . " "
30 foreach $file (sort keys %wxCommon) {
31 next if $wxCommon{$file} =~ /\bR\b/;
33 $file =~ s/cp?p?$/\o/;
34 $project{"WXGTK_COMMONOBJS"} .= $file . " "
37 foreach $file (sort keys %wxCommon) {
39 $file =~ s/cp?p?$/\o/;
40 $project{"WXMOTIF_COMMONOBJS"} .= $file . " "
43 foreach $file (sort keys %wxGTK) {
44 $file =~ s/cp?p?$/\o/;
45 $project{"WXGTK_GUIOBJS"} .= $file . " "
48 foreach $file (sort keys %wxMOTIF) {
49 $file =~ s/cp?p?$/\o/;
50 $project{"WXMOTIF_GUIOBJS"} .= $file . " "
53 foreach $file (sort keys %wxHTML) {
54 $file =~ s/cp?p?$/\o/;
55 $project{"WXHTMLOBJS"} .= $file . " "
58 foreach $file (sort keys %wxUNIX) {
59 $file =~ s/cp?p?$/\o/;
60 $project{"WXUNIXOBJS"} .= $file . " "
66 # $(INSTALL_DATA) $(INCDIR)/wx/window.h $(includedir)/wx/window.h
68 # foreach $file (sort keys %wxINCLUDE) {
69 # next if $wxINCLUDE{$file} =~ /\b(GTK|MSW|MOT|PM|MAC|GEN|HTM|UNX)\b/;
71 # $project{"WXINSTALLWX"} .= "$(INSTALL_DATA)" . " " . "\$(INCDIR)/wx/" . $file . " \$(includedir)/wx/" . $file . "\n"
76 # This file was automatically generated by tmake at #$ Now()
77 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
81 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
84 # Copyright:(c) 1993, AIAI, University of Edinburgh,
85 # Copyright:(c) 1999, Vadim Zeitlin
86 # Copyright:(c) 1999, Robert Roebling
88 # Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
90 ########################### VERSION #################################
98 ########################### VERSION #################################
100 WX_MAJOR_VERSION_NUMBER = @WX_MAJOR_VERSION_NUMBER@
101 WX_MINOR_VERSION_NUMBER = @WX_MINOR_VERSION_NUMBER@
102 WX_RELEASE_NUMBER = @WX_RELEASE_NUMBER@
104 ########################### Misc #################################
108 ########################### Paths #################################
110 srcdir = @srcdir@/src/@TOOLKIT_DIR@
112 top_srcdir = @top_srcdir@
114 exec_prefix = @exec_prefix@
118 libexecdir = @libexecdir@
120 sysconfdir = @sysconfdir@
121 sharedstatedir = @sharedstatedir@
122 localstatedir = @localstatedir@
126 includedir = @includedir@
127 oldincludedir = /usr/include
131 pkgdatadir = $(datadir)/@PACKAGE@
132 pkglibdir = $(libdir)/@PACKAGE@
133 pkgincludedir = $(includedir)/@PACKAGE@
138 INSTALL_PROGRAM = @INSTALL_PROGRAM@
139 INSTALL_DATA = @INSTALL_DATA@
140 INSTALL_SCRIPT = @INSTALL_SCRIPT@
141 transform = @program_transform_name@
149 build_alias = @build_alias@
150 build_triplet = @build@
151 host_alias = @host_alias@
152 host_triplet = @host@
153 target_alias = @target_alias@
154 target_triplet = @target@
156 EXTRA_VPATH = @EXTRA_VPATH@
158 VPATH = .:${srcdir}:${srcdir}/src/common:${srcdir}/src/generic:${srcdir}/src/html:${EXTRA_VPATH}
160 ########################### Programs #################################
170 # Compiler for lex/yacc .c programs
184 MAKEINFO = @MAKEINFO@
186 ########################### Flags #################################
188 CFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CFLAGS@
189 CPPFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CXXFLAGS@
191 ########################### Rules #################################
193 # Clears all default suffixes
194 .SUFFIXES: .o .cpp .c
197 $(CCC) -c $(CFLAGS) -o $@ $<
200 $(CC) -c $(CPPFLAGS) -o $@ $<
202 ########################### Files #################################
204 WXDIR = $(srcdir)/../..
206 # Subordinate library possibilities
208 GENDIR = $(WXDIR)/src/generic
209 COMMDIR = $(WXDIR)/src/common
210 HTMLDIR = $(WXDIR)/src/html
211 UNIXDIR = $(WXDIR)/src/unix
212 PNGDIR = $(WXDIR)/src/png
213 JPEGDIR = $(WXDIR)/src/jpeg
214 ZLIBDIR = $(WXDIR)/src/zlib
215 GTKDIR = $(WXDIR)/src/gtk
216 MOTIFDIR = $(WXDIR)/src/motif
217 INCDIR = $(WXDIR)/include
219 DOCDIR = $(WXDIR)\docs
222 #$ ExpandList("WXGTK_GENERICOBJS");
226 #$ ExpandList("WXGTK_COMMONOBJS");
229 #$ ExpandList("WXGTK_GUIOBJS");
231 MOTIF_GENERICOBJS = \
232 #$ ExpandList("WXMOTIF_GENERICOBJS");
236 #$ ExpandList("WXMOTIF_COMMONOBJS");
239 #$ ExpandList("WXMOTIF_GUIOBJS");
242 #$ ExpandList("WXHTMLOBJS");
245 #$ ExpandList("WXUNIXOBJS");
330 OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(HTMLOBJS) $(UNIXOBJS) \
331 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
333 all: $(OBJECTS) $(WXLIB)
336 $AR) $(AROPTIONS) $@ $(OBJECTS)
339 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
341 parser.o: parser.c lexer.c
342 $(CCLEX) -c $(CFLAGS) -o $@ parser.c
344 parser.c: $(COMMDIR)/parser.y lexer.c
345 $(YACC) $(COMMDIR)/parser.y
346 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
347 sed -e "s/BUFSIZ/5000/g" | \
348 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
349 sed -e "s/yy/PROIO_yy/g" | \
350 sed -e "s/input/PROIO_input/g" | \
351 sed -e "s/unput/PROIO_unput/g" > parser.c
354 lexer.c: $(COMMDIR)/lexer.l
355 $(LEX) $(COMMDIR)/lexer.l
356 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
357 sed -e "s/yy/PROIO_yy/g" | \
358 sed -e "s/input/PROIO_input/g" | \
359 sed -e "s/unput/PROIO_unput/g" > lexer.c
363 #$ ExpandList("WXINSTALLWX");