Adding a Makefile. May not yet work.
authorIsaac Dooley <idooley2@illinois.edu>
Tue, 13 Feb 2007 16:29:58 +0000 (16:29 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Tue, 13 Feb 2007 16:29:58 +0000 (16:29 +0000)
src/libs/ck-libs/ParFUM-Tops/Makefile [new file with mode: 0644]

diff --git a/src/libs/ck-libs/ParFUM-Tops/Makefile b/src/libs/ck-libs/ParFUM-Tops/Makefile
new file mode 100644 (file)
index 0000000..be6f3b4
--- /dev/null
@@ -0,0 +1,39 @@
+CDIR=../../../..
+CHARMC=$(CDIR)/bin/charmc $(OPTS)
+
+#Headers to be copied to include directory so application users can see them
+HEADERS= ParFUM_TOPS.h  $(INTERNALHEADERS)
+
+HEADDEP= $(GENHEADERS) $(HEADERS) $(INTERNALHEADERS)
+
+OBJS=ParFUM_TOPS.o
+
+LIB=libmoduleParFUM_TOPS
+
+LIBDIR=$(CDIR)/lib
+DEST=$(LIBDIR)/$(LIB).a
+PARFUMMAIN=$(LIBDIR)/libParFUMmain.o
+
+INCS=-I.
+
+all: $(DEST)
+
+
+# Build libmoduleParFUM
+$(DEST): $(OBJS) headers $(HEADDEP)
+       $(CHARMC) $(OBJS) -o $@
+       cp $(LIB).dep $(LIBDIR)/$(LIB).dep
+
+# Copy header files to include directory
+headers: $(HEADDEP)
+       cp $(HEADERS) $(CDIR)/include/
+       cp $(GENHEADERS) $(CDIR)/include/
+       touch headers
+
+ParFUM_TOPS.o: ParFUM_TOPS.C $(HEADDEP) ParFUM_TOPS.h
+       $(CHARMC) -c ParFUM_TOPS.C $(INCS)
+
+
+# clean up
+clean:
+       rm -rf *.a *.def.h *.decl.h *.o *~ SunWS_cache $(DEST)