mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
- "RECEIVE DIAGNOSTIC RESULTS" command handling fixed - Obtaining device queue parameters in scst_obtain_device_parameters() changed to handle NOT READY sense - Fixed possible dev_cmd_count underflow - Minor iSCSI-SCST connection closing cleanups and fixes - Semantic of other *_atomic flags changed a bit. Now they are intended only to allow SCST to optimize execution context. The corresponing functions now can *always* be called on atomic context and, if necessary, should manually determine that using scst_cmd_atomic() function and restart using corresponding *_NEED_THREAD_* return value. - scst_cmd_get_tgt_resp_flags() and SCST_TSC_FLAG_STATUS flag made obsolete and replaced by scst_cmd_get_is_send_status(). All in-tree drivers updated accordingly - Cleanup: preprocessing_done_atomic removed, now preprocessing_done() callback always called on thread context - 64-bit cleanups - Documented that iscsi-scst-adm is currently broken and explained why - In user space Makefile's added possibility to specify external linker flags - Minor performance optimizations - Other minor cleanups git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@350 d57e44dd-8a1f-0410-8b47-8ef2f437770f
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
#
|
|
# Makefile for the user space part of iSCSI-SCST.
|
|
#
|
|
# Copyright (C) 2007 Vladislav Bolkhovitin
|
|
# Copyright (C) 2007 CMS Distribution Limited
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation, version 2
|
|
# of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
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 plain.c isns.c
|
|
OBJS_D = $(SRCS_D:.c=.o)
|
|
|
|
SRCS_ADM = iscsi_adm.c param.c
|
|
OBJS_ADM = $(SRCS_ADM:.c=.o)
|
|
|
|
CFLAGS += -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include
|
|
PROGRAMS = iscsi-scstd iscsi-scst-adm
|
|
LIBS = -lcrypto
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
iscsi-scstd: .depend_d $(OBJS_D)
|
|
$(CC) $(OBJS_D) $(LIBS) $(LOCAL_LD_FLAGS) -o $@
|
|
|
|
iscsi-scst-adm: .depend_adm $(OBJS_ADM)
|
|
$(CC) $(OBJS_ADM) $(LIBS) $(LOCAL_LD_FLAGS) -o $@
|
|
|
|
ifeq (.depend_d,$(wildcard .depend_d))
|
|
-include .depend_d
|
|
endif
|
|
|
|
ifeq (.depend_adm,$(wildcard .depend_adm))
|
|
-include .depend_adm
|
|
endif
|
|
|
|
%.o: %.c Makefile
|
|
$(CC) -c -o $(@) $(CFLAGS) $(<)
|
|
|
|
.depend_d:
|
|
$(CC) -M $(CFLAGS) $(SRCS_D) >$(@)
|
|
|
|
.depend_adm:
|
|
$(CC) -M $(CFLAGS) $(SRCS_ADM) >$(@)
|
|
|
|
clean:
|
|
rm -f *.o $(PROGRAMS) .depend*
|