16 lines
270 B
Makefile
16 lines
270 B
Makefile
|
CC = gcc
|
||
|
CFLAGS = -g -Wall -Werror
|
||
|
|
||
|
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:
|
||
|
rm -rf program *.o *.exe *.exe.stackdump
|