728beea8ee696248fdb7338700f19705a9109d82
[dragonfly.git] / sys / dev / raid / hptmv / Makefile
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
7 KMOD= hptmv
8 SRCS= opt_scsi.h opt_cam.h
9 SRCS+= bus_if.h device_if.h pci_if.h
10 SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c
11 OBJS+= hptmvraid.o
12
13 hptmvraid.o:
14         uudecode -p < ${.CURDIR}/$(MACHINE_ARCH)-elf.raid.o.uu > ${.TARGET}
15         elfedit --output-osabi none ${.TARGET}
16
17 #
18 # Debug Options:
19 #
20 #   -DDEBUG: include debug code
21 #   -DDEBUG_LEVEL=x:
22 #               0 - No debug output message
23 #               1 - print only error messages
24 #               2 - print error and warning
25 #               3 - print all messages (info, warning, error)
26 #
27 #DEBUGOPT = -O2
28
29 .if defined(DEBUG) && $(DEBUG) == 1
30 DEBUGOPT += -DDEBUG
31 .if defined(DEBUG_LEVEL)
32 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
33 .else
34 DEBUGOPT += -DDEBUG_LEVEL=1
35 .endif
36 .endif
37
38 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
39 DEBUGOPT += -DFOR_DEMO
40 .endif
41
42 KCFLAGS = ${DEBUGOPT}
43
44 .include <bsd.kmod.mk>