-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 691 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 691 Bytes
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
CC := gcc
#Debug
CFLAGS := -g -Wall -Iinclude -DDEBUG
#CFLAGS := -g -Wall -Iinclude
LDFLAGS := -lm
SRC_FOLDER := src
TEST_FOLDER := test
TEST_GATES_OBJ := $(SRC_FOLDER)/gates.o $(TEST_FOLDER)/test_gates.o
TEST_COMM_OBJ := $(SRC_FOLDER)/communication.o $(SRC_FOLDER)/util_comm.o $(TEST_FOLDER)/test_comm.o
TEST_HUNT_OBJ := $(SRC_FOLDER)/hunt.o $(TEST_FOLDER)/test_hunt.o
all: test_gates test_comm test_hunt
test_gates: $(TEST_GATES_OBJ)
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
test_comm: $(TEST_COMM_OBJ)
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
test_hunt: $(TEST_HUNT_OBJ)
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
.PHONY: clean
clean:
rm -rf $(TEST_GATES_OBJ) $(TEST_COMM_OBJ) $(TEST_HUNT_OBJ)