From 562c07f32366687dcb032b9a2628b9c85a01432e Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 7 Oct 2024 22:12:54 +0200 Subject: Made Makefile a bit cleaner --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9aebb9c..41533ef 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ CC := cc CFLAGS := -Wall -Wextra -Wshadow -Wunused -Wswitch-enum -Wpedantic -Wundef LDFLAGS := -lm -ldl -lpthread -lasound +CFILES := main.c minisdl_audio.c +PROG := ttdaw -ttdaw: main.c - $(CC) $(CFLAGS) -o ttdaw main.c minisdl_audio.c $(LDFLAGS) +$(PROG): main.c + $(CC) $(CFLAGS) -o $(PROG) $(CFILES) $(LDFLAGS) -- cgit v1.2.3