NDMeshStreamer: adding a Make.depends file.
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Fri, 13 Sep 2013 21:34:57 +0000 (16:34 -0500)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Fri, 13 Sep 2013 21:36:22 +0000 (16:36 -0500)
src/libs/ck-libs/Makefile
src/libs/ck-libs/NDMeshStreamer/Make.depends [new file with mode: 0644]
src/libs/ck-libs/NDMeshStreamer/Makefile

index 0b1c672bbfb9042682d20ba077002ddb9de5d922..c6c1f4fea2021d95672d33f25d2b190a889cf5ff 100644 (file)
@@ -33,6 +33,7 @@ liveViz:
 taskGraph:
 search:
 datatransfer: ampi fem
+NDMeshStreamer: completion
 
 pythonCCS:
        -(CHARMINC=../../../include;. $$CHARMINC/conv-config.sh; \
diff --git a/src/libs/ck-libs/NDMeshStreamer/Make.depends b/src/libs/ck-libs/NDMeshStreamer/Make.depends
new file mode 100644 (file)
index 0000000..f08b149
--- /dev/null
@@ -0,0 +1,51 @@
+#generated by make depends
+NDMeshStreamer.o: NDMeshStreamer.C NDMeshStreamer.h NDMeshStreamer.decl.h \
+ ../../../../tmp/charm++.h ../../../../tmp/charm.h \
+ ../../../../tmp/converse.h ../../../../tmp/conv-config.h \
+ ../../../../tmp/conv-autoconfig.h ../../../../tmp/conv-common.h \
+ ../../../../tmp/conv-mach.h ../../../../tmp/conv-mach-opt.h \
+ ../../../../tmp/cmiqueue.h ../../../../tmp/pup_c.h \
+ ../../../../tmp/queueing.h ../../../../tmp/conv-cpm.h \
+ ../../../../tmp/conv-cpath.h ../../../../tmp/conv-qd.h \
+ ../../../../tmp/conv-random.h ../../../../tmp/conv-lists.h \
+ ../../../../tmp/conv-trace.h ../../../../tmp/persistent.h \
+ ../../../../tmp/debug-conv.h ../../../../tmp/pup.h \
+ ../../../../tmp/middle.h ../../../../tmp/middle-conv.h \
+ ../../../../tmp/cklists.h ../../../../tmp/ckbitvector.h \
+ ../../../../tmp/ckstream.h ../../../../tmp/init.h \
+ ../../../../tmp/ckhashtable.h ../../../../tmp/debug-charm.h \
+ ../../../../tmp/debug-conv++.h ../../../../tmp/simd.h \
+ ../../../../tmp/ckmessage.h ../../../../tmp/pup.h \
+ ../../../../tmp/CkMarshall.decl.h ../../../../tmp/charm++.h \
+ ../../../../tmp/envelope.h ../../../../tmp/middle.h \
+ ../../../../tmp/ckarrayindex.h ../../../../tmp/objid.h \
+ ../../../../tmp/cklists.h ../../../../tmp/objid.h ../../../../tmp/sdag.h \
+ ../../../../tmp/pup_stl.h ../../../../tmp/envelope.h \
+ ../../../../tmp/debug-charm.h ../../../../tmp/ckarrayindex.h \
+ ../../../../tmp/cksection.h ../../../../tmp/ckcallback.h \
+ ../../../../tmp/conv-ccs.h ../../../../tmp/sockRoutines.h \
+ ../../../../tmp/ccs-server.h ../../../../tmp/ckobjQ.h \
+ ../../../../tmp/ckreduction.h ../../../../tmp/CkReduction.decl.h \
+ ../../../../tmp/CkArrayReductionMgr.decl.h \
+ ../../../../tmp/ckmemcheckpoint.h ../../../../tmp/CkMemCheckpoint.decl.h \
+ ../../../../tmp/readonly.h ../../../../tmp/ckarray.h \
+ ../../../../tmp/cklocation.h ../../../../tmp/LBDatabase.h \
+ ../../../../tmp/lbdb.h ../../../../tmp/LBDBManager.h \
+ ../../../../tmp/LBObj.h ../../../../tmp/LBOM.h ../../../../tmp/LBComm.h \
+ ../../../../tmp/LBMachineUtil.h ../../../../tmp/lbdb++.h \
+ ../../../../tmp/LBDatabase.decl.h ../../../../tmp/NullLB.decl.h \
+ ../../../../tmp/BaseLB.decl.h ../../../../tmp/MetaBalancer.h \
+ ../../../../tmp/MetaBalancer.decl.h ../../../../tmp/CkLocation.decl.h \
+ ../../../../tmp/cklocrec.h ../../../../tmp/ckmigratable.h \
+ ../../../../tmp/CkArray.decl.h ../../../../tmp/ckfutures.h \
+ ../../../../tmp/CkFutures.decl.h ../../../../tmp/charisma.h \
+ ../../../../tmp/charisma.decl.h ../../../../tmp/tempo.h \
+ ../../../../tmp/tempo.decl.h ../../../../tmp/waitqd.h \
+ ../../../../tmp/waitqd.decl.h ../../../../tmp/ckcheckpoint.h \
+ ../../../../tmp/ckcallback.h ../../../../tmp/ckevacuation.h \
+ ../../../../tmp/ckarrayreductionmgr.h ../../../../tmp/trace.h \
+ ../../../../tmp/trace-bluegene.h ../../../../tmp/sdag.h \
+ ../completion/completion.decl.h DataItemTypes.h \
+ ../completion/completion.h ../completion/completion.decl.h \
+ ../../../../tmp/ckarray.h NDMeshStreamer.def.h
+       $(CHARMC) -I../../../../tmp -o NDMeshStreamer.o NDMeshStreamer.C
index fa33104bfc87fb9a8e0b0bde823d31a5991ce2be..09f1791e02f3074862a14162dc3f34d1eb470c12 100644 (file)
@@ -1,38 +1,54 @@
 CDIR=../../../..
+INCDIR=$(CDIR)/include
 CHARMC=$(CDIR)/bin/charmc $(OPTS)
 
-GENHEADERS=NDMeshStreamer.decl.h NDMeshStreamer.def.h
-HEADERS=NDMeshStreamer.h DataItemTypes.h $(GENHEADERS)
-OBJS=NDMeshStreamer.o
-LIB=libmoduleNDMeshStreamer
+LIB=libmoduleNDMeshStreamer.a
+LIBOBJ=NDMeshStreamer.o
 
-LIBDIR=$(CDIR)/lib
-DEST=$(LIBDIR)/$(LIB).a
+HEADERS= $(INCDIR)/NDMeshStreamer.decl.h \
+         $(INCDIR)/NDMeshStreamer.def.h \
+         $(INCDIR)/NDMeshStreamer.h \
+         $(INCDIR)/DataItemTypes.h
+LIBDEST = $(CDIR)/lib/$(LIB)
 
-.SUFFIXES:
-.SUFFIXES: .C .o
+CIFILES = NDMeshStreamer.ci
 
-.C.o:
-       $(CHARMC) -c $<
+all: $(LIBDEST) $(HEADERS)
 
-all: $(DEST)
+$(INCDIR)/NDMeshStreamer.decl.h: NDMeshStreamer.decl.h
+       /bin/cp NDMeshStreamer.decl.h $(CDIR)/include
+$(INCDIR)/NDMeshStreamer.def.h: NDMeshStreamer.def.h
+       /bin/cp NDMeshStreamer.def.h $(CDIR)/include
+$(INCDIR)/NDMeshStreamer.h: NDMeshStreamer.h
+       /bin/cp NDMeshStreamer.h $(CDIR)/include
+$(INCDIR)/DataItemTypes.h: DataItemTypes.h
+       /bin/cp DataItemTypes.h $(CDIR)/include
 
-$(DEST): $(OBJS) headers
-       $(CHARMC) $(OBJS) -o $@
-       #cp $(LIB).dep $(LIBDIR)/$(LIB).dep
+$(LIBDEST): $(LIBOBJ)
+       $(CHARMC) -o $(LIBDEST) $(LIBOBJ)
 
-headers: $(HEADERS)
-       cp $^ $(CDIR)/include/
-       touch $@
+NDMeshStreamer.def.h: NDMeshStreamer.decl.h
 
-NDMeshStreamer.o: NDMeshStreamer.C $(HEADERS)
-       $(CHARMC) -c $<
+NDMeshStreamer.decl.h: NDMeshStreamer.ci $(CDIR)/bin/charmxi
+       $(CHARMC) -c NDMeshStreamer.ci
 
-$(GENHEADERS): NDMeshStreamer.stamp
+clean:
+       -rm -fr *.o *.decl.h *.def.h core $(LIB)
 
-NDMeshStreamer.stamp: NDMeshStreamer.ci
-       $(CHARMC) $<
-       touch $@
+include Make.depends
+
+DEPENDFILE = Make.depends
+
+depends:  NDMeshStreamer.ci NDMeshStreamer.def.h
+       echo "Creating " $(DEPENDFILE) " ...";  \
+       if [ -f $(DEPENDFILE) ]; then \
+           /bin/cp -f $(DEPENDFILE) $(DEPENDFILE).old; \
+        fi; \
+       echo '#generated by make depends' > $(DEPENDFILE); \
+        for i in $(LIBOBJ) ; do \
+             SRCFILE=`basename $$i .o`.C ; \
+              echo "checking dependencies for $$i : $$SRCFILE" ; \
+              g++ -MM -Wno-deprecated -I$(CDIR)/tmp -I../completion $$SRCFILE >> $(DEPENDFILE); \
+              echo '   $$(CHARMC) -I$(CDIR)/tmp -o '$$i $$SRCFILE >> $(DEPENDFILE) ; \
+        done;
 
-clean: 
-       -rm -fr *.o *~ *.decl.h *.def.h *.stamp gmon.out $(DEST) conv-host charmrun headers