-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 784 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (16 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: bigmaac.so bigmaac_debug.so preload test_bigmaac test bigmaac_main bigmaac_main_debug
bigmaac_main: bigmaac.c bigmaac.h
gcc -DMAIN bigmaac.c -o bigmaac_main -Wall -g -ldl -fopenmp
bigmaac_main_debug: bigmaac.c bigmaac.h
gcc -DMAIN -DDEBUG bigmaac.c -o bigmaac_main_debug -Wall -g -ldl -fopenmp
bigmaac.so: bigmaac.c bigmaac.h
gcc -shared -fPIC bigmaac.c -o bigmaac.so -ldl -Wall -O3
bigmaac_debug.so: bigmaac.c bigmaac.h
gcc -shared -DDEBUG -fPIC bigmaac.c -o bigmaac_debug.so -ldl -Wall -g
preload: preload.c
gcc -Wall preload.c -o preload
test_bigmaac: test_bigmaac.c bigmaac.h
gcc -Wall test_bigmaac.c -o test_bigmaac -g
test: bigmaac.so test_bigmaac preload
./test_bigmaac > output_without_bigmaac
./preload ./bigmaac.so ./test_bigmaac > output_with_bigmaac