#!############################################################################# #! File: gtk.t #! Purpose: tmake template file from which Makefile is generated by running #! tmake -t gtk wxwin.pro -o Makefile #! Author: Vadim Zeitlin, Robert Roebling, Julian Smart #! Created: 14.07.99 #! Version: $Id$ #!############################################################################# #${ #! include the code which parses filelist.txt file and initializes #! %wxCommon, %wxGeneric, %wxHtml, %wxUnix and %wxGTK hashes. IncludeTemplate("filelist.t"); #! now transform these hashes into $project tags foreach $file (sort keys %wxGeneric) { next if $wxGeneric{$file} =~ /\bR\b/; $file =~ s/cp?p?$/\$(OBJSUFF)/; $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " " } foreach $file (sort keys %wxCommon) { next if $wxCommon{$file} =~ /\bR\b/; $file =~ s/cp?p?$/\$(OBJSUFF)/; $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " " } foreach $file (sort keys %wxGTK) { $file =~ s/cp?p?$/\$(OBJSUFF)/; $project{"WXGTKOBJS"} .= '$(GTKDIR)/' . $file . " " } foreach $file (sort keys %wxHTML) { $file =~ s/cp?p?$/\$(OBJSUFF)/; $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " " } foreach $file (sort keys %wxUNIX) { $file =~ s/cp?p?$/\$(OBJSUFF)/; $project{"WXUNIXOBJS"} .= '$(UNIXDIR)/' . $file . " " } #$} # This file was automatically generated by tmake at #$ Now() # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE GTK.T! # # File: Makefile # Author: Julian Smart, Robert Roebling, Vadim Zeitlin # Created: 1993 # Updated: 1999 # Copyright:(c) 1993, AIAI, University of Edinburgh, # Copyright:(c) 1999, Vadim Zeitlin # Copyright:(c) 1999, Robert Roebling # # Makefile for libwx_gtk.a WXDIR = ../.. include $(WXDIR)/src/gtk.env # Subordinate library possibilities GENDIR = $(WXDIR)/src/generic COMMDIR = $(WXDIR)/src/common HTMLDIR = $(WXDIR)/src/html UNIXDIR = $(WXDIR)/src/unix PNGDIR = $(WXDIR)/src/png JPEGDIR = $(WXDIR)/src/jpeg ZLIBDIR = $(WXDIR)/src/zlib GTKDIR = $(WXDIR)/src/gtk DOCDIR = $(WXDIR)\docs GENERICOBJS = \ #$ ExpandList("WXGENERICOBJS"); COMMONOBJS = \ $(COMMDIR)/parser.$(OBJSUFF) \ #$ ExpandList("WXCOMMONOBJS"); HTMLOBJS = \ #$ ExpandList("WXHTMLOBJS"); GTKOBJS = \ #$ ExpandList("WXGTKOBJS"); UINXOBJS = \ #$ ExpandList("WXUNIXOBJS"); ZLIBOBJS = \ $(ZLIBDIR)/adler32.$(OBJSUFF) \ $(ZLIBDIR)/compress.$(OBJSUFF) \ $(ZLIBDIR)/crc32.$(OBJSUFF) \ $(ZLIBDIR)/gzio.$(OBJSUFF) \ $(ZLIBDIR)/uncompr.$(OBJSUFF) \ $(ZLIBDIR)/deflate.$(OBJSUFF) \ $(ZLIBDIR)/trees.$(OBJSUFF) \ $(ZLIBDIR)/zutil.$(OBJSUFF) \ $(ZLIBDIR)/inflate.$(OBJSUFF) \ $(ZLIBDIR)/infblock.$(OBJSUFF) \ $(ZLIBDIR)/inftrees.$(OBJSUFF) \ $(ZLIBDIR)/infcodes.$(OBJSUFF) \ $(ZLIBDIR)/infutil.$(OBJSUFF) \ $(ZLIBDIR)/inffast.$(OBJSUFF) PNGOBJS = \ $(PNGDIR)/png.$(OBJSUFF) \ $(PNGDIR)/pngread.$(OBJSUFF) \ $(PNGDIR)/pngrtran.$(OBJSUFF) \ $(PNGDIR)/pngrutil.$(OBJSUFF) \ $(PNGDIR)/pngpread.$(OBJSUFF) \ $(PNGDIR)/pngtrans.$(OBJSUFF) \ $(PNGDIR)/pngwrite.$(OBJSUFF) \ $(PNGDIR)/pngwtran.$(OBJSUFF) \ $(PNGDIR)/pngwutil.$(OBJSUFF) \ $(PNGDIR)/pngerror.$(OBJSUFF) \ $(PNGDIR)/pngmem.$(OBJSUFF) \ $(PNGDIR)/pngwio.$(OBJSUFF) \ $(PNGDIR)/pngrio.$(OBJSUFF) \ $(PNGDIR)/pngget.$(OBJSUFF) \ $(PNGDIR)/pngset.$(OBJSUFF) JPEGOBJS = \ $(JPEGDIR)/jcomapi.$(OBJSUFF) \ $(JPEGDIR)/jutils.$(OBJSUFF) \ $(JPEGDIR)/jerror.$(OBJSUFF) \ $(JPEGDIR)/jmemmgr.$(OBJSUFF) \ $(JPEGDIR)/jmemnobs.$(OBJSUFF) \ $(JPEGDIR)/jcapimin.$(OBJSUFF) \ $(JPEGDIR)/jcapistd.$(OBJSUFF) \ $(JPEGDIR)/jctrans.$(OBJSUFF) \ $(JPEGDIR)/jcparam.$(OBJSUFF) \ $(JPEGDIR)/jdatadst.$(OBJSUFF) \ $(JPEGDIR)/jcinit.$(OBJSUFF) \ $(JPEGDIR)/jcmaster.$(OBJSUFF) \ $(JPEGDIR)/jcmarker.$(OBJSUFF) \ $(JPEGDIR)/jcmainct.$(OBJSUFF) \ $(JPEGDIR)/jcprepct.$(OBJSUFF) \ $(JPEGDIR)/jccoefct.$(OBJSUFF) \ $(JPEGDIR)/jccolor.$(OBJSUFF) \ $(JPEGDIR)/jcsample.$(OBJSUFF) \ $(JPEGDIR)/jchuff.$(OBJSUFF) \ $(JPEGDIR)/jcphuff.$(OBJSUFF) \ $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \ $(JPEGDIR)/jfdctfst.$(OBJSUFF) \ $(JPEGDIR)/jfdctflt.$(OBJSUFF) \ $(JPEGDIR)/jfdctint.$(OBJSUFF) \ $(JPEGDIR)/jdapimin.$(OBJSUFF) \ $(JPEGDIR)/jdapistd.$(OBJSUFF) \ $(JPEGDIR)/jdtrans.$(OBJSUFF) \ $(JPEGDIR)/jdatasrc.$(OBJSUFF) \ $(JPEGDIR)/jdmaster.$(OBJSUFF) \ $(JPEGDIR)/jdinput.$(OBJSUFF) \ $(JPEGDIR)/jdmarker.$(OBJSUFF) \ $(JPEGDIR)/jdhuff.$(OBJSUFF) \ $(JPEGDIR)/jdphuff.$(OBJSUFF) \ $(JPEGDIR)/jdmainct.$(OBJSUFF) \ $(JPEGDIR)/jdcoefct.$(OBJSUFF) \ $(JPEGDIR)/jdpostct.$(OBJSUFF) \ $(JPEGDIR)/jddctmgr.$(OBJSUFF) \ $(JPEGDIR)/jidctfst.$(OBJSUFF) \ $(JPEGDIR)/jidctflt.$(OBJSUFF) \ $(JPEGDIR)/jidctint.$(OBJSUFF) \ $(JPEGDIR)/jidctred.$(OBJSUFF) \ $(JPEGDIR)/jdsample.$(OBJSUFF) \ $(JPEGDIR)/jdcolor.$(OBJSUFF) \ $(JPEGDIR)/jquant1.$(OBJSUFF) \ $(JPEGDIR)/jquant2.$(OBJSUFF) \ $(JPEGDIR)/jdmerge.$(OBJSUFF) OBJECTS = $(GTKOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJ) $(UNIXOBJS) \ $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) all: $(OBJECTS) $(WXLIB) $(WXLIB): $(OBJECTS) ar $(AROPTIONS) $@ $(OBJECTS) $(RANLIB) $@ $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h $(COMMDIR)/parser.$(OBJSUFF): $(COMMDIR)/parser.c $(COMMDIR)/lexer.c $(CCLEX) -c $(CFLAGS) -o $@ $(COMMDIR)/parser.c $(COMMDIR)/parser.c: $(COMMDIR)/parser.y $(COMMDIR)/lexer.c $(YACC) $(COMMDIR)/parser.y @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \ sed -e "s/BUFSIZ/5000/g" | \ sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \ sed -e "s/yy/PROIO_yy/g" | \ sed -e "s/input/PROIO_input/g" | \ sed -e "s/unput/PROIO_unput/g" > $(COMMDIR)/parser.c @$(RM) y.tab.c $(COMMDIR)/lexer.c: $(COMMDIR)/lexer.l $(LEX) $(COMMDIR)/lexer.l @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \ sed -e "s/yy/PROIO_yy/g" | \ sed -e "s/input/PROIO_input/g" | \ sed -e "s/unput/PROIO_unput/g" > $(COMMDIR)/lexer.c @$(RM) lex.yy.c clean: rm -f $(GTKDIR)/*.$(OBJSUFF) rm -f $(COMMDIR)/parser.c rm -f $(COMMDIR)/lexer.c rm -f $(COMMDIR)/*.$(OBJSUFF) rm -f $(GENDIR)/*.$(OBJSUFF) rm -f $(PNGDIR)/*.$(OBJSUFF) rm -f $(ZLIBDIR)/*.$(OBJSUFF) rm -f $(JPEGDIR)/*.$(OBJSUFF) rm -f $(UNIXDIR)/*.$(OBJSUFF) rm -f $(HTMLDIR)/*.$(OBJSUFF) rm -f $(WXWIN)/lib/libwx_$(GUI).a cleanall: clean