diff options
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 |