| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 | # Makefile# You can edit this file or override these variables on# the commandline.  For example, "make install MANDIR=/tmp/man"# would use defaults for all variables except ${MANDIR}.# You can set this to something like /opt/aoetools-x# if you want to install everything in one place.## Note that even with ${PREFIX} set, the devices in# /dev/etherd will be used unless you override ${DEVDIR}.PREFIX = # Your aoe-driver device files should be in ${DEVDIR}.DEVDIR = /dev/etherd# The programs will be installed in ${SBINDIR}.SBINDIR = ${PREFIX}/usr/sbinMANDIR = ${PREFIX}/usr/share/man# NPERSHELF is the number of slot addresses per shelf address.# This number must match the same setting in the aoe driver.## Older aoe drivers have NPERSHELF set to 10, and newer ones # use 16.## You can see the setting in your driver like this in the driver# source directory.  (Change into the "linux" directory if you're# using the standalone driver from the Coraid.)##   grep 'NPERSHELF.*=' drivers/block/aoe/aoe.h#NPERSHELF=16# end of user-configurable variables# these scripts are created from the *.in filesCONF_SCRIPTS = aoe-discover aoe-interfaces aoe-mkshelf aoe-revalidatePROGS = aoepingCOMMANDS := ${CONF_SCRIPTS} aoe-mkdevs aoe-stat ${PROGS}CFLAGS = -Wall -O -gAOE_PING_OBJ = aoeping.o linux.oall : configure ${PROGS}	@trueconfigure :	@for f in ${CONF_SCRIPTS}; do \	  sh -xc "sed -e 's!@devdir@!${DEVDIR}!g' -e 's!@npershelf@!${NPERSHELF}!g' $$f.in > $$f" || break; \	done# DESTDIR was put in for Rob Holland to make gentoo packaging easierinstall : all	mkdir -p ${SBINDIR}	mkdir -p ${MANDIR}/man8	@for f in ${COMMANDS}; do \	  sh -xc "install -m 700 $$f ${DESTDIR}${SBINDIR}/$$f" || break; \	  sh -xc "install -m 664 $$f.8 ${DESTDIR}${MANDIR}/man8/$$f.8" || break; \	doneclean :	rm -f ${CONF_SCRIPTS} ${AOE_PING_OBJ} ${PROGS}aoeping : ${AOE_PING_OBJ}	${CC} ${CFLAGS} -o $@ ${AOE_PING_OBJ}aoeping.o : aoeping.c dat.h fns.h	${CC} ${CFLAGS} -o $@ -c $<linux.o : linux.c config.h	${CC} ${CFLAGS} -o $@ -c $<
 |