summaryrefslogtreecommitdiffstats
path: root/stacker/lib/compiler/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stacker/lib/compiler/Makefile')
-rw-r--r--stacker/lib/compiler/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/stacker/lib/compiler/Makefile b/stacker/lib/compiler/Makefile
new file mode 100644
index 00000000000..11276c1517c
--- /dev/null
+++ b/stacker/lib/compiler/Makefile
@@ -0,0 +1,21 @@
+##===- projects/Stacker/lib/compiler/Makefile --------------*- Makefile -*-===##
+
+LEVEL := ../..
+LIBRARYNAME := stkr_compiler
+EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
+ StackerParser.cpp.cvs StackerParser.h.cvs StackerParser.y.cvs
+REQUIRES_EH := 1
+
+include $(LEVEL)/Makefile.common
+
+ifdef PARSE_DEBUG
+INCLUDES += -DPARSE_DEBUG
+endif
+
+# Disable -pedantic for this library, as bison output isn't necessarily
+# -pedantic clean.
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
+
+$(ObjDir)/Lexer.o : $(PROJ_SRC_DIR)/StackerParser.h
+$(ObjDir)/StackerCompiler.o : $(PROJ_SRC_DIR)/StackerParser.h
OpenPOWER on IntegriCloud