blob: 0d802a46144fb8b3d6ad556e26775958695f292f [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
all: $(PROGRAMS)
%: %.cpp
$(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
clean:
rm -f $(PROGRAMS)
install: all
cp $(PROGRAMS) $(DESTDIR)/bin/
uninstall:
cd $(DESTDIR)/bin && rm -f $(PROGRAMS)