Makefile 458 B

12345678910111213141516171819202122232425
  1. snek : main.o field.o ball.o player.o endscreen.o game.o
  2. gcc -o snek main.o field.o ball.o player.o endscreen.o game.o -lncurses -lm
  3. main.o : main.c
  4. gcc -Wall -c main.c
  5. ball.o : ball.c
  6. gcc -Wall -c ball.c
  7. field.o : field.c
  8. gcc -Wall -c field.c
  9. player.o : player.c
  10. gcc -Wall -c player.c
  11. endscreen.o : endscreen.c
  12. gcc -Wall -c endscreen.c
  13. game.o : game.c
  14. gcc -Wall -c game.c
  15. clean:
  16. rm snek main.o field.o ball.o player.o game.o endscreen.o