1# 2# Makefile for RR182x FreeBSD driver 3# Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved 4# 5 6HPTMV= ${SRCTOP}/sys/dev/hptmv 7.PATH: ${HPTMV} 8 9KMOD= hptmv 10SRCS= opt_scsi.h opt_cam.h 11SRCS+= bus_if.h device_if.h pci_if.h 12SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c 13BLOB_OBJS+= ${HPTMV}/${MACHINE_CPUARCH}-elf.hptmvraid.o 14 15# 16# Debug Options: 17# 18# -DDEBUG: include debug code 19# -DDEBUG_LEVEL=x: 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) 24# 25#DEBUGOPT = -O2 26 27.if defined(DEBUG) && $(DEBUG) == 1 28DEBUGOPT += -DDEBUG 29.if defined(DEBUG_LEVEL) 30DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL) 31.else 32DEBUGOPT += -DDEBUG_LEVEL=1 33.endif 34.endif 35 36.if defined(FOR_DEMO) && $(FOR_DEMO) == 1 37DEBUGOPT += -DFOR_DEMO 38.endif 39 40CFLAGS = ${DEBUGOPT} 41 42.include <bsd.kmod.mk> 43