blob: fa5c8cbc0d88e3e1caadd702e94d14fa3c7498cc [file] [log] [blame]
Hila Ben Abrahame8c22e92016-10-20 14:30:32 -05001CXX = g++
2CXXFLAGS = -std=c++11 -Wall -Werror `pkg-config --cflags libndn-cxx`
3LIBS = `pkg-config --libs libndn-cxx`
4DESTDIR ?= /usr/local
5
6PROGRAMS = test-nack-consumer
7
8all: $(PROGRAMS)
9
10%: %.cpp
11 $(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
12
13clean:
14 rm -f $(PROGRAMS)
15
16install: all
17 cp $(PROGRAMS) $(DESTDIR)/bin/
18
19uninstall:
20 cd $(DESTDIR)/bin && rm -f $(PROGRAMS)