2 # Makefile for RR182x FreeBSD driver
3 # Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved
7 HPTMV= ${SRCTOP}/sys/dev/hptmv
11 SRCS= opt_scsi.h opt_cam.h
12 SRCS+= bus_if.h device_if.h pci_if.h
13 SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c
17 uudecode -p < ${HPTMV}/${MACHINE_CPUARCH}-elf.raid.o.uu > ${.TARGET}
22 # -DDEBUG: include debug code
24 # 0 - No debug output message
25 # 1 - print only error messages
26 # 2 - print error and warning
27 # 3 - print all messages (info, warning, error)
31 .if defined(DEBUG) && $(DEBUG) == 1
33 .if defined(DEBUG_LEVEL)
34 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
36 DEBUGOPT += -DDEBUG_LEVEL=1
40 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
41 DEBUGOPT += -DFOR_DEMO
46 .include <bsd.kmod.mk>