forked from ParRes/Kernels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.common
58 lines (40 loc) · 1.62 KB
/
make.common
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
CFLAGS=$(OPTFLAGS) $(PROG_ENV)
INCLUDEPATHSPLUS=$(INCLUDEPATHS) -I../../include
COMMON=../../common
usage:
@echo "Usage: type \"make $(PROGRAM)\" to build executable"
@echo " \"make clean\" to remove objects and executables"
@echo -e $(OPTIONSSTRING)
ifeq ($(PROG_ENV),-DCHARMXX)
$(PROGRAM).C: $(PROGRAM).decl.h
endif
$(PROGRAM):$(OBJS)
$(CLINKER) -o $(PROGRAM) $(LIBPATHS) $(CFLAGS) $(OBJS) $(EXTOBJS) $(LIBS)
ifeq ($(PROG_ENV),-DCHARMXX)
$(PROGRAM).decl.h: $(PROGRAM).ci
$(CITRANSLATOR) $(PROGRAM).ci
endif
timestep.o: timestep.c
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
wtime.o:$(COMMON)/wtime.c
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
random_draw.o:$(COMMON)/random_draw.c
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
MPI_bail_out.o:$(COMMON)/MPI_bail_out.c
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
FENIX_bail_out.o:$(COMMON)/FENIX_bail_out.c
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
SHMEM_bail_out.o:$(COMMON)/SHMEM_bail_out.c
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
OPENMP_bail_out.o:$(COMMON)/OPENMP_bail_out.c
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
.c.o:
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
.cpp.o:
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
.upc.o:
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
.C.o: $(CHARMDEP)
$(CCOMPILER) $(CFLAGS) $(TUNEFLAGS) $(INCLUDEPATHSPLUS) -c $<
clean:
rm -f $(OBJS) $(PROGRAM) *.optrpt *~ charmrun stats.json $(PROGRAM).decl.h $(PROGRAM).def.h