summary refs log tree commit diff stats
path: root/c/leap/makefile
blob: f34535afd3f368f0f29d88830b33498cdd57593b (plain) (blame)
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
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.speci
s="nv">CFLAGS = -std=c99 CFLAGS += -g CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -pedantic CFLAGS += -Werror CFLAGS += -Wmissing-declarations CFLAGS += -DUNITY_SUPPORT_64 ASANFLAGS = -fsanitize=address ASANFLAGS += -fno-common ASANFLAGS += -fno-omit-frame-pointer .PHONY: test test: tests.out @./tests.out .PHONY: memcheck memcheck: test/*.c src/*.c src/*.h @echo Compiling $@ @$(CC) $(ASANFLAGS) $(CFLAGS) src/*.c test/vendor/unity.c test/*.c -o memcheck.out $(LIBS) @./memcheck.out @echo "Memory check passed" .PHONY: clean clean: rm -rf *.o *.out *.out.dSYM tests.out: test/*.c src/*.c src/*.h @echo Compiling $@ @$(CC) $(CFLAGS) src/*.c test/vendor/unity.c test/*.c -o tests.out $(LIBS)