From f6c6f709fed4914a41e3928ad728a076a842bb29 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Thu, 22 Apr 2021 14:02:12 -0400 Subject: initial commit --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..47b26c7 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +ADDITIONAL_FLAGS=$(CFLAGS) -Wall -Wextra -Wshadow -Wpedantic -pedantic -std=gnu11 -Wno-unused-function +DEBUG_CFLAGS=$(ADDITIONAL_FLAGS) -O0 -g -DDEBUG=1 -fsanitize=undefined -fno-sanitize-recover=undefined +RELEASE_CFLAGS=$(ADDITIONAL_FLAGS) -O3 -s +LIBS=-lGL -lSDL2 -I/usr/include/SDL2 -lm +cropper: *.[ch] + $(CC) $(DEBUG_CFLAGS) -o cropper main.c $(LIBS) +release: *.[ch] + $(CC) $(RELEASE_CFLAGS) -o cropper main.c $(LIBS) -- cgit v1.2.3