diff options
author | dhuth <derickhuth@gmail.com> | 2014-11-21 13:35:20 -0700 |
---|---|---|
committer | dhuth <derickhuth@gmail.com> | 2014-11-21 13:35:20 -0700 |
commit | a1834b22c43c282442b0cb164767e6c877cf0e5b (patch) | |
tree | bedc5be7d1bdb8d32c1868caa496a8a1530d8d8a /omega/code_gen/obj/Makefile | |
parent | ded84bb4aec7461738e7b7033d782a518e2c606b (diff) | |
parent | eb9236c5353785472ae132f27e1cfb9f1e4264a5 (diff) | |
download | chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.tar.gz chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.tar.bz2 chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.zip |
Merge branch 'master' into doe
Diffstat (limited to 'omega/code_gen/obj/Makefile')
-rw-r--r-- | omega/code_gen/obj/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/omega/code_gen/obj/Makefile b/omega/code_gen/obj/Makefile new file mode 100644 index 0000000..dbc65fe --- /dev/null +++ b/omega/code_gen/obj/Makefile @@ -0,0 +1,49 @@ + +# DON'T EDIT -- put any locally required changes in Makefile.config. + + +LIB_TARGET=libcodegen.a + +all: $(LIB_TARGET) +depend: depend_self +clean: clean_self +veryclean: veryclean_self + +BASIC_SRC = ../src/codegen.cc ../src/CG_stringBuilder.cc ../src/CG.cc ../src/CG_utils.cc +BASIC_OBJ = $(BASIC_SRC:../src/%.cc=%.o) + + +ROSE_SRC = ../src/rose_attributes.cc ../src/CG_roseRepr.cc ../src/CG_roseBuilder.cc +ROSE_OBJ = $(ROSE_SRC:../src/%.cc=%.o) + +OBJS = ${BASIC_OBJ} +SRCS = ${BASIC_SRC} + +BASEDIR=../.. +include $(BASEDIR)/Makefile.config + +INCL_PATH := $(INCL_PATH) -I../../omega_lib/include + + + + +ifeq ($(BUILD_ROSE), true) +OBJS := $(OBJS) $(ROSE_OBJ) +SRCS := $(SRCS) $(ROSE_SRC) +INCL_PATH := $(INCL_PATH) -I${ROSEHOME}/include -I${BOOSTHOME}/include +endif + +ifeq ($(BUILD_ROSE), true) +IR_OBJ = $(ROSE_SRC:../src/%.cc=%.o) +endif + +include $(BASEDIR)/Makefile.rules + + +# suppress warning of constant char * conversion nuiance in suif +$(IR_OBJ): %.o: ../src/%.cc + $(CC) -Wno-write-strings $(CFLAGS) $(INCL_PATH) -c $< -o $@ + +ifeq ($(shell test -f Makefile.deps && echo "true"), true) +include Makefile.deps +endif |