Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/Makefile
BISONFLAGS = --verbose -d -Wall | BISONFLAGS = --verbose -d -Wall | ||||
CPPFLAGS = -fPIC -Wall | CPPFLAGS = -fPIC -Wall | ||||
FLEXFLAGS = -CFr | FLEXFLAGS = -CFr | ||||
ifdef DEBUG | ifdef DEBUG | ||||
BISONFLAGS += --debug | BISONFLAGS += --debug | ||||
Lint: Tab Literal: Configure your editor to use spaces for indentation. | |||||
CPPFLAGS += -ggdb -DDEBUG | CPPFLAGS += -ggdb -DDEBUG | ||||
FLEXFLAGS += --debug | FLEXFLAGS += --debug | ||||
else | else | ||||
CPPFLAGS += -O3 -minline-all-stringops | CPPFLAGS += -O3 -minline-all-stringops | ||||
endif | endif | ||||
ifdef PROFILE | ifdef PROFILE | ||||
CPPFLAGS += -pg | CPPFLAGS += -pg | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | needparserscanner: | ||||
@([ -e parser.yacc.hpp ] && [ -e parser.yacc.cpp ] && \ | @([ -e parser.yacc.hpp ] && [ -e parser.yacc.cpp ] && \ | ||||
[ -e scanner.lex.hpp ] && [ -e scanner.lex.cpp ]) \ | [ -e scanner.lex.hpp ] && [ -e scanner.lex.cpp ]) \ | ||||
|| (echo "Run 'make parser scanner' first.'" && exit 1) | || (echo "Run 'make parser scanner' first.'" && exit 1) | ||||
parser.yacc.o: needparserscanner scanner.lex.hpp | parser.yacc.o: needparserscanner scanner.lex.hpp | ||||
scanner.lex.o: needparserscanner parser.yacc.hpp node_names.hpp scanner.lex.hpp | scanner.lex.o: needparserscanner parser.yacc.hpp node_names.hpp scanner.lex.hpp | ||||
libxhpast.a: astnode.o scanner.lex.o parser.yacc.o | libxhpast.a: scanner.lex.o parser.yacc.o | ||||
$(AR) -crs $@ $^ | $(AR) -crs $@ $^ | ||||
xhpast: xhpast.cpp libxhpast.a | xhpast: xhpast.cpp libxhpast.a | ||||
$(CXX) $(CPPFLAGS) -o $@ $^ | $(CXX) $(CPPFLAGS) -o $@ $^ | ||||
.PHONY: all clean | .PHONY: all clean |
Configure your editor to use spaces for indentation.