diff options
author | Trumeet <yuuta@yuuta.moe> | 2022-02-16 14:43:35 -0800 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2022-02-16 14:43:35 -0800 |
commit | 2111575e3c20fdf6f737d24e40721cb5a24ab9ae (patch) | |
tree | 3f6c1105237d4b47e6350204968ecd657e75337f /ReapperRun/Makefile | |
parent | 7400fe9569778d8f9b1527f3f801e0364c539161 (diff) | |
download | gists-2111575e3c20fdf6f737d24e40721cb5a24ab9ae.tar gists-2111575e3c20fdf6f737d24e40721cb5a24ab9ae.tar.gz gists-2111575e3c20fdf6f737d24e40721cb5a24ab9ae.tar.bz2 gists-2111575e3c20fdf6f737d24e40721cb5a24ab9ae.zip |
Add ReapperRun
Diffstat (limited to 'ReapperRun/Makefile')
-rw-r--r-- | ReapperRun/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ReapperRun/Makefile b/ReapperRun/Makefile new file mode 100644 index 0000000..8007624 --- /dev/null +++ b/ReapperRun/Makefile @@ -0,0 +1,26 @@ +.POSIX: +CFLAGS += -std=c99 +CFLAGS += -Wall + +release: main + +all: main test + +t: + make all LDFLAGS="-fsanitize=address $(LDFLAGS)" CFLAGS+="-fsanitize=address -O0 -g3 -rdynamic $(CFLAGS)" + ./main ./test + +main: main.o + $(CC) $(LDFLAGS) $(LDLIBS) $^ -o $@ + +main.o: main.c + $(CC) $(CFLAGS) -o $@ -c $< + +test: test.o + $(CC) $(LDFLAGS) $(LDLIBS) $^ -o $@ + +test.o: main.c + $(CC) $(CFLAGS) -o $@ -DTEST -c $< + +clean: + rm -rf main main.o test test.o |