From ad22993557296b02bc0c947cb3bb6247fac8f47f Mon Sep 17 00:00:00 2001 From: banana Date: Fri, 22 Mar 2024 13:46:36 -0700 Subject: Initial commit --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..67d4d0f --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +CC=gcc +CFLAGS=-Wall +LFLAGS=-lSDL2 -lSDL2_mixer -lSDL2_image +OBJS= main.o tennis.o input.o initialize.o game_time.o sound.o + +tennis: $(OBJS) + $(CC) $(LFLAGS) $^ -o $@ + +$(OBJ):%o:main.c tennis.c input.c initialize.c game_time.c sound.c structs.h constants.h + $(CC) $(CFLAGS) $^ -o $@ + +.PHONY: +clean: + rm ./*.o tennis -- cgit v1.2.3