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