-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile_htram
39 lines (27 loc) · 1.09 KB
/
Makefile_htram
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
35
36
37
38
all: libhtram_group.a libtramnonsmp.a
.PHONY: htram_group.o tramNonSmp.o
libtramnonsmp.a : tramNonSmp.o
$(CHARMC) tramNonSmp.o -o libtramnonsmp.a -language charm++
tramNonSmp.o : tramNonSmp.C tramNonSmp.def.h tramNonSmp.decl.h
$(CHARMC) -c tramNonSmp.C -o tramNonSmp.o -g
tramNonSmp.def.h tramNonSmp.decl.h : tramNonSmp.ci
$(CHARMC) tramNonSmp.ci
libhtram_group_histo.a: CFLAGS = -DHISTO
libhtram_group_histo.a: htram_group.o
$(CHARMC_SMP) $< -o $@ -language charm++ -O3
libhtram_group_ig.a: CFLAGS = -DIG
libhtram_group_ig.a: htram_group.o
$(CHARMC_SMP) $< -o $@ -language charm++ -O3
libhtram_group_phold.a: CFLAGS = -DPHOLD
libhtram_group_phold.a: htram_group.o
$(CHARMC_SMP) $< -o $@ -language charm++ -O3
htram_group.o: htram_group.C htram_group.def.h htram_group.decl.h
$(CHARMC_SMP) -c htram_group.C -O3 $(CFLAGS)
htram_group.def.h htram_group.decl.h: htram_group.ci
$(CHARMC_SMP) htram_group.ci -O3
test-driver: all
./charmrun +p16 ./driver ++local +setcpuaffinity ++ppn 4
clean-libs:
rm -f *.def.h *.decl.h
rm -f *.log.gz *.projrc *.topo *.sts *.sum
rm libhtram.a libtramnonsmp.a