blob: 62def39390cc19458f1fde255eb7540dd2fe41f2 [file] [log] [blame]
Hila Ben Abrahame8c22e92016-10-20 14:30:32 -05001CXX = g++
Davide Pesavento0e729db2018-05-24 20:24:45 -04002CXXFLAGS = -std=c++14 -Wall -Werror `pkg-config --cflags libndn-cxx`
Hila Ben Abrahame8c22e92016-10-20 14:30:32 -05003LIBS = `pkg-config --libs libndn-cxx`
4DESTDIR ?= /usr/local
5
Eric Newberry608211e2017-11-27 21:59:37 -07006PROGRAMS = test-congestionmark-consumer test-congestionmark-producer test-nack-consumer \
7 test-nexthopfaceid-consumer generate-link-object
Hila Ben Abrahame8c22e92016-10-20 14:30:32 -05008
9all: $(PROGRAMS)
10
11%: %.cpp
12 $(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
13
14clean:
15 rm -f $(PROGRAMS)
16
17install: all
18 cp $(PROGRAMS) $(DESTDIR)/bin/
19
20uninstall:
21 cd $(DESTDIR)/bin && rm -f $(PROGRAMS)