X-Git-Url: https://git.llucax.com/z.facultad/75.29/susanita.git/blobdiff_plain/a86e26ae42584c979262de7f6ddefa815ac7c625..3cf8caf3c30d7790d1467466ecd556b399cbb301:/src/Makefile diff --git a/src/Makefile b/src/Makefile index d31fe56..c38ddd8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -10,19 +10,32 @@ endif target = tdatp2 -objetos = persona.o susanita.o galeshapley.o parser.o main.o +objetos = persona.o hashtable.o susanita.o galeshapley.o backtracking.o parser.o timer.o main.o all: $(target) -persona.o: persona.cpp persona.h +persona_h= persona.h +persona.o: persona.cpp $(persona_h) -susanita.o: susanita.cpp susanita.h persona.h +hashtable_h= hashtable.h $(persona_h) +hashtable.o: hashtable.cpp $(hashtable_h) -galeshapley.o: galeshapley.cpp galeshapley.h susanita.h persona.h +susanita_h= susanita.h $(hashtable_h) +susanita.o: susanita.cpp $(susanita_h) -parser.o: parser.cpp parser.h persona.h susanita.h +galeshapley_h= galeshapley.h $(susanita_h) +galeshapley.o: galeshapley.cpp $(galeshapley_h) -main.o: main.cpp parser.h susanita.h galeshapley.h +backtracking_h= backtracking.h $(susanita_h) +backtracking.o: backtracking.cpp $(backtracking_h) + +parser_h= parser.h $(susanita_h) +parser.o: parser.cpp $(parser_h) + +timer_h= timer.h +timer.o: timer.cpp $(timer_h) + +main.o: main.cpp $(timer_h) $(parser_h) $(galeshapley_h) $(bactraking_h) $(target): $(objetos) $(CXX) $(LDFLAGS) $(objetos) $(LOADLIBES) $(LDLIBS) -o $(target)