File: Makefile.MIC.icc

package info (click to toggle)
examl 3.0.22-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,120 kB
  • sloc: ansic: 27,325; makefile: 73; sh: 48
file content (56 lines) | stat: -rw-r--r-- 2,731 bytes parent folder | download | duplicates (4)
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
# Makefile August 2006 by Alexandros Stamatakis
# Makefile cleanup October 2006, Courtesy of Peter Cordes <peter@cordes.ca>

CC = mpicc

MICFLAGS = -D__MIC_NATIVE -mmic -qopt-streaming-cache-evict=0 -qopenmp -D_USE_OMP #-D_PROFILE_MPI
COMMON_FLAGS = -std=c99 -D_OPTIMIZED_FUNCTIONS -D_GNU_SOURCE -fomit-frame-pointer -funroll-loops -D_USE_ALLREDUCE  $(MICFLAGS) # -Wall   -Wredundant-decls  -Wreturn-type  -Wswitch-default -Wunused-value -Wimplicit  -Wimplicit-function-declaration  -Wimplicit-int -Wimport  -Wunused  -Wunused-function  -Wunused-label -Wno-int-to-pointer-cast -Wbad-function-cast  -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs  -Wold-style-definition -Wstrict-prototypes -Wpointer-sign -Wextra -Wredundant-decls -Wunused -Wunused-function -Wunused-parameter -Wunused-value  -Wunused-variable -Wformat  -Wformat-nonliteral -Wparentheses -Wsequence-point -Wuninitialized -Wundef -Wbad-function-cast    -Wno-unused-parameter

OPT_FLAG_1 = -O1
OPT_FLAG_2 = -O2

CFLAGS = $(COMMON_FLAGS) $(OPT_FLAG_2)

LIBRARIES = -lm -mmic -openmp

RM = rm -f

objs    = axml.o optimizeModel.o trash.o searchAlgo.o topologies.o treeIO.o models.o evaluatePartialGenericSpecial.o evaluateGenericSpecial.o newviewGenericSpecial.o makenewzGenericSpecial.o bipartitionList.o restartHashTable.o byteFile.o partitionAssignment.o communication.o mic_native_dna.o mic_native_aa.o quartets.o

all : clean examl-MIC

GLOBAL_DEPS = axml.h globalVariables.h

examl-MIC : $(objs)
	$(CC) -o examl-MIC $(objs) $(LIBRARIES)

models.o : models.c $(GLOBAL_DEPS)
	$(CC) $(COMMON_FLAGS) $(OPT_FLAG_1) -c -o models.o models.c

partitionAssignment.o: partitionAssignment.o $(GLOBAL_DEPS)
	$(CC) $(COMMON_FLAGS) $(OPT_FLAG_1) -c -o partitionAssignment.o partitionAssignment.c

bipartitionList.o : bipartitionList.c $(GLOBAL_DEPS)
evaluatePartialSpecialGeneric.o : evaluatePartialSpecialGeneric.c $(GLOBAL_DEPS)
optimizeModel.o : optimizeModel.c $(GLOBAL_DEPS)
trash.o : trash.c $(GLOBAL_DEPS)
axml.o : axml.c $(GLOBAL_DEPS)
searchAlgo.o : searchAlgo.c $(GLOBAL_DEPS)
topologies.o : topologies.c $(GLOBAL_DEPS)
treeIO.o : treeIO.c $(GLOBAL_DEPS)

evaluatePartialGenericSpecial.o : evaluatePartialGenericSpecial.c $(GLOBAL_DEPS)
evaluateGenericSpecial.o : evaluateGenericSpecial.c $(GLOBAL_DEPS)
newviewGenericSpecial.o : newviewGenericSpecial.c $(GLOBAL_DEPS)
makenewzGenericSpecial.o : makenewzGenericSpecial.c $(GLOBAL_DEPS)
restartHashTable.o : restartHashTable.c $(GLOBAL_DEPS)
byteFile.o : byteFile.c
communication.o : communication.c $(GLOBAL_DEPS) 
mic_native_dna.o : mic_native_dna.c $(GLOBAL_DEPS)
mic_native_aa.o : mic_native_aa.c $(GLOBAL_DEPS)
quartets.o : quartets.c $(GLOBAL_DEPS)

clean : 
	$(RM) *.o examl-MIC

dev : examl-MIC