blob: 6a41305b0bb628303758856e69676481e9dab425 [file] [log] [blame]
CXX = g++
CXXFLAGS = -std=c++11 -Wall -Werror `pkg-config --cflags libndn-cxx`
LIBS = `pkg-config --libs libndn-cxx`
DESTDIR ?= /usr/local
PROGRAMS = 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)