From 4e2f5ec4bf2aec43f184674cfe9831d20e13e34a Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 7 Oct 2024 21:39:00 +0200 Subject: Added basic argument parsing and better Makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3d2191a..9aebb9c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +CC := cc +CFLAGS := -Wall -Wextra -Wshadow -Wunused -Wswitch-enum -Wpedantic -Wundef +LDFLAGS := -lm -ldl -lpthread -lasound + ttdaw: main.c - $(CC) -Wall -o ttdaw main.c minisdl_audio.c -lm -ldl -lpthread -lasound -lm + $(CC) $(CFLAGS) -o ttdaw main.c minisdl_audio.c $(LDFLAGS) -- cgit v1.2.3