working on testing the phonebook

This commit is contained in:
2023-10-05 21:18:21 -07:00
parent 5d2e255bea
commit 82f5e32ddb
5 changed files with 93 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
TARGET := klib.a
TESTS := tlv_test
TESTS := tlv_test phonebook_test
HEADERS := $(wildcard *.h)
SOURCES := $(wildcard *.cc)
OBJS := Arena.o Phonebook.o TLV.o
@@ -19,6 +19,9 @@ $(TARGET): $(OBJS)
tlv_test: tlv_test.o $(TARGET)
$(CXX) -o $@ $(CXXFLAGS) $@.o $(TARGET)
phonebook_test: phonebook_test.o $(TARGET)
$(CXX) -o $@ $(CXXFLAGS) $@.o $(TARGET)
.PHONY: print-%
print-%: ; @echo '$(subst ','\'',$*=$($*))'