From 2111575e3c20fdf6f737d24e40721cb5a24ab9ae Mon Sep 17 00:00:00 2001 From: Trumeet Date: Wed, 16 Feb 2022 14:43:35 -0800 Subject: Add ReapperRun --- ReapperRun/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ReapperRun/Makefile (limited to 'ReapperRun/Makefile') 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 -- cgit v1.2.3