xref: /freebsd/sys/modules/hptmv/Makefile (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
11713e81bSScott Long#
21713e81bSScott Long# Makefile for RR182x FreeBSD driver
3d2bd3ab9SScott Long# Copyright (c)  2004-2005 HighPoint Technologies, Inc. All rights reserved
41713e81bSScott Long#
51713e81bSScott Long
6193d9e76SEnji CooperHPTMV= ${SRCTOP}/sys/dev/hptmv
7d38d9c9eSScott Long.PATH: ${HPTMV}
81713e81bSScott Long
91713e81bSScott LongKMOD= hptmv
101713e81bSScott LongSRCS= opt_scsi.h opt_cam.h
111713e81bSScott LongSRCS+= bus_if.h device_if.h pci_if.h
12d2bd3ab9SScott LongSRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c
13*22ed04c2SWarner LoshBLOB_OBJS+= ${HPTMV}/${MACHINE_CPUARCH}-elf.hptmvraid.o
141713e81bSScott Long
151713e81bSScott Long#
161713e81bSScott Long# Debug Options:
171713e81bSScott Long#
181713e81bSScott Long#   -DDEBUG: include debug code
191713e81bSScott Long#   -DDEBUG_LEVEL=x:
201713e81bSScott Long#		0 - No debug output message
211713e81bSScott Long#		1 - print only error messages
221713e81bSScott Long#		2 - print error and warning
231713e81bSScott Long#		3 - print all messages (info, warning, error)
241713e81bSScott Long#
251713e81bSScott Long#DEBUGOPT = -O2
261713e81bSScott Long
271713e81bSScott Long.if defined(DEBUG) && $(DEBUG) == 1
281713e81bSScott LongDEBUGOPT += -DDEBUG
291713e81bSScott Long.if defined(DEBUG_LEVEL)
301713e81bSScott LongDEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
311713e81bSScott Long.else
321713e81bSScott LongDEBUGOPT += -DDEBUG_LEVEL=1
331713e81bSScott Long.endif
341713e81bSScott Long.endif
351713e81bSScott Long
361713e81bSScott Long.if defined(FOR_DEMO) && $(FOR_DEMO) == 1
371713e81bSScott LongDEBUGOPT += -DFOR_DEMO
381713e81bSScott Long.endif
391713e81bSScott Long
40d2bd3ab9SScott LongCFLAGS = ${DEBUGOPT}
411713e81bSScott Long
421713e81bSScott Long.include <bsd.kmod.mk>
43