summaryrefslogtreecommitdiff
path: root/omega/omega_calc/obj/Makefile.am
diff options
context:
space:
mode:
authorDerick Huth <derickhuth@gmail.com>2015-03-23 13:48:02 -0600
committerDerick Huth <derickhuth@gmail.com>2015-03-23 13:48:02 -0600
commite6b89c668036ff8424455d3d1d1a5d79a063fc92 (patch)
treee185ac16a4af9df7d29d189dde7ef3b8bd6c19e1 /omega/omega_calc/obj/Makefile.am
parent4d46b92b3030a4d38d7e09274f0463bbcb94694e (diff)
parent7e39433ddb5f3ac5298207d5f4e8072eb193fa7a (diff)
downloadchill-e6b89c668036ff8424455d3d1d1a5d79a063fc92.tar.gz
chill-e6b89c668036ff8424455d3d1d1a5d79a063fc92.tar.bz2
chill-e6b89c668036ff8424455d3d1d1a5d79a063fc92.zip
Merge pull request #5 from dhuth/master
Autotools Features
Diffstat (limited to 'omega/omega_calc/obj/Makefile.am')
-rw-r--r--omega/omega_calc/obj/Makefile.am32
1 files changed, 32 insertions, 0 deletions
diff --git a/omega/omega_calc/obj/Makefile.am b/omega/omega_calc/obj/Makefile.am
new file mode 100644
index 0000000..4420f89
--- /dev/null
+++ b/omega/omega_calc/obj/Makefile.am
@@ -0,0 +1,32 @@
+noinst_PROGRAMS=oc
+
+SRCDIR=../src
+
+
+build_date = "\"`date +%m/%d/%Y`\""
+
+BUILT_SOURCES=$(SRCDIR)/lex.yy.cc $(SRCDIR)/parser.tab.cc
+AM_YFLAGS=-d -t
+
+calc_includes =-I$(SRCDIR)
+calc_includes+=-I../include
+calc_includes+=-I../../omega_lib/include -I../../code_gen/include
+calc_includes+=-I../../basic/include
+
+#calc_libs =../../omega_lib/obj/libomega.a
+#calc_libs+=../../code_gen/obj/libcodegen.a
+calc_libs =-lomega -lcodegen
+calc_lib_paths =-L../../omega_lib/obj -L../../code_gen/obj
+calc_lib_paths+=-L$(ROSEHOME)/lib -L$(BOOSTHOME)/lib
+
+oc_SOURCES=$(SRCDIR)/AST.cc $(SRCDIR)/myflex.cc $(SRCDIR)/lex.yy.cc $(SRCDIR)/parser.tab.cc
+oc_LDADD=$(calc_libs)
+oc_LDFLAGS=$(calc_lib_paths)
+oc_CPPFLAGS=$(calc_includes) -DBUILD_CODEGEN -DOMEGA_BUILD_DATE=$(build_date)
+
+$(SRCDIR)/lex.yy.cc: $(SRCDIR)/parser.tab.cc $(SRCDIR)/parser.ll
+ flex++ -o $(SRCDIR)/lex.yy.cc $(SRCDIR)/parser.ll
+
+$(SRCDIR)/parser.tab.cc:
+ bison -t -d -o $(SRCDIR)/parser.tab.cc $(SRCDIR)/parser.yy
+