2 # Makefile for RR182x FreeBSD driver
3 # Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved
6 HPTMV= ${SRCTOP}/sys/dev/hptmv
10 SRCS= opt_scsi.h opt_cam.h
11 SRCS+= bus_if.h device_if.h pci_if.h
12 SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c
13 BLOB_OBJS+= ${HPTMV}/${MACHINE_CPUARCH}-elf.hptmvraid.o
18 # -DDEBUG: include debug code
20 # 0 - No debug output message
21 # 1 - print only error messages
22 # 2 - print error and warning
23 # 3 - print all messages (info, warning, error)
27 .if defined(DEBUG) && $(DEBUG) == 1
29 .if defined(DEBUG_LEVEL)
30 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
32 DEBUGOPT += -DDEBUG_LEVEL=1
36 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
37 DEBUGOPT += -DFOR_DEMO
42 .include <bsd.kmod.mk>