commit 0d0624b85555cac210e3fb17ddc7ae6097e6e45d
Author: sin <[email protected]>
Date: Mon Nov 17 12:22:53 2014 +0000
Use $(RANLIB) in Makefile
diff --git a/Makefile b/Makefile
index b0202ef..bf23e69 100644
--- a/Makefile
+++ b/Makefile
@@ -143,7 +143,7 @@ $(OBJ): $(HDR) config.mk
$(LIB): $(LIBOBJ)
$(AR) -r -c $@ $?
- ranlib $@
+ $(RANLIB) $@
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
diff --git a/config.mk b/config.mk
index a915eb3..615bbdb 100644
--- a/config.mk
+++ b/config.mk
@@ -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