Fix build on systems with broken bison
[oota-llvm.git] / projects / Stacker / lib / compiler / Makefile
1 ##===- projects/Stacker/lib/compiler/Makefile --------------*- Makefile -*-===##
2
3 LEVEL := ../..
4 LIBRARYNAME := stkr_compiler
5 EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
6               StackerParser.cpp.cvs StackerParser.h.cvs StackerParser.y.cvs
7
8 include $(LEVEL)/Makefile.common
9
10 ifdef PARSE_DEBUG
11 INCLUDES += -DPARSE_DEBUG
12 endif
13
14 # Disable -pedantic for this library, as bison output isn't necessarily 
15 # -pedantic clean.
16 CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
17 CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
18
19 $(ObjDir)/Lexer.o : $(PROJ_SRC_DIR)/StackerParser.h