Mirror changes to sparseContiguousReducer's Makefile to enable make -j
authorPhil Miller <mille121@illinois.edu>
Thu, 2 Oct 2008 18:36:40 +0000 (18:36 +0000)
committerPhil Miller <mille121@illinois.edu>
Thu, 2 Oct 2008 18:36:40 +0000 (18:36 +0000)
src/libs/ck-libs/cache/Makefile

index 5a265e2b367aa0d0961970effa9f2240b85121d8..5d17c3cca09e59dd7ee17905bb4b3216cf39b2c7 100644 (file)
@@ -5,24 +5,25 @@ LIB = libmoduleCkCache.a
 LIBOBJ = CkCache.o
 
 HEADERS = $(CDIR)/include/CkCache.decl.h \
+          $(CDIR)/include/CkCache.def.h \
           $(CDIR)/include/CkCache.h 
 LIBDEST =  $(CDIR)/lib/$(LIB)
 
 CIFILES = CkCache.ci
 
-all: $(LIBDEST)
+all: $(LIBDEST) $(HEADERS)
 
-$(HEADERS): CkCache.decl.h CkCache.h 
-       /bin/cp CkCache.decl.h $(CDIR)/include
-       /bin/cp CkCache.h $(CDIR)/include
+$(CDIR)/include/%.h: %.h
+       /bin/cp $< $@
 
 $(LIBDEST): $(LIBOBJ)
        $(CHARMC) -o $(LIBDEST) $(LIBOBJ) 
 
-CkCache.def.h: CkCache.decl.h
+CkCache.def.h CkCache.decl.h: INTERFACE
 
-CkCache.decl.h : CkCache.ci $(CDIR)/bin/charmxi
+INTERFACE: $(CIFILES)
        $(CHARMC) -c CkCache.ci
+       touch INTERFACE
 
 CkCache.o: CkCache.C $(HEADERS)
        $(CHARMC) -c -o CkCache.o CkCache.C
@@ -30,3 +31,5 @@ CkCache.o: CkCache.C $(HEADERS)
 clean:
        rm -f conv-host *.o *.decl.h *.def.h core  $(LIB)
 
+realclean: clean
+       rm -f $(LIBDEST) $(HEADERS)
\ No newline at end of file