pvjc22/a2/Makefile

15 lines
191 B
Makefile
Raw Permalink Normal View History

2022-04-28 12:27:28 +00:00
CFLAGS=-std=c99 -Wall -g
all: game
%.o: %.c
gcc $(CFLAGS) -c $< -o $@
clean:
rm *.o
rm game
game: main.o world.o snake.o
gcc -rdynamic -g main.o world.o snake.o -lcurses -lm -o game