summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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)