-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.students.mk
More file actions
18 lines (11 loc) · 1.06 KB
/
Makefile.students.mk
File metadata and controls
18 lines (11 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS_seq := -O1 -w -fno-inline-functions -fno-early-inlining -fno-inline-small-functions -fno-tree-loop-optimize
CFLAGS_simd := -O1 -w -fno-inline-functions -fno-early-inlining -fno-inline-small-functions -fno-tree-loop-optimize
CFLAGS_thread := -O1 -w -fno-inline-functions -fno-early-inlining -fno-inline-small-functions -fno-tree-loop-optimize
k_nearest_seq: k_nearest_seq.c simpletimer.c parse.c
$(CC) -o k_nearest_seq k_nearest_seq.c simpletimer.c parse.c $(INCLUDES) $(LIBS) $(CFLAGS_seq) $(LDFLAGS)
k_nearest_simd: k_nearest_simd.c simpletimer.c parse.c vec.c
$(CC) -o k_nearest_simd k_nearest_simd.c simpletimer.c parse.c vec.c $(INCLUDES) $(LIBS) $(CFLAGS_simd) $(LDFLAGS)
k_nearest_simd_book: k_nearest_simd_book.c simpletimer.c parse.c vec.c
$(CC) -o k_nearest_simd_book k_nearest_simd_book.c simpletimer.c parse.c vec.c $(INCLUDES) $(LIBS) $(CFLAGS_simd) $(LDFLAGS)
k_nearest_thread: k_nearest_thread.c simpletimer.c parse.c vec.c
$(CC) -o k_nearest_thread k_nearest_thread.c simpletimer.c parse.c vec.c $(INCLUDES) $(LIBS) $(CFLAGS_thread) $(LDFLAGS)