Use $(RANLIB) in Makefile
This commit is contained in:
parent
2ee3ae5994
commit
0d0624b855
2
Makefile
2
Makefile
|
@ -143,7 +143,7 @@ $(OBJ): $(HDR) config.mk
|
||||||
|
|
||||||
$(LIB): $(LIBOBJ)
|
$(LIB): $(LIBOBJ)
|
||||||
$(AR) -r -c $@ $?
|
$(AR) -r -c $@ $?
|
||||||
ranlib $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
|
|
|
@ -5,9 +5,10 @@ VERSION = 0.0
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
|
||||||
#CC = gcc
|
|
||||||
#CC = musl-gcc
|
#CC = musl-gcc
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
|
RANLIB = ranlib
|
||||||
|
|
||||||
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE
|
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE
|
||||||
CFLAGS = -std=c99 -Wall -pedantic
|
CFLAGS = -std=c99 -Wall -pedantic
|
||||||
LDFLAGS = -s
|
LDFLAGS = -s
|
||||||
|
|
Loading…
Reference in New Issue
Block a user