summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files 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)