summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbanana <delgadillo.tyler@gmail.com>2024-03-22 13:46:36 -0700
committerbanana <delgadillo.tyler@gmail.com>2024-03-22 13:46:36 -0700
commitad22993557296b02bc0c947cb3bb6247fac8f47f (patch)
tree2c83ab589acab8a5074583d625d54ec44677e5d0 /Makefile
Initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
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