"Fossies" - the Fresh Open Source Software Archive

Member "open-fcoe-3.19/fcoe-utils/Makefile.am" (15 Apr 2015, 3175 Bytes) of package /linux/misc/open-fcoe-3.19.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ## target programs, to be built and installed in $(prefix)/sbin
    2 sbin_PROGRAMS = fcoeadm fcoemon fcping fipvlan fcnsq fcrls
    3 
    4 ## all targets should look for headers in the include directory
    5 AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include
    6 ## pass the sysconfdir into the C proprocessor
    7 AM_CPPFLAGS += -DSYSCONFDIR="\"${sysconfdir}\"" -D_FORTIFY_SOURCE=2
    8 AM_CFLAGS = -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes
    9 
   10 ## rules for building fcoeadm
   11 fcoeadm_SOURCES = fcoeadm.c fcoeadm_display.c
   12 fcoeadm_LDADD = lib/libutil.a libopenfcoe.a $(HBAAPI_LIBS)
   13 fcoeadm_CFLAGS = $(AM_CFLAGS) $(HBAAPI_CFLAGS)
   14 
   15 ## rules for building fcoemon
   16 fcoemon_SOURCES = fcoemon.c
   17 fcoemon_LDADD = lib/libutil.a -lrt
   18 fcoemon_CFLAGS = $(AM_CFLAGS) $(DCBD_CFLAGS)
   19 
   20 ## rules for building fcping
   21 fcping_SOURCES = fcping.c
   22 fcping_LDADD = lib/libutil.a $(HBAAPI_LIBS) -lrt
   23 fcping_CFLAGS = $(AM_CFLAGS) $(HBAAPI_CFLAGS)
   24 
   25 ## rules for building fipvlan
   26 fipvlan_SOURCES = fipvlan.c
   27 fipvlan_LDADD = lib/libutil.a
   28 
   29 AUTOMAKE_OPTIONS=subdir-objects
   30 noinst_LIBRARIES = lib/libutil.a libopenfcoe.a
   31 lib_libutil_a_SOURCES = lib/fcoe_utils.c lib/sa_log.c lib/sa_select.c \
   32 	lib/sa_timer.c lib/sa_other.c lib/fip.c lib/rtnetlink.c lib/sa_sys.c
   33 libopenfcoe_a_SOURCES = libopenfcoe.c
   34 
   35 ## header files that need to be distributed
   36 noinst_HEADERS = fcoeadm_display.h fcoe_clif.h fcoemon.h \
   37 	include/fcoemon_utils.h include/fcoe_utils.h include/fc_scsi.h \
   38 	include/fc_types.h include/fip.h include/net_types.h include/rtnetlink.h \
   39 	include/libopenfcoe.h include/scsi_netlink_fc.h include/scsi_netlink.h \
   40 	include/strarr.h include/fc_ns.h include/fc_gs.h include/fc_els.h include/scsi_bsg_fc.h \
   41 	include/linux/rtnetlink.h include/linux/types.h include/linux/dcbnl.h
   42 
   43 ## install configuration file in $(prefix)/etc/fcoe
   44 fcoe_configdir = ${sysconfdir}/fcoe
   45 dist_fcoe_config_DATA = etc/cfg-ethx
   46 
   47 ## install systemd service files
   48 if HAVE_SYSTEMD
   49 dist_systemdsystemunit_DATA = etc/systemd/fcoe.service etc/systemd/fcoemon.socket
   50 endif
   51 
   52 ## man pages for fcoeadm and fcoemon
   53 dist_man_MANS = doc/fcoeadm.8 doc/fcoemon.8 doc/fipvlan.8 doc/fcrls.8 \
   54 	doc/fcnsq.8 doc/fcping.8
   55 
   56 ## init script for fcoemon
   57 dist_noinst_SCRIPTS = etc/initd/initd.suse etc/initd/initd.fedora \
   58 	contrib/fcc.sh contrib/fcoe-setup.sh contrib/fcoe_edd.sh \
   59 	debug/dcbcheck.sh debug/fcoedump.sh
   60 
   61 CLEANFILES = etc/initd/fcoe
   62 etc/initd/fcoe:
   63 	mkdir -p etc/initd
   64 	if [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ]; then \
   65 		ln -s ${abs_srcdir}/etc/initd/initd.fedora $@; \
   66 	else \
   67 		ln -s ${abs_srcdir}/etc/initd/initd.suse $@; \
   68 	fi
   69 
   70 init_ddir = ${sysconfdir}/init.d
   71 init_d_SCRIPTS = etc/initd/fcoe
   72 
   73 dist_noinst_DATA = README COPYING INSTALL CONFIGURE QUICKSTART fcoe-utils.spec etc/config
   74 
   75 bashcompletiondir = $(sysconfdir)/bash_completion.d
   76 dist_bashcompletion_DATA = contrib/bash_completion/fcoeadm contrib/bash_completion/fcoemon
   77 
   78 install-data-hook:
   79 	if [ ! -f ${DESTDIR}${fcoe_configdir}/config ] ; then \
   80 		cp ${srcdir}/etc/config ${DESTDIR}${fcoe_configdir}/config; \
   81 	fi;
   82 
   83 uninstall-hook:
   84 	rm ${DESTDIR}${fcoe_configdir}/config
   85 
   86 AM_DISTCHECK_CONFIGURE_FLAGS = --with-systemdsystemunitdir='$${prefix}/lib/systemd/system'