summaryrefslogtreecommitdiffstats
path: root/sys/modules/hptmv/Makefile
blob: a444cd66a9e4e73c7e816c7d02ce403e9bd6f2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Makefile for RR182x FreeBSD driver
# Copyright (c)  2003-2004 HighPoint Technologies, Inc. All rights reserved
#
# $FreeBSD$

HPTMV= ${.CURDIR}/../../contrib/dev/hptmv
.PATH: ${.CURDIR}/../../dev/hptmv ${HPTMV}

KMOD= hptmv
SRCS= opt_scsi.h opt_cam.h
SRCS+= bus_if.h device_if.h pci_if.h
SRCS+= mv.c entry.c
SRCS+= ioctl.c hptproc.c gui_lib.c
OBJS+= hptmvraid.o

hptmvraid.o:	${HPTMV}/i386-elf.raid.o.uu
	uudecode -p < ${HPTMV}/i386-elf.raid.o.uu > ${.TARGET}

#
# Debug Options:
#
#   -DDEBUG: include debug code
#   -DDEBUG_LEVEL=x:
#		0 - No debug output message
#		1 - print only error messages
#		2 - print error and warning
#		3 - print all messages (info, warning, error)
#
#DEBUGOPT = -O2

.if defined(DEBUG) && $(DEBUG) == 1
DEBUGOPT += -DDEBUG
.if defined(DEBUG_LEVEL)
DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
.else
DEBUGOPT += -DDEBUG_LEVEL=1
.endif
.endif

.if defined(FOR_DEMO) && $(FOR_DEMO) == 1
DEBUGOPT += -DFOR_DEMO
.endif

CFLAGS+= ${DEBUGOPT}

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud