# $FreeBSD: src/tools/tools/ath/Makefile,v 1.3 2003/12/07 21:38:44 sam Exp $ # # Copyright (c) 2002-2005 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # DEPTH= .. BINDIR= /usr/local/bin include ${DEPTH}/Makefile.inc ALL_INSTALL= athstats 80211stats athdebug 80211debug athctrl ALL= ${ALL_INSTALL} athkey athchans all: ${ALL} INCS+= -I. -I${HAL} -I${HAL}/linux -I${ATH_HAL} -I${WLAN} -I${DEPTH} CFLAGS= ${INCS} -g LDFLAGS= all: ${ALL} athstats: athstats.c ${CC} -o athstats ${CFLAGS} -I../ath ${LDFLAGS} athstats.c 80211stats: 80211stats.c ${CC} -o 80211stats ${CFLAGS} ${LDFLAGS} 80211stats.c athkey: athkey.c ${CC} -o athkey ${CFLAGS} ${LDFLAGS} athkey.c athctrl: athctrl.c ${CC} -o athctrl ${CFLAGS} ${LDFLAGS} athctrl.c athdebug: athdebug.c ${CC} -o athdebug ${CFLAGS} ${LDFLAGS} athdebug.c 80211debug: 80211debug.c ${CC} -o 80211debug ${CFLAGS} ${LDFLAGS} 80211debug.c install: ${ALL_INSTALL} for i in ${ALL_INSTALL}; do \ cp $$i ${DESTDIR}${BINDIR}; \ done clean: rm -f ${ALL} core a.out