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