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) |