Commit 70a194b7 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

* Makefile: add DESTDIR support

Needed mostly for distro vendors (.spec writers etc.)

* Makefile: do not strip when installing
Otherwise distros could not produce debuginfo packages

* Makefile: add BINDIR
Signed-off-by: default avatarKir Kolyshkin <kir@openvz.org>
parent 91cf008a
CFLAGS=-std=c99 -g -Wall -Wextra -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
LDFLAGS=
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
all: ioping
......@@ -8,7 +9,8 @@ clean:
$(RM) -f ioping.o ioping
install: ioping
install -m 0755 -s ioping ${PREFIX}/bin
mkdir -p $(DESTDIR)$(BINDIR)
install -m 0755 ioping $(DESTDIR)$(BINDIR)
ioping.o: ioping.c
$(CC) -c -o $@ $^ ${CFLAGS}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment