#
# ServerU PLCM Utility
#
# ServerU - http://www.ServerU.com.br http://www.ServerU.us
# PLCM with 2 lines with 4 keys pad model Netmap L100 & Netmap L800
#
# Developed and teste for/on FreeBSD RELENG_8, RELENG_9, RELENG_10
#
# This Makefile requires /usr/src/ because we will use the very same stub
# for modules compiling on FreeBSD. We will also compile the whole thing
# with clang prefferably. -- Patrick Tracanelli
#
.PATH: ${.CURDIR}
KMOD=plcm
SRCS  = device_if.h bus_if.h ppbus_if.h
SRCS += plcm_drv.c
CC=/usr/bin/cc
CCL=/usr/bin/clang

clean:
	rm -f opt_bdg.h device_if.h bus_if.h pci_if.h setdef*
	rm -f *.o *.kld *.ko
	rm -f @ machine
	rm -f ${CLEANFILES}
	rm -f plcm_test
	rm -f bcm53118_test
	rm -f serveru-plcm-util
	rm -f server-plcmd

serveru-plcm-util:
	${CCL} -Wno-array-bounds -Wno-int-conversion -Wno-pointer-sign -o serveru-plcm-util serveru-plcm-util.c

serveru-plcmd:
	${CCL} -Wno-array-bounds -Wno-int-conversion -Wno-pointer-sign -o serveru-plcmd serveru-plcmd.c

.include <bsd.kmod.mk>

