-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 887 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
CC = gcc
CFLAGS = -g -Wall
TOBJS = \
test/hash.o \
test/header.o \
test/body.o \
test/table.o
UNT = test/unity/unity.c
clean:
@rm -f ./*.o
@echo "cleaned dirs: ./ "
fclean:
@rm -f ./*.o
@rm -f ./test/*.o
@rm -f ./src/*.o
@echo "cleaned dirs: ./ ./test/ ./src/"
test: $(TOBJS)
@echo "\n\n====[ test Hash ]===="
@./test/hash.o
@echo "\n\n====[ test Header ]===="
@./test/header.o
@echo "\\n\n===[ test Body ]===="
@./test/body.o
@echo "\\n\n===[ test Table(Application) ]===="
@./test/table.o
test/hash.o:
@$(CC) $(CFLAGS) $(UNT) src/hash.c test/hash.c -o test/hash.o
test/header.o:
@$(CC) $(CFLAGS) $(UNT) src/header.c test/header.c -o test/header.o
test/body.o:
@$(CC) $(CFLAGS) $(UNT) src/body.c test/body.c -o test/body.o
test/table.o:
@$(CC) $(CFLAGS) $(UNT) src/table.c \
src/body.c src/header.c src/hash.c \
test/table.c -o test/table.o