update makefile to be able to define a target platform prefix

This commit is contained in:
Steffen Jaeckel 2013-04-18 16:38:16 +02:00
parent e28c803e87
commit 12caebdc75

View File

@ -7,6 +7,16 @@ VERSION=0.42.0
CFLAGS += -I./ -Wall -W -Wshadow -Wsign-compare
# Compiler and Linker Names
ifndef PREFIX
PREFIX=
endif
CC=$(PREFIX)gcc
LD=$(PREFIX)ld
AR=$(PREFIX)ar
RANLIB=$(PREFIX)ranlib
ifndef MAKE
MAKE=make
endif
@ -87,7 +97,7 @@ bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o
$(LIBNAME): $(OBJECTS)
$(AR) $(ARFLAGS) $@ $(OBJECTS)
ranlib $@
$(RANLIB) $@
#make a profiled library (takes a while!!!)
#