2022-01-14 01:01:07 +00:00
|
|
|
CC = gcc
|
2022-01-19 16:41:10 +00:00
|
|
|
CFLAGS = -g -Wall -Werror -std=c99
|
2022-01-14 01:01:07 +00:00
|
|
|
|
|
|
|
all: program
|
|
|
|
|
|
|
|
program: maze.o main.o
|
|
|
|
$(CC) $(CFLAGS) maze.o main.o -o program
|
|
|
|
|
|
|
|
maze.o: maze.c
|
|
|
|
$(CC) $(CFLAGS) -c maze.c -o maze.o
|
|
|
|
|
|
|
|
main.o: main.c
|
|
|
|
$(CC) $(CFLAGS) -c main.c -o main.o
|
|
|
|
|
|
|
|
clean:
|
2022-01-19 16:41:10 +00:00
|
|
|
rm -rf program *.o *.exe *.exe.stackdump
|