6 # Copyright: (c) Julian Smart, 1999
8 # Makefile for wxWindows Deprecated Features library (Cygwin/Mingw32).
12 LIBTARGET=$(WXDIR)/lib/libwxdeprecated.a
13 OBJECTS = prop.o propform.o proplist.o y_tab.o wxexpr.o resource.o treelay.o
15 include $(WXDIR)/src/makelib.g95
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
21 $(COPY) dosyacc.c y_tab.c
24 $(COPY) doslex.c lex_yy.c
26 # Replace lex with flex if you run into compilation
27 # problems with lex_yy.c. See also note about LEX_SCANNER
29 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
30 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
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
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
43 # Replace yacc with bison if you run into compilation
44 # problems with y_tab.c.
46 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
47 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
49 # If you use e.g. gcc on Unix, uncomment these lines
50 # and comment out the above.
52 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
53 # $(YACC) $(COMMDIR)/parser.y
54 # mv y.tab.c $(COMMDIR)/y_tab.c