--- Makefile.orig 2018-08-26 13:35:37 UTC +++ Makefile @@ -20,10 +20,10 @@ # Modify as required. # -SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') +#SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') PREFIX ?= /usr/local INCDIR ?= $(PREFIX)/include -LIBDIR ?= $(PREFIX)/lib$(SUFFIX) +LIBDIR ?= $(PREFIX)/lib MAJVERS = 4 @@ -34,7 +34,7 @@ VERSION = $(MAJVERS).$(MINVERS) CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS CPPFLAGS += -DENABLE_VECTOR_MODE CXXFLAGS += -fPIC -Wall -ffast-math -funroll-loops -O2 -CXXFLAGS += -march=native +#CXXFLAGS += -march=native LDLFAGS += LDLIBS += @@ -46,6 +46,7 @@ ZITA-CONVOLVER_DEP = -lfftw3f -lpthread ZITA-CONVOLVER_O = zita-convolver.o ZITA-CONVOLVER_H = zita-convolver.h +all: $(ZITA-CONVOLVER_MIN) $(ZITA-CONVOLVER_MIN): $(ZITA-CONVOLVER_O) $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-CONVOLVER_MAJ) -o $(ZITA-CONVOLVER_MIN) $(ZITA-CONVOLVER_O) $(ZITA-CONVOLVER_DEP) @@ -56,7 +57,8 @@ install: $(ZITA-CONVOLVER_MIN) install -d $(DESTDIR)$(LIBDIR) install -m 644 $(ZITA-CONVOLVER_H) $(DESTDIR)$(INCDIR) install -m 755 $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(LIBDIR) - ldconfig + #ldconfig + ln -sf $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-CONVOLVER_MAJ) ln -sf $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-CONVOLVER_SO) uninstall: