]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/g95.t
1. fixed makefile.vc for OLE files
[wxWidgets.git] / distrib / msw / tmake / g95.t
CommitLineData
f2071dda
VZ
1#!#############################################################################
2#! File: g95.t
3#! Purpose: tmake template file from which makefile.g95 is generated by running
4#! tmake -t g95 wxwin.pro -o makefile.g95
5#! Author: Vadim Zeitlin
6#! Created: 14.07.99
7#! Version: $Id$
8#!#############################################################################
9
10#${
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
14
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
17 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
18 #! so take the generic version
19 if ( $wxGeneric{$file} =~ /\b(PS|G|U)\b/ ) {
20 next unless $file =~ /^dirdlgg\./;
21 }
22
23 $file =~ s/cp?p?$/\$(OBJSUFF)/;
24 $project{"WXGENERICOBJS"} .= '$(GENDIR)\\' . $file . " "
25 }
26
27 foreach $file (sort keys %wxCommon) {
28 #! socket files don't compile under Win16 currently
29 next if $wxCommon{$file} =~ /\b(32|S)\b/;
30
31 #! needs extra files (sql*.h) so not compiled by default.
32 next if $file =~ /^odbc\./;
33
34 $file =~ s/cp?p?$/\$(OBJSUFF)/;
35 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)\\' . $file . " "
36 }
37
38 foreach $file (sort keys %wxMSW) {
39 #! Mingw32 doesn't have the OLE headers and has some troubles with
40 #! socket code
41 next if $wxMSW{$file} =~ /\b(O|S|16)\b/;
42
43 $file =~ s/cp?p?$/\$(OBJSUFF)/;
44 $project{"WXMSWOBJS"} .= $file . " "
45 }
46#$}
47
48# This file was automatically generated by tmake at #$ Now()
49# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
50
51#
52# File: makefile.unx
53# Author: Julian Smart
54# Created: 1993
55# Updated:
56# Copyright:(c) 1993, AIAI, University of Edinburgh
57#
58# "@(#)makefile.unx 1.2 5/9/94"
59#
60# Makefile for libwx.a
61
62# Replace this with your own path if necessary
63WXDIR = ../..
64
65# All common UNIX compiler flags and options are now in
66# this central makefile.
67include $(WXDIR)/src/makeg95.env
68
69# IMPORTANT: if you want to link in subsidiary libraries,
70# required for some optional parts of wxWindows, you must
71# set EXTRATARGETS and EXTRAOBJS to match the settings in wx_setup.h.
72# Having done this, you won't have to worry about linking them
73# into each application.
74#
75# Here's the full list.
76# prologio: Required if using the wxWindows resource facility
77# USE_WX_RESOURCES should be 1
78# xmgauge: Gauge class (required for Motif only)
79# USE_GAUGE should be 1
80# xpm: XPM pixmap support
81# USE_XPM_IN_X should be 1
82# wxstring: string class
83# USE_GNU_WXSTRING should be 1
84#
85# Unfortunately, 'ar' doesn't like combining objects and libraries,
86# so we must identify all the objects from the subordinate libraries. Yuck!
87XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX)
88XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\
89 $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\
90 $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\
91 $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\
92 $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF)
93
94# Subordinate library possibilities
95
96EXTRAOBJS=
97
98GENDIR=../generic
99COMMDIR=../common
100XPMDIR=../xpm
101OLEDIR=ole
102MSWDIR=.
103
104DOCDIR = $(WXDIR)\docs
105
106GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
107
108COMMONOBJS = \
109 $(COMMDIR)/y_tab.$(OBJSUFF) \
110 #$ ExpandList("WXCOMMONOBJS");
111
112MSWOBJS = #$ ExpandList("WXMSWOBJS");
113
114XPMOBJECTS = $(XPMDIR)/crbuffri.o\
115 $(XPMDIR)/crdatfri.o\
116 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
117 $(XPMDIR)/crifrdat.o\
118 $(XPMDIR)/data.o\
119 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
120 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
121 $(XPMDIR)/rdftoi.o\
122 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
123 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
124 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
125
126OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
127
128all: $(OBJECTS) $(WXLIB)
129
130base:
131 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
132 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
133
134
135$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
136 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
137 $(RANLIB) $@
138
139$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
140
141$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
142 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
143
144# Replace lex with flex if you run into compilation
145# problems with lex_yy.c. See also note about LEX_SCANNER
146# above.
147$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
148 $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
149
150# Try one of these if the above line doesn't work.
151# Alternative syntax (1)
152# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
153# Alternative syntax (2)
154# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
155
156# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
157# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
158# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
159# rm -f lex.yy.c
160
161# Replace yacc with bison if you run into compilation
162# problems with y_tab.c.
163
164$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
165 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
166
167# If you use e.g. gcc on Unix, uncomment these lines
168# and comment out the above.
169
170# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
171# $(YACC) $(COMMDIR)/parser.y
172# mv y.tab.c $(COMMDIR)/y_tab.c
173
174# Extra targets
175rcparser:
176 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
177 cd $(WXDIR)/src/msw
178
179clean_rcp:
180 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
181 cd $(WXDIR)/src/msw
182
183clean:
184 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
185
186cleanall: clean
187