35 lines
928 B
Makefile
35 lines
928 B
Makefile
GPP = /usr/bin/g++
|
|
OPTS = -Wall -Wno-deprecated -g -std=c++17
|
|
a.out: diccionariocuacs.o cuac.o fecha.o tablahash.o nodo.o arbol.o
|
|
$(GPP) $(OPTS) main.cpp tablahash.o cuac.o fecha.o diccionariocuacs.o nodo.o arbol.o
|
|
|
|
fecha.o: fecha.cpp fecha.hpp
|
|
$(GPP) $(OPTS) -c fecha.cpp
|
|
|
|
cuac.o: cuac.hpp cuac.cpp fecha.hpp
|
|
$(GPP) $(OPTS) -c cuac.cpp
|
|
|
|
tablahash.o: cuac.hpp fecha.hpp tablahash.cpp tablahash.hpp
|
|
$(GPP) $(OPTS) -c tablahash.cpp
|
|
|
|
diccionariocuacs.o: diccionariocuacs.cpp diccionariocuacs.hpp cuac.hpp fecha.hpp tablahash.hpp
|
|
$(GPP) $(OPTS) -c diccionariocuacs.cpp
|
|
|
|
nodo.o: nodo.cpp nodo.hpp fecha.hpp cuac.hpp
|
|
$(GPP) $(OPTS) -c nodo.cpp
|
|
|
|
arbol.o: arbol.cpp nodo.hpp fecha.hpp cuac.hpp
|
|
$(GPP) $(OPTS) -c arbol.cpp
|
|
|
|
clean:
|
|
rm *.o a.out
|
|
|
|
tar: a.out
|
|
tar cvf quacker.tar *.cpp *.hpp Makefile
|
|
tar tvf quacker.tar
|
|
|
|
diff: a.out
|
|
time ./a.out < entrada.in > salida
|
|
sleep 1
|
|
diff salida salida.out -y --suppress-common-lines
|