blob: 62def39390cc19458f1fde255eb7540dd2fe41f2 [file] [log] [blame]
CXX = g++
CXXFLAGS = -std=c++14 -Wall -Werror `pkg-config --cflags libndn-cxx`
LIBS = `pkg-config --libs libndn-cxx`
DESTDIR ?= /usr/local
PROGRAMS = test-congestionmark-consumer test-congestionmark-producer test-nack-consumer \
test-nexthopfaceid-consumer generate-link-object
all: $(PROGRAMS)
%: %.cpp
$(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
clean:
rm -f $(PROGRAMS)
install: all
cp $(PROGRAMS) $(DESTDIR)/bin/
uninstall:
cd $(DESTDIR)/bin && rm -f $(PROGRAMS)