xref: /freebsd/sys/modules/hptmv/Makefile (revision 63d45d7da0eac8efdeb765ac5caddfc2c5ca021e)
1#
2# Makefile for RR182x FreeBSD driver
3# Copyright (c)  2003-2004 HighPoint Technologies, Inc. All rights reserved
4#
5# $FreeBSD$
6
7HPTMV= ${.CURDIR}/../../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
14SRCS+= ioctl.c hptproc.c gui_lib.c
15OBJS+= hptmvraid.o
16
17hptmvraid.o:	${HPTMV}/i386-elf.raid.o.uu
18	uudecode -p < ${HPTMV}/i386-elf.raid.o.uu > ${.TARGET}
19
20#
21# Debug Options:
22#
23#   -DDEBUG: include debug code
24#   -DDEBUG_LEVEL=x:
25#		0 - No debug output message
26#		1 - print only error messages
27#		2 - print error and warning
28#		3 - print all messages (info, warning, error)
29#
30#DEBUGOPT = -O2
31
32.if defined(DEBUG) && $(DEBUG) == 1
33DEBUGOPT += -DDEBUG
34.if defined(DEBUG_LEVEL)
35DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
36.else
37DEBUGOPT += -DDEBUG_LEVEL=1
38.endif
39.endif
40
41.if defined(FOR_DEMO) && $(FOR_DEMO) == 1
42DEBUGOPT += -DFOR_DEMO
43.endif
44
45CFLAGS+= ${DEBUGOPT}
46
47.include <bsd.kmod.mk>
48