make MeshStreamer a ck-lib library
[charm.git] / src / libs / ck-libs / MeshStreamer / Makefile
1 CDIR=../../../..
2 CHARMC=$(CDIR)/bin/charmc $(OPTS)
3
4 HEADERS=MeshStreamer.h MeshStreamer.decl.h MeshStreamer.def.h
5 OBJS=MeshStreamer.o
6 LIB=libmoduleMeshStreamer
7
8 LIBDIR=$(CDIR)/lib
9 DEST=$(LIBDIR)/$(LIB).a
10
11 .SUFFIXES:
12 .SUFFIXES: .C .o
13                                                                                 
14 .C.o:
15         $(CHARMC) -c $<
16
17 all: $(DEST)
18
19 $(DEST): $(OBJS) headers
20         $(CHARMC) $(OBJS) -o $@
21         #cp $(LIB).dep $(LIBDIR)/$(LIB).dep
22
23 headers: $(HEADERS)
24         cp $(HEADERS) $(CDIR)/include/
25         touch headers
26
27 MeshStreamer.o: MeshStreamer.C MeshStreamer.decl.h $(HEADERS)
28         $(CHARMC) -c MeshStreamer.C
29
30 MeshStreamer.decl.h MeshStreamer.def.h: MeshStreamer.ci
31         $(CHARMC) MeshStreamer.ci
32
33 clean: 
34         -rm -fr *.o *~ *.decl.h *.def.h gmon.out $(DEST) conv-host charmrun headers