NDMeshStreamer: checking in a working version of the array interface
[charm.git] / src / libs / ck-libs / NDMeshStreamer / Makefile
1 CDIR=../../../..
2 CHARMC=$(CDIR)/bin/charmc $(OPTS)
3
4 HEADERS=NDMeshStreamer.h DataItemTypes.h NDMeshStreamer.decl.h NDMeshStreamer.def.h
5 OBJS=NDMeshStreamer.o
6 LIB=libmoduleNDMeshStreamer
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 NDMeshStreamer.o: NDMeshStreamer.C NDMeshStreamer.decl.h $(HEADERS)
28         $(CHARMC) -c NDMeshStreamer.C
29
30 NDMeshStreamer.decl.h NDMeshStreamer.def.h: NDMeshStreamer.ci
31         $(CHARMC) NDMeshStreamer.ci
32
33 clean: 
34         -rm -fr *.o *~ *.decl.h *.def.h gmon.out $(DEST) conv-host charmrun headers