Skip to content

Commit

Permalink
ioping: update makefile
Browse files Browse the repository at this point in the history
- strip binaries at install
- move -lm from LDFLAGS to LIBS

Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
  • Loading branch information
koct9i committed Aug 25, 2012
1 parent 08daffd commit af17472
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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
Expand Down Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit af17472

Please sign in to comment.