mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-29 03:05:46 +00:00
Allow install SCST in any location
Currently the install location of SCST is pretty much hard coded into
the Makefiles to be /usr/local.
I am custom building a system for ZFS & SCST and I want to install in
/usr instead of /usr/local.
Currently I am doing a “find . -name Makefile -exec sed -i 's:/usr/local:/usr:g'
{} \;” to accommodate this.
This patch fixes it.
From Sietse van Zanen <sietse@wizdom.nu>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4791 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+8
-4
@@ -5,19 +5,23 @@
|
||||
# removes any old dependencies. DON'T put your own dependencies here
|
||||
# unless it's something special (not a .c file).
|
||||
|
||||
ifndef PREFIX
|
||||
PREFIX=/usr/local
|
||||
endif
|
||||
|
||||
SHELL=/bin/bash
|
||||
|
||||
SUBDIRS := $(shell pwd)
|
||||
|
||||
SCST_INC_DIR := $(shell if [ -e "$$PWD/../scst" ]; \
|
||||
then echo "$$PWD/../scst/include"; \
|
||||
else echo "/usr/local/include/scst"; fi)
|
||||
else echo "$(PREFIX)/include/scst"; fi)
|
||||
SCST_DIR := $(shell if [ -e "$$PWD/../scst" ]; then echo "$$PWD/../scst/src"; \
|
||||
else echo "/usr/local/include/scst"; fi)
|
||||
SBINDIR := /usr/local/sbin
|
||||
else echo "$(PREFIX)/include/scst"; fi)
|
||||
SBINDIR := $(PREFIX)/sbin
|
||||
INITDIR := /etc/init.d
|
||||
RCDIR := /etc/rc.d
|
||||
MANDIR := /usr/local/man
|
||||
MANDIR := $(PREFIX)/man
|
||||
KMOD := $(shell pwd)/kernel
|
||||
INCDIR := $(shell pwd)/include
|
||||
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
ifndef PREFIX
|
||||
PREFIX=/usr/local
|
||||
endif
|
||||
|
||||
SRCS_D = iscsid.c iscsi_scstd.c conn.c session.c target.c message.c ctldev.c \
|
||||
log.c chap.c event.c param.c config.c isns.c md5.c sha1.c \
|
||||
misc.c
|
||||
@@ -24,7 +28,7 @@ SRCS_ADM = iscsi_adm.c param.c
|
||||
OBJS_ADM = $(SRCS_ADM:.c=.o)
|
||||
|
||||
SCST_INC_DIR := ../../scst/include
|
||||
#SCST_INC_DIR := /usr/local/include/scst
|
||||
#SCST_INC_DIR := $(PREFIX)/include/scst
|
||||
|
||||
CFLAGS += -O2 -fno-inline -Wall -Wextra -Wstrict-prototypes -Wno-sign-compare \
|
||||
-Wimplicit-function-declaration -Wno-unused-parameter \
|
||||
|
||||
Reference in New Issue
Block a user