Add configure script and proper install target
This commit is contained in:
parent
ae665c378d
commit
ed4ef3a108
2 changed files with 40 additions and 6 deletions
18
Makefile
18
Makefile
|
@ -1,9 +1,15 @@
|
|||
all: getpeername
|
||||
include config.mak
|
||||
|
||||
# requires busybox nc
|
||||
test:
|
||||
nc -s 127.1.33.7 -l -p 1234 -e ./getpeername &
|
||||
nc -w 1 127.1.33.7 1234
|
||||
PREFIX ?=
|
||||
EXEC_PREFIX ?= $(PREFIX)
|
||||
BINDIR ?= $(EXEC_PREFIX)/bin
|
||||
|
||||
PROGS = getpeername
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
install: all
|
||||
install -D -m 0755 $(PROGS) $(DESTDIR)$(BINDIR)
|
||||
|
||||
clean:
|
||||
rm getpeername
|
||||
rm -f $(PROGS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue