blob: 67d4d0f7139bea3f6ccc7fbbb940d5a9156bd531 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|