diff options
author | Derick Huth <derickhuth@gmail.com> | 2014-10-06 12:42:34 -0600 |
---|---|---|
committer | Derick Huth <derickhuth@gmail.com> | 2014-10-06 12:42:34 -0600 |
commit | 8d73c8fcc75556c1df71dd39dd99783f8f86fc3e (patch) | |
tree | 157d627863d76a4c256a27cae27ce2e8566c7ea0 /omega/omega_calc/obj/Makefile | |
parent | e87b55ad69f0ac6211daae741b32c8ee9dcbe470 (diff) | |
parent | 8c646f24570079eac53e58fcf42d0d4fbc437ee3 (diff) | |
download | chill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.tar.gz chill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.tar.bz2 chill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.zip |
Merge pull request #2 from dhuth/master
Moved omega into chill.
Diffstat (limited to 'omega/omega_calc/obj/Makefile')
-rw-r--r-- | omega/omega_calc/obj/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/omega/omega_calc/obj/Makefile b/omega/omega_calc/obj/Makefile new file mode 100644 index 0000000..4001c83 --- /dev/null +++ b/omega/omega_calc/obj/Makefile @@ -0,0 +1,57 @@ +# Makefile for release 1.0 of the omega system +# DON'T EDIT -- put any locally required changes in Makefile.config. +# See INSTALL for more details. + +EXEC_TARGET=oc + + +all: $(EXEC_TARGET) + +clean: clean_self + +veryclean: veryclean_self + + +SRCS := ../src/AST.cc ../src/myflex.cc +OBJS := $(SRCS:../src/%.cc=%.o) + +YACC_SRCS := lex.yy.cc parser.tab.cc +YACC_OBJS := $(YACC_SRCS:.cc=.o) + +depend: $(YACC_SRCS) depend_self + +SRCS := $(SRCS) $(YACC_SRCS) +OBJS := $(OBJS) $(YACC_OBJS) + +BASEDIR=../.. +include $(BASEDIR)/Makefile.config + +LIB_PATH := $(LIB_PATH) -L../../omega_lib/obj +LIBS := $(LIBS) -lomega + +ifeq ($(BUILD_CODEGEN), true) +LIB_PATH := $(LIB_PATH) -L../../code_gen/obj +LIBS := $(LIBS) -lcodegen +CFLAGS := $(CFLAGS) -DBUILD_CODEGEN +endif + +CFLAGS := $(CFLAGS) +INCL_PATH := -I. $(INCL_PATH) -I../../omega_lib/include -I../../code_gen/include + +include $(BASEDIR)/Makefile.rules + +# lex/yacc related +.PHONY: parser.tab.o + +lex.yy.cc: ../src/parser.ll + flex++ $< + +parser.tab.hh parser.tab.cc: ../src/parser.yy + bison -t -d $< + +parser.tab.o: parser.tab.cc + $(CC) $(CFLAGS) -DOMEGA_BUILD_DATE="\"$(OMEGA_BUILD_DATE)\"" $(INCL_PATH) -c $< + +ifeq ($(shell test -f Makefile.deps && echo "true"), true) +include Makefile.deps +endif |