forked from thi-ng/tinyalloc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 687 Bytes
/
Makefile
File metadata and controls
23 lines (17 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: malloc_test stress_test test
malloc_test: malloc_test.cpp tinyalloc.c tinyalloc.h
g++ -Wall -g -o malloc_test malloc_test.cpp tinyalloc.c \
-DTA_USE_STDLIB -Wno-alloc-size-larger-than
stress_test: stress_test.c tinyalloc.c tinyalloc.h
gcc -Wall -g -o stress_test stress_test.c tinyalloc.c -DTA_USE_STDLIB
test: test.c tinyalloc.c tinyalloc.h
gcc -Wall -g -m32 --coverage -c test.c tinyalloc.c -DTA_USE_STDLIB
gcc -Wall -g -m32 --coverage -o test test.o tinyalloc.o
cov: test
./test
gcov tinyalloc.c
run-all: cov malloc_test stress_test
./malloc_test
./stress_test -mem 1048576 -max 32768 -free 50
clean:
rm -f malloc_test stress_test test *.o *.gcda *.gcno *.gcov