update makefile to allow LD and CC to overwrite compiler

parent ea949586
# Makefile for librinterpolate
# we want to use gcc to build and link, but use CC and LD
# if they are defined
CC ?= $(CC)
CC ?= gcc
LD := gcc
LD ?= $(LD)
LD ?= gcc
LD_LIBRARY_PATH ?= /home/izzard/lib:/home/izzard/svn/bin/lib
MAKE ?= /usr/bin/make
......@@ -21,7 +25,7 @@ endif
.PHONY: clean install
libriterate: $(OBJECTS)
librinterpolate: $(OBJECTS)
# make shared library
$(LD) $(CFLAGS) -shared -Wl,-soname,librinterpolate.so,--export-dynamic -fvisibility=hidden -o librinterpolate.so $(LDFLAGS) $(LIBS) $(OBJECTS)
# make static library
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment