From 0d0624b85555cac210e3fb17ddc7ae6097e6e45d Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 17 Nov 2014 12:22:53 +0000 Subject: [PATCH] Use $(RANLIB) in Makefile --- Makefile | 2 +- config.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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