CC = gcc
CFLAGS = -Wall

all: bmgames

life.o: life.c
	$(CC) $(CFLAGS) -c -o life.o life.c

pong.o: pong.c
	$(CC) $(CFLAGS) -c -o pong.o pong.c

snake.o: snake.c
	$(CC) $(CFLAGS) -c -o snake.o snake.c

tetris.o: tetris.c
	$(CC) $(CFLAGS) -c -o tetris.o tetris.c

tron.o: tron.c
	$(CC) $(CFLAGS) -c -o tron.o tron.c

bmgames: life.o pong.o snake.o tetris.o tron.o bmgames.c
	$(CC) $(CFLAGS) -o bmgames life.o pong.o snake.o tetris.o tron.o bmgames.c

clean:
	-rm life.o
	-rm pong.o
	-rm snake.o
	-rm tetris.o
	-rm tron.o
	-rm bmgames

