]>
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 JS |
19 | |
20 | #$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c | |
21 | # $(CCLEX) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c | |
22 | # | |
23 | #$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c | |
24 | # $(COPY) ../common/dosyacc.c ../common/y_tab.c | |
25 | # | |
26 | #$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c | |
27 | # $(COPY) ../common/doslex.c ../common/lex_yy.c | |
28 | ||
29 | # Replace lex with flex if you run into compilation | |
30 | # problems with lex_yy.c. See also note about LEX_SCANNER | |
31 | # above. | |
32 | # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l | |
33 | # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l | |
34 | # | |
35 | # Try one of these if the above line doesn't work. | |
36 | # Alternative syntax (1) | |
37 | # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c | |
38 | # Alternative syntax (2) | |
39 | # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l | |
40 | # | |
41 | # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \ | |
42 | # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ | |
43 | # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c | |
44 | # rm -f lex.yy.c | |
45 | # | |
46 | # Replace yacc with bison if you run into compilation | |
47 | # problems with y_tab.c. | |
48 | # | |
49 | # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y | |
50 | # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y | |
51 | # | |
52 | # If you use e.g. gcc on Unix, uncomment these lines | |
53 | # and comment out the above. | |
54 | # | |
55 | # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y | |
56 | # $(YACC) $(COMMDIR)/parser.y | |
57 | # mv y.tab.c $(COMMDIR)/y_tab.c | |
58 | ||
59 |