version 1.1, 2012/02/21 16:42:02
|
version 1.1.1.3, 2013/07/21 23:49:22
|
Line 10 exec_prefix = @exec_prefix@
|
Line 10 exec_prefix = @exec_prefix@
|
bindir = @bindir@ |
bindir = @bindir@ |
sbindir = @sbindir@ |
sbindir = @sbindir@ |
sysconfdir = @sysconfdir@ |
sysconfdir = @sysconfdir@ |
datadir = @datarootdir@ | datarootdir = @datarootdir@ |
| datadir = @datadir@ |
libexecdir = @libexecdir@ |
libexecdir = @libexecdir@ |
|
mandir = @mandir@ |
|
|
CC = @CC@ |
CC = @CC@ |
CFLAGS = @CFLAGS@ |
CFLAGS = @CFLAGS@ |
Line 20 LDFLAGS = @LDFLAGS@
|
Line 22 LDFLAGS = @LDFLAGS@
|
DEFS = @DEFS@ |
DEFS = @DEFS@ |
LIBS = @LIBS@ |
LIBS = @LIBS@ |
INSTALL = @INSTALL@ |
INSTALL = @INSTALL@ |
|
MKDIR_P = @MKDIR_P@ |
RANLIB = @RANLIB@ |
RANLIB = @RANLIB@ |
MKDEP = @MKDEP@ |
MKDEP = @MKDEP@ |
|
|
CFLAGS += -DDEBUG |
CFLAGS += -DDEBUG |
CFLAGS += -fno-strict-aliasing -Wstrict-aliasing |
CFLAGS += -fno-strict-aliasing -Wstrict-aliasing |
|
CFLAGS += -Wformat=2 -Wreturn-type |
CFLAGS += -Wbad-function-cast -Wcast-align |
CFLAGS += -Wbad-function-cast -Wcast-align |
CFLAGS += -Wcast-qual -Wchar-subscripts -Winline |
CFLAGS += -Wcast-qual -Wchar-subscripts -Winline |
CFLAGS += -Wmissing-prototypes -Wnested-externs -Wpointer-arith |
CFLAGS += -Wmissing-prototypes -Wnested-externs -Wpointer-arith |
CFLAGS += -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings |
CFLAGS += -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings |
|
|
source = istgt.c istgt_iscsi.c istgt_iscsi_param.c \ |
source = istgt.c istgt_iscsi.c istgt_iscsi_param.c \ |
istgt_lu.c istgt_lu_disk.c istgt_lu_dvd.c istgt_lu_tape.c \ | istgt_lu.c istgt_lu_disk.c istgt_lu_disk_vbox.c \ |
istgt_lu_pass.c istgt_lu_ctl.c \ | istgt_lu_dvd.c istgt_lu_tape.c istgt_lu_pass.c istgt_lu_ctl.c \ |
istgt_log.c istgt_conf.c istgt_sock.c istgt_misc.c \ |
istgt_log.c istgt_conf.c istgt_sock.c istgt_misc.c \ |
istgt_queue.c istgt_crc32c.c istgt_md5.c |
istgt_queue.c istgt_crc32c.c istgt_md5.c |
header = istgt_ver.h istgt.h istgt_iscsi.h istgt_iscsi_param.h \ |
header = istgt_ver.h istgt.h istgt_iscsi.h istgt_iscsi_param.h \ |
Line 42 header = istgt_ver.h istgt.h istgt_iscsi.h istgt_isc
|
Line 46 header = istgt_ver.h istgt.h istgt_iscsi.h istgt_isc
|
document = |
document = |
sample = |
sample = |
|
|
ctl_source = istgtcontrol.c istgt_conf.c istgt_sock.c istgt_misc.c \ | ctl_source = istgtcontrol.c istgt_conf.c istgt_log.c istgt_sock.c istgt_misc.c \ |
istgt_md5.c |
istgt_md5.c |
ctl_header = istgt_ver.h istgt_conf.h istgt_sock.h istgt_misc.h \ | ctl_header = istgt_ver.h istgt_conf.h istgt_log.h istgt_sock.h istgt_misc.h \ |
istgt_md5.h |
istgt_md5.h |
|
|
ISTGT = $(source:.c=.o) |
ISTGT = $(source:.c=.o) |
Line 74 DISTFILES = Makefile.in config.h.in build.h.in \
|
Line 78 DISTFILES = Makefile.in config.h.in build.h.in \
|
.c.o: |
.c.o: |
$(CC) $(DEFS) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< |
$(CC) $(DEFS) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< |
|
|
|
.PHONY: all install install-dirs |
all: stamp-depend config.h istgt istgtcontrol |
all: stamp-depend config.h istgt istgtcontrol |
|
|
istgt: $(ISTGT) |
istgt: $(ISTGT) |
$(CC) $(LDFLAGS) $(LIBS) -o $@ $(ISTGT) | $(CC) $(LDFLAGS) -o $@ $(ISTGT) $(LIBS) |
|
|
istgtcontrol: $(ISTGTCONTROL) |
istgtcontrol: $(ISTGTCONTROL) |
$(CC) $(LDFLAGS) $(LIBS) -o $@ $(ISTGTCONTROL) | $(CC) $(LDFLAGS) -o $@ $(ISTGTCONTROL) $(LIBS) |
|
|
install: install-dirs |
install: install-dirs |
install -c -m 0755 istgt $(DESTDIR)$(bindir) | $(INSTALL) -m 0755 istgt $(DESTDIR)$(bindir) |
install -c -m 0755 istgtcontrol $(DESTDIR)$(bindir) | $(INSTALL) -m 0755 istgtcontrol $(DESTDIR)$(bindir) |
|
|
install-dirs: |
install-dirs: |
mkdir -p $(DESTDIR)$(bindir) | $(MKDIR_P) $(DESTDIR)$(bindir) |
|
|
|
.PHONY: dist clean distclean depend |
dist: $(DISTFILES) |
dist: $(DISTFILES) |
mkdir $(DISTDIR)/$(subdir) | if [ -f "$(top_srcdir)/distdir" ]; then \ |
cd $(srcdir); thisdir=`pwd`; \ | $(MKDIR_P) $(DISTDIR)/$(subdir) \ |
for file in `echo $(DISTFILES) | sort`; do \ | cd $(srcdir); thisdir=`pwd`; \ |
cp -p $$thisdir/$$file $(DISTDIR)/$(subdir); \ | for file in `echo $(DISTFILES) | sort`; do \ |
done | cp -p $$thisdir/$$file $(DISTDIR)/$(subdir); \ |
| done \ |
| fi |
|
|
depend: |
depend: |
if [ "x$(MKDEP)" != "x" ]; then \ |
if [ "x$(MKDEP)" != "x" ]; then \ |