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+= hptmvraid.o 15 16hptmvraid.o: 17 uudecode -p < ${HPTMV}/${MACHINE_CPUARCH}-elf.raid.o.uu > ${.TARGET} 18 19# 20# Debug Options: 21# 22# -DDEBUG: include debug code 23# -DDEBUG_LEVEL=x: 24# 0 - No debug output message 25# 1 - print only error messages 26# 2 - print error and warning 27# 3 - print all messages (info, warning, error) 28# 29#DEBUGOPT = -O2 30 31.if defined(DEBUG) && $(DEBUG) == 1 32DEBUGOPT += -DDEBUG 33.if defined(DEBUG_LEVEL) 34DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL) 35.else 36DEBUGOPT += -DDEBUG_LEVEL=1 37.endif 38.endif 39 40.if defined(FOR_DEMO) && $(FOR_DEMO) == 1 41DEBUGOPT += -DFOR_DEMO 42.endif 43 44CFLAGS = ${DEBUGOPT} 45 46.include <bsd.kmod.mk> 47