# Opciones para el compilador C++. CXXFLAGS = -Wall -ansi -pedantic ifdef DEBUG CXXFLAGS += -ggdb -DDEBUG -fno-inline else CXXFLAGS += -O2 -DNDEBUG endif all: hashtable_test heap_test hashtable_test.o: ../src/persona.h ../src/hashtable.h hashtable_test.cpp hashtable_test: hashtable_test.o ../src/persona.o $(CXX) $(LDFLAGS) hashtable_test.o ../src/persona.o $(LOADLIBES) $(LDLIBS) -o hashtable_test heap_test.o: ../src/heap.h heap_test.cpp heap_test: ../src/heap.h heap_test.o $(CXX) $(LDFLAGS) heap_test.o $(LOADLIBES) $(LDLIBS) -o heap_test # REGLAS ######### .PHONY: clean clean: @$(RM) -fv *.o heap_test hashtable_test