xref: /dragonfly/sys/dev/raid/hptmv/Makefile (revision c6ecc293)
1#
2# Makefile for RR182x FreeBSD driver
3# Copyright (c)  2004-2005 HighPoint Technologies, Inc. All rights reserved
4#
5# $FreeBSD: src/sys/modules/hptmv/Makefile,v 1.5 2010/08/23 06:13:29 imp Exp $
6
7KMOD= hptmv
8SRCS= opt_cam.h
9SRCS+= bus_if.h device_if.h pci_if.h
10SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c
11OBJS+= hptmvraid.bo
12
13hptmvraid.bo:	${MACHINE_ARCH}-elf.raid.o.uu
14	uudecode -o ${.TARGET} < ${.ALLSRC}
15	elfedit --output-osabi none ${.TARGET}
16
17CLEANFILES+= hptmvraid.bo
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
44KCFLAGS = ${DEBUGOPT}
45
46.include <bsd.kmod.mk>
47