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"} .= "../generic/" . $file . " "
23 #! now transform these hashes into $project tags
24 foreach $file (sort keys %wxGeneric) {
25 next if $wxCommon{$file} =~ /\bX\b/;
27 $file =~ s/cp?p?$/\o/;
28 $project{"WXMOTIF_GENERICOBJS"} .= "../generic/" . $file . " "
31 foreach $file (sort keys %wxCommon) {
32 next if $wxCommon{$file} =~ /\bR\b/;
34 $file =~ s/cp?p?$/\o/;
35 $project{"WXGTK_COMMONOBJS"} .= "../common/" . $file . " "
38 foreach $file (sort keys %wxCommon) {
39 next if $wxCommon{$file} =~ /\bX\b/;
41 $file =~ s/cp?p?$/\o/;
42 $project{"WXMOTIF_COMMONOBJS"} .= "../common/" . $file . " "
45 foreach $file (sort keys %wxGTK) {
46 $file =~ s/cp?p?$/\o/;
47 $project{"WXGTK_GUIOBJS"} .= "../gtk/" . $file . " "
50 foreach $file (sort keys %wxMOTIF) {
51 $file =~ s/cp?p?$/\o/;
52 $project{"WXMOTIF_GUIOBJS"} .= "../motif/" . $file . " "
55 foreach $file (sort keys %wxHTML) {
56 $file =~ s/cp?p?$/\o/;
57 $project{"WXHTMLOBJS"} .= "../html/" . $file . " "
60 foreach $file (sort keys %wxUNIX) {
61 $file =~ s/cp?p?$/\o/;
62 $project{"WXUNIXOBJS"} .= "../unix/" . $file . " "
68 # $(INSTALL_DATA) $(INCDIR)/wx/window.h $(includedir)/wx/window.h
70 # foreach $file (sort keys %wxINCLUDE) {
71 # next if $wxINCLUDE{$file} =~ /\b(GTK|MSW|MOT|PM|MAC|GEN|HTM|UNX)\b/;
73 # $project{"WXINSTALLWX"} .= "$(INSTALL_DATA)" . " " . "\$(INCDIR)/wx/" . $file . " \$(includedir)/wx/" . $file . "\n"
78 # This file was automatically generated by tmake at #$ Now()
79 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
83 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
86 # Copyright:(c) 1993, AIAI, University of Edinburgh,
87 # Copyright:(c) 1999, Vadim Zeitlin
88 # Copyright:(c) 1999, Robert Roebling
90 # Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
92 ###################################################################
96 ########################### Paths #################################
102 top_srcdir = @top_srcdir@
104 exec_prefix = @exec_prefix@
108 libexecdir = @libexecdir@
110 sysconfdir = @sysconfdir@
111 sharedstatedir = @sharedstatedir@
112 localstatedir = @localstatedir@
116 includedir = @includedir@
117 oldincludedir = /usr/include
121 pkgdatadir = $(datadir)/@PACKAGE@
122 pkglibdir = $(libdir)/@PACKAGE@
123 pkgincludedir = $(includedir)/@PACKAGE@
128 INSTALL_PROGRAM = @INSTALL_PROGRAM@
129 INSTALL_DATA = @INSTALL_DATA@
130 INSTALL_SCRIPT = @INSTALL_SCRIPT@
131 transform = @program_transform_name@
139 build_alias = @build_alias@
140 build_triplet = @build@
141 host_alias = @host_alias@
142 host_triplet = @host@
143 target_alias = @target_alias@
144 target_triplet = @target@
146 ############################# Dirs #################################
148 WXDIR = $(srcdir)/../..
150 # Subordinate library possibilities
152 GENDIR = $(WXDIR)/src/generic
153 COMMDIR = $(WXDIR)/src/common
154 HTMLDIR = $(WXDIR)/src/html
155 UNIXDIR = $(WXDIR)/src/unix
156 PNGDIR = $(WXDIR)/src/png
157 JPEGDIR = $(WXDIR)/src/jpeg
158 ZLIBDIR = $(WXDIR)/src/zlib
159 GTKDIR = $(WXDIR)/src/gtk
160 MOTIFDIR = $(WXDIR)/src/motif
161 INCDIR = $(WXDIR)/include
163 DOCDIR = $(WXDIR)/docs
165 ############################## Files ##################################
168 #$ ExpandList("WXGTK_GENERICOBJS");
172 #$ ExpandList("WXGTK_COMMONOBJS");
175 #$ ExpandList("WXGTK_GUIOBJS");
177 MOTIF_GENERICOBJS = \
178 #$ ExpandList("WXMOTIF_GENERICOBJS");
182 #$ ExpandList("WXMOTIF_COMMONOBJS");
185 ../motif/xmcombo/xmcombo.o \
186 #$ ExpandList("WXMOTIF_GUIOBJS");
189 #$ ExpandList("WXHTMLOBJS");
192 #$ ExpandList("WXUNIXOBJS");
277 OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(HTMLOBJS) $(UNIXOBJS) \
278 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
281 REQUIRED_DIRS = ../../lib ../../src ../../src/common ../../src/gtk ../../src/motif \
282 ../../src/generic ../../src/unix ../../src/motif/xmombo ../../src/html \
283 ../../src/zlib ../../src/jpeg ../../src/png
285 all: $(REQUIRED_DIRS) $(OBJECTS) $(WXLIB)
287 $(REQUIRED_DIRS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
288 @if test ! -d ../../lib; then mkdir ../../lib; fi
289 @if test ! -d ../../src; then mkdir ../../src; fi
290 @if test ! -d ../../src/common; then mkdir ../../src/common; fi
291 @if test ! -d ../../src/gtk; then mkdir ../../src/gtk; fi
292 @if test ! -d ../../src/motif; then mkdir ../../src/motif; fi
293 @if test ! -d ../../src/motif/xmcombo; then mkdir ../../src/motif/xmcombo; fi
294 @if test ! -d ../../src/generic; then mkdir ../../src/generic; fi
295 @if test ! -d ../../src/unix; then mkdir ../../src/unix; fi
296 @if test ! -d ../../src/html; then mkdir ../../src/html; fi
297 @if test ! -d ../../src/png; then mkdir ../../src/png; fi
298 @if test ! -d ../../src/jpeg; then mkdir ../../src/jpeg; fi
299 @if test ! -d ../../src/zlib; then mkdir ../../src/zlib; fi
302 @if test ! ../../samples/dialog.cpp; \
303 then cp -f -r $(WXDIR)/samples ../..; \
305 $(AR) $(AROPTIONS) ../../lib/$@ $(OBJECTS)
306 $(RANLIB) ../../lib/$@
308 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
310 parser.o: parser.c lexer.c
311 $(CCLEX) -c $(CFLAGS) -o $@ parser.c
313 parser.c: $(COMMDIR)/parser.y lexer.c
314 $(YACC) $(COMMDIR)/parser.y
315 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
316 sed -e "s/BUFSIZ/5000/g" | \
317 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
318 sed -e "s/yy/PROIO_yy/g" | \
319 sed -e "s/input/PROIO_input/g" | \
320 sed -e "s/unput/PROIO_unput/g" > parser.c
323 lexer.c: $(COMMDIR)/lexer.l
324 $(LEX) $(COMMDIR)/lexer.l
325 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
326 sed -e "s/yy/PROIO_yy/g" | \
327 sed -e "s/input/PROIO_input/g" | \
328 sed -e "s/unput/PROIO_unput/g" > lexer.c
332 #$ ExpandList("WXINSTALLWX");