diff options
author | banana <delgadillo.tyler@gmail.com> | 2024-03-22 13:46:36 -0700 |
---|---|---|
committer | banana <delgadillo.tyler@gmail.com> | 2024-03-22 13:46:36 -0700 |
commit | ad22993557296b02bc0c947cb3bb6247fac8f47f (patch) | |
tree | 2c83ab589acab8a5074583d625d54ec44677e5d0 /Makefile |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
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 |