Hila Ben Abraham | e8c22e9 | 2016-10-20 14:30:32 -0500 | [diff] [blame] | 1 | CXX = g++ |
| 2 | CXXFLAGS = -std=c++11 -Wall -Werror `pkg-config --cflags libndn-cxx` |
| 3 | LIBS = `pkg-config --libs libndn-cxx` |
| 4 | DESTDIR ?= /usr/local |
| 5 | |
Eric Newberry | dbf14b1 | 2016-12-27 12:18:53 +0000 | [diff] [blame] | 6 | PROGRAMS = test-nack-consumer test-nexthopfaceid-consumer generate-link-object |
Hila Ben Abraham | e8c22e9 | 2016-10-20 14:30:32 -0500 | [diff] [blame] | 7 | |
| 8 | all: $(PROGRAMS) |
| 9 | |
| 10 | %: %.cpp |
| 11 | $(CXX) $(CXXFLAGS) -o $@ $< $(LIBS) |
| 12 | |
| 13 | clean: |
| 14 | rm -f $(PROGRAMS) |
| 15 | |
| 16 | install: all |
| 17 | cp $(PROGRAMS) $(DESTDIR)/bin/ |
| 18 | |
| 19 | uninstall: |
| 20 | cd $(DESTDIR)/bin && rm -f $(PROGRAMS) |