-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 736 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 736 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
28
29
CFLAGS = -O2 -Wall -Wextra -g -I.
all: test
test: test_zarena test_zpool test_zdebug test_combined
@echo "\\n-> [ ZARENA ]\\n"
./test_zarena
@echo "\\n-> [ ZPOOL ]\\n"
./test_zpool
@echo "\\n-> [ ZDEBUG ]\\n"
./test_zdebug
@echo "\\n-> [ COMBINED ]\\n"
./test_combined
test_zarena: tests/test_zarena.c zalloc.h
gcc $(CFLAGS) -o test_zarena tests/test_zarena.c
test_zpool: tests/test_zpool.c zalloc.h
gcc $(CFLAGS) -o test_zpool tests/test_zpool.c
test_zdebug: tests/test_zdebug.c zalloc.h
gcc $(CFLAGS) -o test_zdebug tests/test_zdebug.c
# The new target
test_combined: tests/test_combined.c zalloc.h
gcc $(CFLAGS) -o test_combined tests/test_combined.c
clean:
rm -f test_zarena test_zpool test_zdebug test_combined