Jeremy Kerr | 7ce7e8a | 2016-02-25 10:24:14 +0800 | [diff] [blame] | 1 | |
Patrick Williams | baa1e2a | 2016-06-06 15:01:18 -0500 | [diff] [blame] | 2 | CC ?= gcc |
Patrick Williams | 5a4424a | 2016-06-06 15:01:57 -0500 | [diff] [blame] | 3 | CFLAGS += -Wall -Wextra -Werror |
Jeremy Kerr | 19ed517 | 2016-03-04 16:24:03 +0800 | [diff] [blame] | 4 | INSTALL = install |
| 5 | prefix = /usr/local |
| 6 | sbindir = ${prefix}/sbin |
Jeremy Kerr | 7ce7e8a | 2016-02-25 10:24:14 +0800 | [diff] [blame] | 7 | |
| 8 | all: inarp |
Jeremy Kerr | 19ed517 | 2016-03-04 16:24:03 +0800 | [diff] [blame] | 9 | |
| 10 | .PHONY: clean |
| 11 | clean: |
| 12 | rm -f inarp |
| 13 | |
| 14 | .PHONY: install |
| 15 | install: all |
| 16 | $(INSTALL) -m 0755 -D inarp $(DESTDIR)$(sbindir)/inarp |