Commit af17472e authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

ioping: update makefile

- strip binaries at install
- move -lm from LDFLAGS to LIBS
Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
parent 08daffd3
CFLAGS+=-std=gnu99 -g -Wall -Wextra -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
LDFLAGS=-lm
LIBS=-lm
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MAN1DIR=$(PREFIX)/share/man/man1
......@@ -38,7 +38,7 @@ clean:
install: $(BINS) $(MANS)
mkdir -p $(DESTDIR)$(BINDIR)
install -m 0755 $(BINS) $(DESTDIR)$(BINDIR)
install -s -m 0755 $(BINS) $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(MAN1DIR)
install -m 644 $(MANS) $(DESTDIR)$(MAN1DIR)
......@@ -55,7 +55,7 @@ install: $(BINS) $(MANS)
MANWIDTH=80 man ./$< | col -b > $@
$(BINS): $(OBJS)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
dist: version $(DISTFILES)
tar -cz --transform='s,^,$(DISTDIR)/,S' $^ -f $(DISTDIR).tar.gz
......
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