blob: 6a41305b0bb628303758856e69676481e9dab425 [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
Eric Newberrydbf14b12016-12-27 12:18:53 +00006PROGRAMS = test-nack-consumer test-nexthopfaceid-consumer generate-link-object
Hila Ben Abrahame8c22e92016-10-20 14:30:32 -05007
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)