Hila Ben Abraham | e8c22e9 | 2016-10-20 14:30:32 -0500 | [diff] [blame] | 1 | CXX = g++ |
Davide Pesavento | 0e729db | 2018-05-24 20:24:45 -0400 | [diff] [blame^] | 2 | CXXFLAGS = -std=c++14 -Wall -Werror `pkg-config --cflags libndn-cxx` |
Hila Ben Abraham | e8c22e9 | 2016-10-20 14:30:32 -0500 | [diff] [blame] | 3 | LIBS = `pkg-config --libs libndn-cxx` |
| 4 | DESTDIR ?= /usr/local |
| 5 | |
Eric Newberry | 608211e | 2017-11-27 21:59:37 -0700 | [diff] [blame] | 6 | PROGRAMS = test-congestionmark-consumer test-congestionmark-producer test-nack-consumer \ |
| 7 | test-nexthopfaceid-consumer generate-link-object |
Hila Ben Abraham | e8c22e9 | 2016-10-20 14:30:32 -0500 | [diff] [blame] | 8 | |
| 9 | all: $(PROGRAMS) |
| 10 | |
| 11 | %: %.cpp |
| 12 | $(CXX) $(CXXFLAGS) -o $@ $< $(LIBS) |
| 13 | |
| 14 | clean: |
| 15 | rm -f $(PROGRAMS) |
| 16 | |
| 17 | install: all |
| 18 | cp $(PROGRAMS) $(DESTDIR)/bin/ |
| 19 | |
| 20 | uninstall: |
| 21 | cd $(DESTDIR)/bin && rm -f $(PROGRAMS) |