Use $(RANLIB) in Makefile

This commit is contained in:
sin 2014-11-17 12:22:53 +00:00
parent 2ee3ae5994
commit 0d0624b855
2 changed files with 3 additions and 2 deletions

View File

@ -143,7 +143,7 @@ $(OBJ): $(HDR) config.mk
$(LIB): $(LIBOBJ)
$(AR) -r -c $@ $?
ranlib $@
$(RANLIB) $@
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin

View File

@ -5,9 +5,10 @@ VERSION = 0.0
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
#CC = gcc
#CC = musl-gcc
LD = $(CC)
RANLIB = ranlib
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE
CFLAGS = -std=c99 -Wall -pedantic
LDFLAGS = -s