-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 789 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
28
29
30
31
32
33
34
35
36
37
38
39
40
CC=gcc
EXEC=Laby
CFLAGS=-ansi -Wall -pedantic
LDFLAGS=-lMLV
OBJ=./Main.o ./Laby.o ./UnionFind.o ./Mur.o ./Affiche.o ./Resolution.o
$(EXEC): $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
./Main.o: ./include/Laby.h ./include/UnionFind.h ./include/Mur.h ./include/Affiche.h ./include/Resolution.h
./Laby.o: ./include/Laby.h
./UnionFind.o: ./include/UnionFind.h ./include/Laby.h
./Mur.o: ./include/Mur.h ./include/Laby.h ./include/UnionFind.h
./Affiche.o: ./include/Affiche.h ./include/Laby.h
./Resolution.o: ./include/Resolution.h ./include/Laby.h
%.o: ./src/%.c
$(CC) -o $@ -c $< $(CFLAGS)
clean:
rm -f *.o
mrproper: clean
rm -f $(EXEC)
install: $(EXEC)
mkdir ./bin
mv $(EXEC) ./bin/
mv *.o ./bin/
make mrproper
uninstall: mrproper
rm -f ./bin/$(EXEC)
rm -f ./bin/*.o
rm -rf ./bin