]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/deprecated/makefile.g95
minor corrections for compilation with gcc 3.3 (use cast of address instead
[wxWidgets.git] / contrib / src / deprecated / makefile.g95
1 #
2 # File: makefile.g95
3 # Author: Julian Smart
4 # Created: 1999
5 # Updated:
6 # Copyright: (c) Julian Smart, 1999
7 #
8 # Makefile for wxWindows Deprecated Features library (Cygwin/Mingw32).
9
10 WXDIR = ../../..
11
12 LIBTARGET=$(WXDIR)/lib/libwxdeprecated.a
13 OBJECTS = prop.o propform.o proplist.o y_tab.o wxexpr.o resource.o treelay.o
14
15 include $(WXDIR)/src/makelib.g95
16
17 y_tab.$(OBJSUFF): y_tab.c lex_yy.c
18 $(CCLEX) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ y_tab.c
19
20 y_tab.c: dosyacc.c
21 $(COPY) dosyacc.c y_tab.c
22
23 lex_yy.c: doslex.c
24 $(COPY) doslex.c lex_yy.c
25
26 # Replace lex with flex if you run into compilation
27 # problems with lex_yy.c. See also note about LEX_SCANNER
28 # above.
29 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
30 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
31 #
32 # Try one of these if the above line doesn't work.
33 # Alternative syntax (1)
34 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
35 # Alternative syntax (2)
36 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
37 #
38 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
39 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
40 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
41 # rm -f lex.yy.c
42 #
43 # Replace yacc with bison if you run into compilation
44 # problems with y_tab.c.
45 #
46 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
47 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
48 #
49 # If you use e.g. gcc on Unix, uncomment these lines
50 # and comment out the above.
51 #
52 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
53 # $(YACC) $(COMMDIR)/parser.y
54 # mv y.tab.c $(COMMDIR)/y_tab.c
55
56