]>
Commit | Line | Data |
---|---|---|
4a3bdee6 JS |
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 | |
7c9955d1 | 13 | OBJECTS = prop.o propform.o proplist.o y_tab.o wxexpr.o resource.o treelay.o |
4a3bdee6 JS |
14 | |
15 | include $(WXDIR)/src/makelib.g95 | |
16 | ||
f2638c97 JS |
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 | |
2fc9385a | 19 | |
3b69115c JS |
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 | |
2fc9385a JS |
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 |