diff --git a/Makefile b/Makefile index 9aebb9cafbae4438da158f902217b7432e8467de..41533efff934f775a15bb0e1da2ea420561012fb 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)