Skip to content

Commit

Permalink
build: Make installation prefix configurable
Browse files Browse the repository at this point in the history
Nix uses different prefix so we need it configurable.
  • Loading branch information
jtojnar committed Apr 6, 2020
1 parent 3f3fc6a commit 4193457
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
KFVER=131

PREFIX ?= /usr/local
LIBDIR ?= $(PREFIX)/lib

ifeq ($(shell uname -s),Darwin)
SHARED := -Wl,-install_name,libkissfft.dylib -o libkissfft.dylib
else
Expand All @@ -12,7 +15,7 @@ all:
gcc -shared $(SHARED) kiss_fft.o

install: all
cp libkissfft.so /usr/local/lib/
cp libkissfft.so $(LIBDIR)

doc:
@echo "Start by reading the README file. If you want to build and test lots of stuff, do a 'make testall'"
Expand Down

0 comments on commit 4193457

Please sign in to comment.