Annotation of embedaddon/istgt/src/Makefile.in, revision 1.1.1.3

1.1       misho       1: #########################################################################
                      2: # Makefile for istgt
                      3: #########################################################################
                      4: 
                      5: top_srcdir = @top_srcdir@
                      6: srcdir   = @srcdir@
                      7: 
                      8: prefix   = @prefix@
                      9: exec_prefix = @exec_prefix@
                     10: bindir   = @bindir@
                     11: sbindir  = @sbindir@
                     12: sysconfdir = @sysconfdir@
1.1.1.2   misho      13: datarootdir = @datarootdir@
                     14: datadir  = @datadir@
1.1       misho      15: libexecdir = @libexecdir@
1.1.1.2   misho      16: mandir   = @mandir@
1.1       misho      17: 
                     18: CC       = @CC@
                     19: CFLAGS   = @CFLAGS@
                     20: CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir) -I$(srcdir)
                     21: LDFLAGS  = @LDFLAGS@
                     22: DEFS     = @DEFS@
                     23: LIBS     = @LIBS@
                     24: INSTALL  = @INSTALL@
1.1.1.2   misho      25: MKDIR_P  = @MKDIR_P@
1.1       misho      26: RANLIB   = @RANLIB@
                     27: MKDEP   = @MKDEP@
                     28: 
                     29: CFLAGS  += -DDEBUG
                     30: CFLAGS  += -fno-strict-aliasing -Wstrict-aliasing
1.1.1.2   misho      31: CFLAGS  += -Wformat=2 -Wreturn-type
1.1       misho      32: CFLAGS  += -Wbad-function-cast -Wcast-align
                     33: CFLAGS  += -Wcast-qual -Wchar-subscripts -Winline
                     34: CFLAGS  += -Wmissing-prototypes -Wnested-externs -Wpointer-arith
                     35: CFLAGS  += -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
                     36: 
                     37: source   = istgt.c istgt_iscsi.c istgt_iscsi_param.c \
1.1.1.2   misho      38:        istgt_lu.c istgt_lu_disk.c istgt_lu_disk_vbox.c \
                     39:        istgt_lu_dvd.c istgt_lu_tape.c istgt_lu_pass.c istgt_lu_ctl.c \
1.1       misho      40:        istgt_log.c istgt_conf.c istgt_sock.c istgt_misc.c \
                     41:        istgt_queue.c istgt_crc32c.c istgt_md5.c
                     42: header   = istgt_ver.h istgt.h istgt_iscsi.h istgt_iscsi_param.h \
                     43:        istgt_scsi.h istgt_proto.h istgt_lu.h \
                     44:        istgt_log.h istgt_conf.h istgt_sock.h \
                     45:        istgt_misc.h istgt_queue.h istgt_crc32c.h istgt_md5.h
                     46: document = 
                     47: sample   = 
                     48: 
1.1.1.3 ! misho      49: ctl_source = istgtcontrol.c istgt_conf.c istgt_log.c istgt_sock.c istgt_misc.c \
1.1       misho      50:        istgt_md5.c
1.1.1.3 ! misho      51: ctl_header = istgt_ver.h istgt_conf.h istgt_log.h istgt_sock.h istgt_misc.h \
1.1       misho      52:        istgt_md5.h
                     53: 
                     54: ISTGT    = $(source:.c=.o)
                     55: ISTGTCONTROL = $(ctl_source:.c=.o)
                     56: 
                     57: PACKAGE_NAME = @PACKAGE_NAME@
                     58: PACKAGE_STRING = @PACKAGE_STRING@
                     59: PACKAGE_TARNAME = @PACKAGE_TARNAME@
                     60: PACKAGE_VERSION = @PACKAGE_VERSION@
                     61: 
                     62: VER_H = istgt_ver.h
                     63: DISTBASE = istgt
                     64: DISTVER  = `sed -e '/ISTGT_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)`
                     65: DISTEXTVER = `sed -e '/ISTGT_EXTRA_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)`
                     66: #DISTDIR  = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
                     67: #DISTDIR  = $(DISTBASE)-$(DISTVER)-$(DISTEXTVER)
                     68: #DISTDIR  = $(DISTBASE)-$(DISTEXTVER)
                     69: DISTDIR = $(top_srcdir)/`cat $(top_srcdir)/distdir`
                     70: DISTNAME = $(DISTDIR).tar.gz
                     71: DISTFILES = Makefile.in config.h.in build.h.in \
                     72:        $(header) $(source) $(ctl_header) $(ctl_source) \
                     73:        $(document) $(sample)
                     74: 
                     75: #########################################################################
                     76: 
                     77: .SUFFIXES: .c .o
                     78: .c.o:
                     79:        $(CC) $(DEFS) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
                     80: 
1.1.1.2   misho      81: .PHONY: all install install-dirs
1.1       misho      82: all: stamp-depend config.h istgt istgtcontrol
                     83: 
                     84: istgt: $(ISTGT)
1.1.1.2   misho      85:        $(CC) $(LDFLAGS) -o $@ $(ISTGT) $(LIBS)
1.1       misho      86: 
                     87: istgtcontrol: $(ISTGTCONTROL)
1.1.1.2   misho      88:        $(CC) $(LDFLAGS) -o $@ $(ISTGTCONTROL) $(LIBS)
1.1       misho      89: 
                     90: install: install-dirs
1.1.1.2   misho      91:        $(INSTALL) -m 0755 istgt $(DESTDIR)$(bindir)
                     92:        $(INSTALL) -m 0755 istgtcontrol $(DESTDIR)$(bindir)
1.1       misho      93: 
                     94: install-dirs:
1.1.1.2   misho      95:        $(MKDIR_P) $(DESTDIR)$(bindir)
1.1       misho      96: 
1.1.1.2   misho      97: .PHONY: dist clean distclean depend
1.1       misho      98: dist: $(DISTFILES)
1.1.1.2   misho      99:        if [ -f "$(top_srcdir)/distdir" ]; then \
                    100:                $(MKDIR_P) $(DISTDIR)/$(subdir) \
                    101:                cd $(srcdir); thisdir=`pwd`; \
                    102:                for file in `echo $(DISTFILES) | sort`; do \
                    103:                    cp -p $$thisdir/$$file $(DISTDIR)/$(subdir); \
                    104:                done \
                    105:        fi
1.1       misho     106: 
                    107: depend:
                    108:        if [ "x$(MKDEP)" != "x" ]; then \
                    109:                $(MKDEP) -MM $(DEFS) $(CFLAGS) $(CPPFLAGS) $(source); \
                    110:        fi
                    111:        touch stamp-depend
                    112: 
                    113: clean:
                    114:        -rm -f a.out *.o *.core
                    115:        -rm -f *~
                    116:        -rm -f istgt istgtcontrol
                    117: 
                    118: distclean: clean
                    119:        -rm -f stamp-depend .depend
                    120:        -rm -f stamp-h.in
                    121:        -rm -f Makefile config.status config.cache config.log config.h
                    122:        -rm -f build.h
                    123: 
                    124: #########################################################################
                    125: 
                    126: stamp-depend: Makefile
                    127:        $(MAKE) depend
                    128: 
                    129: #########################################################################

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>