Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/Makefile
Show First 20 Lines • Show All 55 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 |