FlappyBird/Makefile

10 lines
285 B
Makefile

flappy: main.o game.o bird.o pipe.o
gcc -o flappy main.o game.o bird.o pipe.o -lcurses
main.o: main.c game.h config.h
gcc -c main.c
game.o: game.c game.h bird.h pipe.h config.h
gcc -c game.c
bird.o: bird.c bird.h config.h
gcc -c bird.c
pipe.o: pipe.c pipe.h config.h
gcc -c pipe.c