summaryrefslogtreecommitdiff
path: root/omega/code_gen
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/code_gen
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/code_gen')
-rw-r--r--omega/code_gen/obj/Makefile49
-rw-r--r--omega/code_gen/obj/Makefile.am10
2 files changed, 10 insertions, 49 deletions
diff --git a/omega/code_gen/obj/Makefile b/omega/code_gen/obj/Makefile
deleted file mode 100644
index dbc65fe..0000000
--- a/omega/code_gen/obj/Makefile
+++ /dev/null
@@ -1,49 +0,0 @@
-
-# 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
diff --git a/omega/code_gen/obj/Makefile.am b/omega/code_gen/obj/Makefile.am
new file mode 100644
index 0000000..cd85b8b
--- /dev/null
+++ b/omega/code_gen/obj/Makefile.am
@@ -0,0 +1,10 @@
+
+noinst_LIBRARIES =libcodegen.a
+
+libcodegen_a_SOURCES =../src/codegen.cc ../src/CG_stringBuilder.cc ../src/CG.cc ../src/CG_utils.cc
+libcodegen_a_CFLAGS =-Wno-write-strings
+libcodegen_a_CPPFLAGS =-I../include -I../../omega_lib/include -I$(ROSEHOME)/include -I$(BOOSTHOME)/include
+#if BUILD_ROSE
+libcodegen_a_SOURCES += ../src/rose_attributes.cc ../src/CG_roseRepr.cc ../src/CG_roseBuilder.cc
+#endif
+