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