File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / istgt / src / Makefile.in
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jul 21 23:49:22 2013 UTC (11 years, 8 months ago) by misho
Branches: istgt, MAIN
CVS tags: v20121028, HEAD
20121028

    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@
   13: datarootdir = @datarootdir@
   14: datadir  = @datadir@
   15: libexecdir = @libexecdir@
   16: mandir   = @mandir@
   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@
   25: MKDIR_P  = @MKDIR_P@
   26: RANLIB   = @RANLIB@
   27: MKDEP	 = @MKDEP@
   28: 
   29: CFLAGS  += -DDEBUG
   30: CFLAGS  += -fno-strict-aliasing -Wstrict-aliasing
   31: CFLAGS  += -Wformat=2 -Wreturn-type
   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 \
   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 \
   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: 
   49: ctl_source = istgtcontrol.c istgt_conf.c istgt_log.c istgt_sock.c istgt_misc.c \
   50: 	istgt_md5.c
   51: ctl_header = istgt_ver.h istgt_conf.h istgt_log.h istgt_sock.h istgt_misc.h \
   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: 
   81: .PHONY: all install install-dirs
   82: all: stamp-depend config.h istgt istgtcontrol
   83: 
   84: istgt: $(ISTGT)
   85: 	$(CC) $(LDFLAGS) -o $@ $(ISTGT) $(LIBS)
   86: 
   87: istgtcontrol: $(ISTGTCONTROL)
   88: 	$(CC) $(LDFLAGS) -o $@ $(ISTGTCONTROL) $(LIBS)
   89: 
   90: install: install-dirs
   91: 	$(INSTALL) -m 0755 istgt $(DESTDIR)$(bindir)
   92: 	$(INSTALL) -m 0755 istgtcontrol $(DESTDIR)$(bindir)
   93: 
   94: install-dirs:
   95: 	$(MKDIR_P) $(DESTDIR)$(bindir)
   96: 
   97: .PHONY: dist clean distclean depend
   98: dist: $(DISTFILES)
   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
  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: #########################################################################
  130: 

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