diff --git a/final/Makefile b/final/Makefile index a46a6d8..eabf328 100644 --- a/final/Makefile +++ b/final/Makefile @@ -3,12 +3,27 @@ CFLAGS = -Wall -Wextra -std=c99 all: game -game: game.c world.o - $(CC) $(CFLAGS) -o game game.c world.o +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 world.o + rm -f game game.o world.o + + + + + + + + + + + +