]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/gtk.t
Updates for makefile.unx
[wxWidgets.git] / distrib / msw / tmake / gtk.t
CommitLineData
a3015c54 1#!#############################################################################
631fd412
RR
2#! File: gtk.t
3#! Purpose: tmake template file from which Makefile is generated by running
4#! tmake -t gtk wxwin.pro -o Makefile
a3015c54
RR
5#! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
6#! Created: 14.07.99
7#! Version: $Id$
8#!#############################################################################
9
10#${
11 #! include the code which parses filelist.txt file and initializes
631fd412 12 #! %wxCommon, %wxGeneric, %wxHtml, %wxUnix and %wxGTK hashes.
a3015c54
RR
13 IncludeTemplate("filelist.t");
14
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
a1925afc 17 next if $wxGeneric{$file} =~ /\bR\b/;
a3015c54
RR
18
19 $file =~ s/cp?p?$/\$(OBJSUFF)/;
20 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
21 }
22
23 foreach $file (sort keys %wxCommon) {
24 next if $wxCommon{$file} =~ /\bR\b/;
25
26 $file =~ s/cp?p?$/\$(OBJSUFF)/;
27 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
28 }
29
30 foreach $file (sort keys %wxGTK) {
31 $file =~ s/cp?p?$/\$(OBJSUFF)/;
32 $project{"WXGTKOBJS"} .= '$(GTKDIR)/' . $file . " "
33 }
34
35 foreach $file (sort keys %wxHTML) {
36 $file =~ s/cp?p?$/\$(OBJSUFF)/;
37 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
38 }
39
40 foreach $file (sort keys %wxUNIX) {
41 $file =~ s/cp?p?$/\$(OBJSUFF)/;
42 $project{"WXUNIXOBJS"} .= '$(UNIXDIR)/' . $file . " "
43 }
44#$}
45# This file was automatically generated by tmake at #$ Now()
631fd412 46# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE GTK.T!
a3015c54
RR
47
48#
631fd412 49# File: Makefile
a3015c54
RR
50# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
51# Created: 1993
52# Updated: 1999
53# Copyright:(c) 1993, AIAI, University of Edinburgh,
54# Copyright:(c) 1999, Vadim Zeitlin
55# Copyright:(c) 1999, Robert Roebling
56#
57# Makefile for libwx_gtk.a
58
a3015c54
RR
59WXDIR = ../..
60
631fd412 61include $(WXDIR)/src/gtk.env
a3015c54
RR
62
63# Subordinate library possibilities
64
65GENDIR = $(WXDIR)/src/generic
66COMMDIR = $(WXDIR)/src/common
67HTMLDIR = $(WXDIR)/src/html
68UNIXDIR = $(WXDIR)/src/unix
69PNGDIR = $(WXDIR)/src/png
70JPEGDIR = $(WXDIR)/src/jpeg
71ZLIBDIR = $(WXDIR)/src/zlib
72GTKDIR = $(WXDIR)/src/gtk
73
74DOCDIR = $(WXDIR)\docs
75
76GENERICOBJS = \
77 #$ ExpandList("WXGENERICOBJS");
78
79COMMONOBJS = \
a1925afc 80 $(COMMDIR)/parser.$(OBJSUFF) \
a3015c54
RR
81 #$ ExpandList("WXCOMMONOBJS");
82
83HTMLOBJS = \
84 #$ ExpandList("WXHTMLOBJS");
85
86GTKOBJS = \
87 #$ ExpandList("WXGTKOBJS");
88
9b61f868 89UNIXOBJS = \
a3015c54
RR
90 #$ ExpandList("WXUNIXOBJS");
91
92ZLIBOBJS = \
93 $(ZLIBDIR)/adler32.$(OBJSUFF) \
94 $(ZLIBDIR)/compress.$(OBJSUFF) \
95 $(ZLIBDIR)/crc32.$(OBJSUFF) \
96 $(ZLIBDIR)/gzio.$(OBJSUFF) \
97 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
98 $(ZLIBDIR)/deflate.$(OBJSUFF) \
99 $(ZLIBDIR)/trees.$(OBJSUFF) \
100 $(ZLIBDIR)/zutil.$(OBJSUFF) \
101 $(ZLIBDIR)/inflate.$(OBJSUFF) \
102 $(ZLIBDIR)/infblock.$(OBJSUFF) \
103 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
104 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
105 $(ZLIBDIR)/infutil.$(OBJSUFF) \
106 $(ZLIBDIR)/inffast.$(OBJSUFF)
107
108PNGOBJS = \
109 $(PNGDIR)/png.$(OBJSUFF) \
110 $(PNGDIR)/pngread.$(OBJSUFF) \
111 $(PNGDIR)/pngrtran.$(OBJSUFF) \
112 $(PNGDIR)/pngrutil.$(OBJSUFF) \
113 $(PNGDIR)/pngpread.$(OBJSUFF) \
114 $(PNGDIR)/pngtrans.$(OBJSUFF) \
115 $(PNGDIR)/pngwrite.$(OBJSUFF) \
116 $(PNGDIR)/pngwtran.$(OBJSUFF) \
117 $(PNGDIR)/pngwutil.$(OBJSUFF) \
118 $(PNGDIR)/pngerror.$(OBJSUFF) \
119 $(PNGDIR)/pngmem.$(OBJSUFF) \
120 $(PNGDIR)/pngwio.$(OBJSUFF) \
121 $(PNGDIR)/pngrio.$(OBJSUFF) \
122 $(PNGDIR)/pngget.$(OBJSUFF) \
123 $(PNGDIR)/pngset.$(OBJSUFF)
124
125
126JPEGOBJS = \
127 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
128 $(JPEGDIR)/jutils.$(OBJSUFF) \
129 $(JPEGDIR)/jerror.$(OBJSUFF) \
130 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
131 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
132 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
133 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
134 $(JPEGDIR)/jctrans.$(OBJSUFF) \
135 $(JPEGDIR)/jcparam.$(OBJSUFF) \
136 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
137 $(JPEGDIR)/jcinit.$(OBJSUFF) \
138 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
139 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
140 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
141 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
142 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
143 $(JPEGDIR)/jccolor.$(OBJSUFF) \
144 $(JPEGDIR)/jcsample.$(OBJSUFF) \
145 $(JPEGDIR)/jchuff.$(OBJSUFF) \
146 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
147 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
148 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
149 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
150 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
151 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
152 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
153 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
154 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
155 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
156 $(JPEGDIR)/jdinput.$(OBJSUFF) \
157 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
158 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
159 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
160 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
161 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
162 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
163 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
164 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
165 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
166 $(JPEGDIR)/jidctint.$(OBJSUFF) \
167 $(JPEGDIR)/jidctred.$(OBJSUFF) \
168 $(JPEGDIR)/jdsample.$(OBJSUFF) \
169 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
170 $(JPEGDIR)/jquant1.$(OBJSUFF) \
171 $(JPEGDIR)/jquant2.$(OBJSUFF) \
172 $(JPEGDIR)/jdmerge.$(OBJSUFF)
173
174OBJECTS = $(GTKOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJ) $(UNIXOBJS) \
175 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
176
177all: $(OBJECTS) $(WXLIB)
178
a1925afc
RR
179$(WXLIB): $(OBJECTS)
180 ar $(AROPTIONS) $@ $(OBJECTS)
a3015c54
RR
181 $(RANLIB) $@
182
a1925afc 183$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
a3015c54 184
a1925afc
RR
185$(COMMDIR)/parser.$(OBJSUFF): $(COMMDIR)/parser.c $(COMMDIR)/lexer.c
186 $(CCLEX) -c $(CFLAGS) -o $@ $(COMMDIR)/parser.c
a3015c54 187
a1925afc 188$(COMMDIR)/parser.c: $(COMMDIR)/parser.y $(COMMDIR)/lexer.c
a3015c54 189 $(YACC) $(COMMDIR)/parser.y
a1925afc
RR
190 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
191 sed -e "s/BUFSIZ/5000/g" | \
192 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
193 sed -e "s/yy/PROIO_yy/g" | \
194 sed -e "s/input/PROIO_input/g" | \
195 sed -e "s/unput/PROIO_unput/g" > $(COMMDIR)/parser.c
196 @$(RM) y.tab.c
197
198$(COMMDIR)/lexer.c: $(COMMDIR)/lexer.l
199 $(LEX) $(COMMDIR)/lexer.l
200 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
201 sed -e "s/yy/PROIO_yy/g" | \
202 sed -e "s/input/PROIO_input/g" | \
203 sed -e "s/unput/PROIO_unput/g" > $(COMMDIR)/lexer.c
204 @$(RM) lex.yy.c
a3015c54
RR
205
206clean:
207 rm -f $(GTKDIR)/*.$(OBJSUFF)
a1925afc
RR
208 rm -f $(COMMDIR)/parser.c
209 rm -f $(COMMDIR)/lexer.c
a3015c54
RR
210 rm -f $(COMMDIR)/*.$(OBJSUFF)
211 rm -f $(GENDIR)/*.$(OBJSUFF)
212 rm -f $(PNGDIR)/*.$(OBJSUFF)
213 rm -f $(ZLIBDIR)/*.$(OBJSUFF)
214 rm -f $(JPEGDIR)/*.$(OBJSUFF)
215 rm -f $(UNIXDIR)/*.$(OBJSUFF)
216 rm -f $(HTMLDIR)/*.$(OBJSUFF)
217 rm -f $(WXWIN)/lib/libwx_$(GUI).a
218
219cleanall: clean