Adds the Makefile for NodeHelper lib
authorChao Mei <chaomei2@illinois.edu>
Wed, 11 Apr 2012 20:27:28 +0000 (15:27 -0500)
committerChao Mei <chaomei2@illinois.edu>
Wed, 11 Apr 2012 20:27:28 +0000 (15:27 -0500)
src/libs/ck-libs/nodeHelper/Makefile [new file with mode: 0644]

diff --git a/src/libs/ck-libs/nodeHelper/Makefile b/src/libs/ck-libs/nodeHelper/Makefile
new file mode 100644 (file)
index 0000000..d8a8826
--- /dev/null
@@ -0,0 +1,28 @@
+OPTS= -O3 -lpthread
+CDIR=../../../..
+CHARMC=$(CDIR)/bin/charmc $(OPTS)
+
+MODULE=NodeHelper
+LIB = $(CDIR)/lib/libmodule$(MODULE).a
+LIBOBJ = NodeHelper.o
+
+HEADERS = NodeHelperAPI.h $(MODULE).decl.h $(MODULE).def.h
+
+all: $(LIBDEST)$(LIB)
+
+$(LIB): $(LIBOBJ)
+       $(CHARMC) -o $(LIB) $(LIBOBJ) 
+
+headers: $(HEADERS)
+       cp $(HEADERS) $(CDIR)/include/
+
+NodeHelper.o: NodeHelper.C headers
+       $(CHARMC) -c $<
+
+$(MODULE).def.h: $(MODULE).decl.h
+
+$(MODULE).decl.h: NodeHelper.ci
+       $(CHARMC) -c $<
+
+clean:
+       rm -f *.o *.decl.h *.def.h $(LIB) headers