forked from ARM-software/perf-libs-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (22 loc) · 1.09 KB
/
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
CFLAGS=-O3 -Wno-pointer-to-int-cast
OMPFLAG=-fopenmp
#CC=gcc
CC=armclang
all: Makefile libarmpl-logger.so libarmpl-summarylog.so libarmpl_mp-summarylog.so src/PROTOTYPES tools
libarmpl-logger.so: preload-gen.c src/logging.c src/PROTOTYPES
cd src && ${CC} -fPIC ${CFLAGS} -shared -o ../lib/$@ preload-gen.c logging.c -ldl -DLOGGING
libarmpl-summarylog.so: preload-sumgen.c src/summary.c src/PROTOTYPES
cd src && ${CC} -fPIC ${CFLAGS} -shared -o ../lib/$@ preload-sumgen.c summary.c -ldl
libarmpl_mp-summarylog.so: preload-sumgen.c src/summary.c src/PROTOTYPES
cd src && ${CC} -fPIC ${CFLAGS} ${OMPFLAG} -shared -o ../lib/$@ preload-sumgen.c summary.c -ldl
preload-gen.c: src/makepreload.py src/PROTOTYPES
cd src && python makepreload.py
preload-sumgen.c: src/makepreload-post.py src/PROTOTYPES
cd src && python makepreload-post.py
tools: tools/Process-dgemm
tools/Process-dgemm:
cd tools ; ${CC} -o Process-dgemm process-dgemm.c -O2 -lm
clean:
rm -f src/preload-gen.c src/preload-sumgen.c
rm -f lib/libarmpl-logger.so lib/libarmpl-summarylog.so lib/libarmpl_mp-summarylog.so
rm -f tools/Process-dgemm