CC = gcc CFLAGS = -Wall -Wextra -std=c99 all: game game: game.o world.o $(CC) $(CFLAGS) -o game game.o world.o -lncurses game.o: game.c world.h $(CC) $(CFLAGS) -c game.c world.o: world.c world.h $(CC) $(CFLAGS) -c world.c clean: rm -f game game.o world.o