-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (24 loc) · 1.01 KB
/
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
#Compilador a utilizar:
COMPILER = gcc
#Flags a utilizar:
FLAGS = -O3 -ansi -pedantic
#Programa resultante:
TARGET = wordmorph
wordmorph: main.o file.o list.o ordenador.o libertador.o grafo.o fila_prioritaria.o
$(COMPILER) $(FLAGS) -o wordmorph main.o file.o list.o ordenador.o libertador.o grafo.o fila_prioritaria.o && rm -r *.o
file.o: file.c estrt_const_bibliot.h prototipos.h
$(COMPILER) -c $(FLAGS) file.c
main.o: main.c estrt_const_bibliot.h prototipos.h
$(COMPILER) -c $(FLAGS) main.c
list.o: list.c list.h
$(COMPILER) -c $(FLAGS) list.c
ordenador.o: ordenador.c ordenador.h prototipos.h
$(COMPILER) -c $(FLAGS) ordenador.c
libertador.o: libertador.c estrt_const_bibliot.h prototipos.h
$(COMPILER) -c $(FLAGS) libertador.c
grafo.o: grafo.c estrt_const_bibliot.h prototipos.h
$(COMPILER) -c $(FLAGS) grafo.c
fila_prioritaria.o: fila_prioritaria.c estrt_const_bibliot.h prototipos.h
$(COMPILER) -c $(FLAGS) fila_prioritaria.c
clean:
rm -f *.o core a.out *~ wordmorph