makefile 1.12 KB
Newer Older
Valentin MEUNIER's avatar
Valentin MEUNIER committed
1
2
3
4
CC= gcc
OPT  = -c -Wextra -Wall -g
SDL2 = -lSDL2 -lSDL2_gfx -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lSDL2_net -lm

Valentin MEUNIER's avatar
Valentin MEUNIER committed
5
6
prog : kruskal.o graph_aretes_tab.o partition.o tas.o main.o affichage_image.o dijkstra.o texture_perso.o colision.o DFS.o affichage_txt.o
	$(CC)  kruskal.o graph_aretes_tab.o partition.o tas.o main.o affichage_image.o dijkstra.o texture_perso.o colision.o DFS.o affichage_txt.o $(SDL2) -o prog
Valentin MEUNIER's avatar
Valentin MEUNIER committed
7
8
9
10

main.o : main.c main.h
	$(CC) $(OPT) main.c

Valentin MEUNIER's avatar
le    
Valentin MEUNIER committed
11
12
13
14
15
16
dijkstra.o : dijkstra.c dijkstra.h
	$(CC) $(OPT) dijkstra.c

affichage_image.o : affichage_image.c affichage_image.h
	$(CC) $(OPT) affichage_image.c

Valentin MEUNIER's avatar
Valentin MEUNIER committed
17
18
19
20
21
22
23
24
25
26
27
28
graph_aretes_tab.o: graph_aretes_tab.c graph_aretes_tab.h
	$(CC) $(OPT) graph_aretes_tab.c

kruskal.o : kruskal.c kruskal.h
	$(CC) $(OPT) kruskal.c 

partition.o : partition.c partition.h
	$(CC) $(OPT) partition.c 

tas.o : tas.c tas.h
	$(CC) $(OPT) tas.c 

Valentin MEUNIER's avatar
le    
Valentin MEUNIER committed
29
30
texture_perso.o : texture_perso.c texture_perso.h
	$(CC) $(OPT) texture_perso.c
Valentin MEUNIER's avatar
Valentin MEUNIER committed
31

Valentin MEUNIER's avatar
le    
Valentin MEUNIER committed
32
33
colision.o : colision.c colision.h
	$(CC) $(OPT) colision.c
Valentin MEUNIER's avatar
Valentin MEUNIER committed
34

Valentin MEUNIER's avatar
le    
Valentin MEUNIER committed
35
36
DFS.o : DFS.c DFS.h
	$(CC) $(OPT) DFS.c
Valentin MEUNIER's avatar
Valentin MEUNIER committed
37

Valentin MEUNIER's avatar
Valentin MEUNIER committed
38
39
40
affichage_txt.o : affichage_txt.c affichage_txt.h
	$(CC) $(OPT) affichage_txt.c 

Valentin MEUNIER's avatar
Valentin MEUNIER committed
41
42
clear :
	rm *.o