-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSPKdTest.make
26 lines (22 loc) · 873 Bytes
/
SPKdTest.make
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
CC = gcc
OBJS = kd_unit_test.o SPKDArray.o SPPoint.o SPLogger.o SPKDTree.o SPBPriorityQueue.o
EXEC = kd_unit_test
TESTS_DIR = ./unit_tests
COMP_FLAG = -std=c99 -Wall -Wextra \
-Werror -pedantic-errors
$(EXEC): $(OBJS)
$(CC) $(OBJS) -o $@
kd_unit_test.o: $(TESTS_DIR)/kd_unit_test.c $(TESTS_DIR)/unit_test_util.h SPKDArray.h SPPoint.h SPKDTree.h
$(CC) $(COMP_FLAG) -c $(TESTS_DIR)/$*.c
SPPoint.o: SPPoint.c SPPoint.h
$(CC) $(C_COMP_FLAG) -c $*.c
SPBPriorityQueue.o: SPBPriorityQueue.c SPBPriorityQueue.h
$(CC) $(C_COMP_FLAG) -c $*.c
SPKDArray.o: SPKDArray.c SPKDArray.h SPPoint.h SPConfig.h SPLogger.h
$(CC) $(C_COMP_FLAG) -c $*.c
SPKDTree.o: SPKDTree.c SPKDTree.h SPKDArray.h SPPoint.h SPConfig.h SPBPriorityQueue.h SPLogger.h
$(CC) $(C_COMP_FLAG) -c $*.c
SPConfig.o: SPConfig.c SPConfig.h SPLogger.h
$(CC) $(C_COMP_FLAG) -c $*.c
clean:
rm -f $(OBJS) $(EXEC)