2 # Makefile for RR182x FreeBSD driver
3 # Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved
7 HPTMV= ${.CURDIR}/../../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
16 .if $(MACHINE_ARCH) == "amd64"
17 HPTMV_RAID_O = amd64-elf.raid.o.uu
19 HPTMV_RAID_O = i386-elf.raid.o.uu
22 hptmvraid.o: ${HPTMV}/$(HPTMV_RAID_O)
23 uudecode -p < ${HPTMV}/$(HPTMV_RAID_O) > ${.TARGET}
28 # -DDEBUG: include debug code
30 # 0 - No debug output message
31 # 1 - print only error messages
32 # 2 - print error and warning
33 # 3 - print all messages (info, warning, error)
37 .if defined(DEBUG) && $(DEBUG) == 1
39 .if defined(DEBUG_LEVEL)
40 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
42 DEBUGOPT += -DDEBUG_LEVEL=1
46 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
47 DEBUGOPT += -DFOR_DEMO
52 .include <bsd.kmod.mk>