-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (17 loc) · 841 Bytes
/
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
CFLAGS=-Wall -Wextra -O2 -fgcse-after-reload -mtune=native -march=native
BUFRADIXSORTFILES=bufradixsort.c bufradixsort.h bufradixsort_common.h bufradixsort_config.h bufradixsort_config_verify.h bufradixsort_pp.h bufradixsort_pp_primrec.h bufradixsort_histo.h bufradixsort_relocate.h
all: test bench
bench: bench.o bufradixsort.o
g++ -fopenmp $^ -o $@
bench.o: bench.cpp bufradixsort.h
g++ -std=c++11 $(CFLAGS) -fopenmp -c bench.cpp -o $@
test: test.o bufradixsort.o
g++ -fopenmp $^ -o $@
test.o: test.cpp bufradixsort.h
g++ -std=c++11 $(CFLAGS) -fopenmp -c test.cpp -o $@ -g
bufradixsortdebug.o: $(BUFRADIXSORTFILES)
gcc -std=c99 $(CFLAGS) -fopenmp -c bufradixsort.c -o $@ -g -DBUFRADIXSORT_DEBUG
bufradixsort.o: $(BUFRADIXSORTFILES)
gcc -std=c99 $(CFLAGS) -fopenmp -c bufradixsort.c -o $@
.PHONY clean:
rm -f *.o bench test