Makefile: Add the ability to build libpri on MacOS for Linux target.
This patch allows to redefine ar and ranlib tool using AR and RANLIB make flags. PRI-188 #close Change-Id: I6554c57b6fab4d73bc752d4d9b878834aa86d1f1
This commit is contained in:
parent
a7a2245b12
commit
9ace221ca0
6
Makefile
6
Makefile
@ -27,6 +27,8 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
GREP=grep
|
GREP=grep
|
||||||
AWK=awk
|
AWK=awk
|
||||||
|
AR=ar
|
||||||
|
RANLIB=ranlib
|
||||||
|
|
||||||
OSARCH=$(shell uname -s)
|
OSARCH=$(shell uname -s)
|
||||||
PROC?=$(shell uname -m)
|
PROC?=$(shell uname -m)
|
||||||
@ -193,8 +195,8 @@ MAKE_DEPS= -MD -MT $@ -MF .$(subst /,_,$@).d -MP
|
|||||||
$(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $<
|
$(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $<
|
||||||
|
|
||||||
$(STATIC_LIBRARY): $(STATIC_OBJS)
|
$(STATIC_LIBRARY): $(STATIC_OBJS)
|
||||||
ar rcs $(STATIC_LIBRARY) $(STATIC_OBJS)
|
$(AR) rcs $(STATIC_LIBRARY) $(STATIC_OBJS)
|
||||||
ranlib $(STATIC_LIBRARY)
|
$(RANLIB) $(STATIC_LIBRARY)
|
||||||
|
|
||||||
$(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
|
$(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
|
||||||
$(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
|
$(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
|
||||||
|
Loading…
Reference in New Issue
Block a user