added Make.depends for tcharm
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 29 Apr 2010 15:33:29 +0000 (10:33 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 29 Apr 2010 15:33:29 +0000 (10:33 -0500)
src/libs/ck-libs/common.mk
src/libs/ck-libs/tcharm/Make.depends [new file with mode: 0644]
src/libs/ck-libs/tcharm/Makefile

index d600dad8238d33b7a694d61272c83a8c1ace2856..350a791c1de16bff6cb83bf8f07fd47e561b6d6f 100644 (file)
@@ -1,6 +1,8 @@
 CDIR=../../../..
 CHARMC=$(CDIR)/bin/charmc $(OPTS)
 LIBDIR=$(CDIR)/lib
+CHARMINC=$(CDIR)/include
 
 $(CDIR)/include/%.h: %.h
-       cp $< $@
\ No newline at end of file
+       cp $< $@
+
diff --git a/src/libs/ck-libs/tcharm/Make.depends b/src/libs/ck-libs/tcharm/Make.depends
new file mode 100644 (file)
index 0000000..912c1be
--- /dev/null
@@ -0,0 +1,126 @@
+#generated by make depends
+tcharm.o: tcharm.C tcharm_impl.h ../../../../include/pup.h \
+  ../../../../include/converse.h ../../../../include/conv-config.h \
+  ../../../../include/conv-autoconfig.h ../../../../include/conv-common.h \
+  ../../../../include/conv-mach.h ../../../../include/conv-mach-opt.h \
+  ../../../../include/conv-mach-smp.h ../../../../include/pup_c.h \
+  ../../../../include/queueing.h ../../../../include/conv-cpm.h \
+  ../../../../include/conv-cpath.h ../../../../include/conv-qd.h \
+  ../../../../include/conv-random.h ../../../../include/conv-lists.h \
+  ../../../../include/conv-trace.h ../../../../include/persistent.h \
+  ../../../../include/conv-onesided.h ../../../../include/debug-conv.h \
+  ../../../../include/pup_c.h ../../../../include/charm-api.h tcharmc.h \
+  ../../../../include/cklists.h ../../../../include/pup.h \
+  ../../../../include/memory-isomalloc.h tcharm.decl.h \
+  ../../../../include/charm++.h ../../../../include/charm.h \
+  ../../../../include/middle.h ../../../../include/middle-conv.h \
+  ../../../../include/cklists.h ../../../../include/ckbitvector.h \
+  ../../../../include/ckstream.h ../../../../include/init.h \
+  ../../../../include/ckhashtable.h ../../../../include/debug-charm.h \
+  ../../../../include/simd.h ../../../../include/CkMarshall.decl.h \
+  ../../../../include/charm++.h ../../../../include/cksection.h \
+  ../../../../include/ckcallback.h ../../../../include/conv-ccs.h \
+  ../../../../include/sockRoutines.h ../../../../include/ccs-server.h \
+  ../../../../include/ckobjQ.h ../../../../include/ckreduction.h \
+  ../../../../include/CkReduction.decl.h \
+  ../../../../include/cknodegroupreduction.h \
+  ../../../../include/CkArrayReductionMgr.decl.h \
+  ../../../../include/ckmemcheckpoint.h \
+  ../../../../include/CkMemCheckpoint.decl.h \
+  ../../../../include/readonly.h ../../../../include/ckarray.h \
+  ../../../../include/cklocation.h ../../../../include/LBDatabase.h \
+  ../../../../include/lbdb.h ../../../../include/LBDBManager.h \
+  ../../../../include/LBObj.h ../../../../include/LBOM.h \
+  ../../../../include/LBComm.h ../../../../include/LBMachineUtil.h \
+  ../../../../include/lbdb++.h ../../../../include/LBDatabase.decl.h \
+  ../../../../include/NullLB.decl.h ../../../../include/BaseLB.decl.h \
+  ../../../../include/CkLocation.decl.h \
+  ../../../../include/CkArray.decl.h ../../../../include/CkFutures.decl.h \
+  ../../../../include/charisma.h ../../../../include/charisma.decl.h \
+  ../../../../include/tempo.h ../../../../include/tempo.decl.h \
+  ../../../../include/waitqd.h ../../../../include/waitqd.decl.h \
+  ../../../../include/sdag.h ../../../../include/ckcheckpoint.h \
+  ../../../../include/CkCheckpoint.decl.h \
+  ../../../../include/ckevacuation.h \
+  ../../../../include/ckarrayreductionmgr.h ../../../../include/trace.h \
+  ../../../../include/trace-bluegene.h ../../../../include/envelope.h \
+  tcharm.h ../../../../include/ckcheckpoint.h \
+  ../../../../include/ckevacuation.h tcharm.def.h
+       $(CHARMC) -o tcharm.o tcharm.C
+tcharmmain.o: tcharmmain.C tcharm_impl.h ../../../../include/pup.h \
+  ../../../../include/converse.h ../../../../include/conv-config.h \
+  ../../../../include/conv-autoconfig.h ../../../../include/conv-common.h \
+  ../../../../include/conv-mach.h ../../../../include/conv-mach-opt.h \
+  ../../../../include/conv-mach-smp.h ../../../../include/pup_c.h \
+  ../../../../include/queueing.h ../../../../include/conv-cpm.h \
+  ../../../../include/conv-cpath.h ../../../../include/conv-qd.h \
+  ../../../../include/conv-random.h ../../../../include/conv-lists.h \
+  ../../../../include/conv-trace.h ../../../../include/persistent.h \
+  ../../../../include/conv-onesided.h ../../../../include/debug-conv.h \
+  ../../../../include/pup_c.h ../../../../include/charm-api.h tcharmc.h \
+  ../../../../include/cklists.h ../../../../include/pup.h \
+  ../../../../include/memory-isomalloc.h tcharm.decl.h \
+  ../../../../include/charm++.h ../../../../include/charm.h \
+  ../../../../include/middle.h ../../../../include/middle-conv.h \
+  ../../../../include/cklists.h ../../../../include/ckbitvector.h \
+  ../../../../include/ckstream.h ../../../../include/init.h \
+  ../../../../include/ckhashtable.h ../../../../include/debug-charm.h \
+  ../../../../include/simd.h ../../../../include/CkMarshall.decl.h \
+  ../../../../include/charm++.h ../../../../include/cksection.h \
+  ../../../../include/ckcallback.h ../../../../include/conv-ccs.h \
+  ../../../../include/sockRoutines.h ../../../../include/ccs-server.h \
+  ../../../../include/ckobjQ.h ../../../../include/ckreduction.h \
+  ../../../../include/CkReduction.decl.h \
+  ../../../../include/cknodegroupreduction.h \
+  ../../../../include/CkArrayReductionMgr.decl.h \
+  ../../../../include/ckmemcheckpoint.h \
+  ../../../../include/CkMemCheckpoint.decl.h \
+  ../../../../include/readonly.h ../../../../include/ckarray.h \
+  ../../../../include/cklocation.h ../../../../include/LBDatabase.h \
+  ../../../../include/lbdb.h ../../../../include/LBDBManager.h \
+  ../../../../include/LBObj.h ../../../../include/LBOM.h \
+  ../../../../include/LBComm.h ../../../../include/LBMachineUtil.h \
+  ../../../../include/lbdb++.h ../../../../include/LBDatabase.decl.h \
+  ../../../../include/NullLB.decl.h ../../../../include/BaseLB.decl.h \
+  ../../../../include/CkLocation.decl.h \
+  ../../../../include/CkArray.decl.h ../../../../include/CkFutures.decl.h \
+  ../../../../include/charisma.h ../../../../include/charisma.decl.h \
+  ../../../../include/tempo.h ../../../../include/tempo.decl.h \
+  ../../../../include/waitqd.h ../../../../include/waitqd.decl.h \
+  ../../../../include/sdag.h ../../../../include/ckcheckpoint.h \
+  ../../../../include/CkCheckpoint.decl.h \
+  ../../../../include/ckevacuation.h \
+  ../../../../include/ckarrayreductionmgr.h ../../../../include/trace.h \
+  ../../../../include/trace-bluegene.h ../../../../include/envelope.h \
+  tcharm.h ../../../../include/ckcheckpoint.h tcharmmain.decl.h \
+  tcharmmain.def.h
+       $(CHARMC) -o tcharmmain.o tcharmmain.C
+compat_uns.o: compat_uns.c ../../../../include/charm-api.h \
+  ../../../../include/conv-config.h ../../../../include/conv-autoconfig.h \
+  ../../../../include/conv-common.h ../../../../include/conv-mach.h \
+  ../../../../include/conv-mach-opt.h ../../../../include/conv-mach-smp.h \
+  tcharmc.h ../../../../include/pup_c.h
+       $(CHARMC) -o compat_uns.o compat_uns.c
+compat_us.o: compat_us.c ../../../../include/charm-api.h \
+  ../../../../include/conv-config.h ../../../../include/conv-autoconfig.h \
+  ../../../../include/conv-common.h ../../../../include/conv-mach.h \
+  ../../../../include/conv-mach-opt.h ../../../../include/conv-mach-smp.h \
+  tcharmc.h ../../../../include/pup_c.h
+       $(CHARMC) -o compat_us.o compat_us.c
+compat_funs.o: compat_funs.c ../../../../include/charm-api.h \
+  ../../../../include/conv-config.h ../../../../include/conv-autoconfig.h \
+  ../../../../include/conv-common.h ../../../../include/conv-mach.h \
+  ../../../../include/conv-mach-opt.h ../../../../include/conv-mach-smp.h \
+  tcharmc.h ../../../../include/pup_c.h
+       $(CHARMC) -o compat_funs.o compat_funs.c
+compat_fus.o: compat_fus.c ../../../../include/charm-api.h \
+  ../../../../include/conv-config.h ../../../../include/conv-autoconfig.h \
+  ../../../../include/conv-common.h ../../../../include/conv-mach.h \
+  ../../../../include/conv-mach-opt.h ../../../../include/conv-mach-smp.h \
+  tcharmc.h ../../../../include/pup_c.h
+       $(CHARMC) -o compat_fus.o compat_fus.c
+compat_regmm.o: compat_regmm.c ../../../../include/charm-api.h \
+  ../../../../include/conv-config.h ../../../../include/conv-autoconfig.h \
+  ../../../../include/conv-common.h ../../../../include/conv-mach.h \
+  ../../../../include/conv-mach-opt.h ../../../../include/conv-mach-smp.h
+       $(CHARMC) -o compat_regmm.o compat_regmm.c
index 8c23a9ea5e5ffd648fb1d5b75260f525cdfe38a8..3d8c3f572fdae9f940081d0784bda15d76ad032b 100644 (file)
@@ -14,12 +14,12 @@ OBJS2=tcharmmain.o
 LIB2=libmoduletcharmmain
 DEST2=$(LIBDIR)/$(LIB2).a
 
+OBJECTS = $(OBJS) $(OBJS2) $(COMPAT)
+CIFILES = tcharm.decl.h  tcharmmain.decl.h
+
 .SUFFIXES:
 .SUFFIXES: .c .o
 
-.c.o:
-       $(CHARMC) -c $<
-
 all: $(DEST) $(COMPATLIB) $(DEST2)
 
 $(DEST): $(OBJS) $(HEADERS)
@@ -35,25 +35,9 @@ $(COMPATLIB): $(COMPAT)
 
 headers: $(HEADERS)
 
-compat_uns.o: compat_uns.c
-
-compat_us.o: compat_us.c
-
-compat_funs.o: compat_funs.c
-
-compat_fus.o: compat_fus.c
-
-compat_regmm.o: compat_regmm.c
-
-tcharm.o: tcharm.C $(HEADERS)
-       $(CHARMC) -c tcharm.C
-
 tcharm.decl.h: tcharm.ci
        $(CHARMC) tcharm.ci
 
-tcharmmain.o: tcharmmain.C tcharmmain.decl.h $(HEADERS)
-       $(CHARMC) -c tcharmmain.C
-
 tcharmmain.decl.h: tcharmmain.ci
        $(CHARMC) tcharmmain.ci
 
@@ -62,3 +46,23 @@ clean:
 
 realclean: clean
        rm -f $(HEADERS) $(DEST) $(DEST2) $(COMPATLIB)
+
+DEPENDFILE = Make.depends
+
+include $(DEPENDFILE)
+
+depends:  $(CIFILES)
+       echo "Creating " $(DEPENDFILE) " ...";  \
+       if [ -f $(DEPENDFILE) ]; then \
+           /bin/cp -f $(DEPENDFILE) $(DEPENDFILE).old; \
+        fi; \
+       echo '#generated by make depends' > $(DEPENDFILE); \
+        for i in $(OBJECTS) ; do \
+             SRCFILE=`basename $$i .o`.C ; \
+              found=`find . -name $$SRCFILE`; \
+              [ ! $$found ] && SRCFILE=`basename $$i .o`.c ; \
+              echo "checking dependencies for $$i : $$SRCFILE" ; \
+              g++ -MM -Wno-deprecated -I$(CHARMINC) $$SRCFILE >> $(DEPENDFILE); \
+              echo '   $$(CHARMC) -o '$$i $$SRCFILE >> $(DEPENDFILE) ; \
+        done;
+