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
14 BLOB_OBJS+= ${HPTMV}/${MACHINE_CPUARCH}-elf.hptmvraid.o
19 # -DDEBUG: include debug code
21 # 0 - No debug output message
22 # 1 - print only error messages
23 # 2 - print error and warning
24 # 3 - print all messages (info, warning, error)
28 .if defined(DEBUG) && $(DEBUG) == 1
30 .if defined(DEBUG_LEVEL)
31 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
33 DEBUGOPT += -DDEBUG_LEVEL=1
37 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
38 DEBUGOPT += -DFOR_DEMO
43 .include <bsd.kmod.mk>