Merge branch 'charm' of charmgit:charm into harshitha/adaptive_lb
[charm.git] / src / libs / ck-libs / cache / Makefile
1 include ../common.mk
2
3 LIB = libmoduleCkCache.a
4 LIBOBJ = CkCache.o
5
6 HEADERS = $(CDIR)/include/CkCache.decl.h \
7           $(CDIR)/include/CkCache.def.h \
8           $(CDIR)/include/CkCache.h 
9 LIBDEST =  $(LIBDIR)/$(LIB)
10
11 CIFILES = CkCache.ci
12
13 all: $(LIBDEST) $(HEADERS)
14
15 $(LIBDEST): $(LIBOBJ)
16         $(CHARMC) -o $(LIBDEST) $(LIBOBJ) 
17
18 CkCache.def.h CkCache.decl.h: INTERFACE
19
20 INTERFACE: $(CIFILES)
21         $(CHARMC) -E -c CkCache.ci
22         touch INTERFACE
23
24 CkCache.o: CkCache.C $(HEADERS)
25         $(CHARMC) -I../../.. -c -o CkCache.o CkCache.C
26
27 clean:
28         rm -f conv-host *.o *.decl.h *.def.h core  $(LIB) INTERFACE
29
30 realclean: clean
31         rm -f $(LIBDEST) $(HEADERS)