-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 908 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CHARMHOME ?= $(HOME)/charm
CHARMC = $(CHARMHOME)/bin/charmc
BINARY = random_access
SRCFILES = $(wildcard *.cc)
OBJFILES = $(SRCFILES:.cc=.o)
CIFILES = $(wildcard *.ci)
HFILES = $(CIFILES:.ci=.decl.h) $(CIFILES:.ci=.def.h)
OPTS ?= -optimize -production
CHARMCFLAGS= $(OPTS)
all: $(BINARY)
random_access: $(OBJFILES)
$(CHARMC) $(CHARMCFLAGS) -language charm++ -o $@ $+ -module NDMeshStreamer
.SECONDARY: $(patsubst %.cc,%.decl.h,$(wildcard *.cc))
.SECONDARY: $(patsubst %.cc,%.def.h,$(wildcard *.cc))
%.def.h %.decl.h: %.ci
$(CHARMC) $(CHARMCFLAGS) $<
%.o: %.cc
%.o: %.cc $(HFILES)
$(CHARMC) $(CHARMCFLAGS) $<
test: $(BINARY)
./charmrun +p4 ++local ./random_access 14
testprj:random_access.prj
poe ./random_access.prj 20 1 +traceroot /u/home/ac/yanhuas/git/HPCC/charmversion_messages/projections_result -llfile jobpoelapi.cmd +gz-trace
clean:
rm -f *.o *.decl.h *.def.h $(BINARY) charmrun*