forked from NathanARMANET/quarto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (37 loc) · 785 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
41
42
43
44
45
46
47
48
49
50
51
52
EXEC = bin/quarto
GGDB = -Wall -ggdb
paramC = -std=c++11 -Wall -c
ifeq ($(OS),Windows_NT)
libDir = -L./libs/windows/lib
libFlags = -lsfml-graphics -lsfml-window -lsfml-system
else
libDir = -I./SFML/
libFlags = -lsfml-graphics -lsfml-window -lsfml-system
endif
OBJ = obj/Pion.o \
obj/Case.o \
obj/Grille.o \
obj/IA.o \
obj/Jeu.o \
HEADER = src/Pion.h \
src/Case.h \
src/Grille.h \
src/IA.h \
src/Motif.h
all: $(EXEC)
bin/quarto: main.cpp $(OBJ)
g++ -std=c++11 $(GGBD) main.cpp $(OBJ) -o bin/quarto $(libDir) $(libFlags)
obj/%.o: src/%.cpp $(HEADER)
g++ $(paramC) $< -o $@
ifeq ($(OS),Windows_NT)
clean:
del /f obj\*.o
veryclean: clean
del /f bin\*.exe
else
clean:
rm obj/*.o
veryclean:
rm bin/quarto
make clean
endif