-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (19 loc) · 879 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CC = gcc
EXEC = KnightTour
KnightTour:./src/main.o ./src/generate.o ./src/pathway.o ./src/knighttour.o ./src/menu.o
$(CC) -o $(EXEC) ./src/main.o ./src/generate.o ./src/pathway.o ./src/knighttour.o ./src/menu.o -std=c99
./$(EXEC)
./src/main.o:./src/main.c ./headers/generate.h ./headers/pathway.h ./headers/knighttour.h ./headers/menu.h
$(CC) -o ./src/main.o -c ./src/main.c -std=c99
./src/generate.o:./src/generate.c ./headers/generate.h
$(CC) -o ./src/generate.o -c ./src/generate.c -std=c99
./src/pathway.o:./src/pathway.c ./headers/pathway.h
$(CC) -o ./src/pathway.o -c ./src/pathway.c -std=c99
./src/knighttour.o:./src/knighttour.c ./headers/knighttour.h
$(CC) -o ./src/knighttour.o -c ./src/knighttour.c -std=c99
./src/menu.o:./src/menu.c ./headers/menu.h
$(CC) -o ./src/menu.o -c ./src/menu.c -std=c99
clean:
rm -rf ./src/*.o
mrproper:clean
rm -rf $(EXEC)