1 #
2 # Makefile for RR182x FreeBSD driver
3 # Copyright (c) 2003-2004 HighPoint Technologies, Inc. All rights reserved
4 #
5 # $FreeBSD: releng/5.3/sys/modules/hptmv/Makefile 136856 2004-10-24 08:38:29Z scottl $
6
7 HPTMV= ${.CURDIR}/../../contrib/dev/hptmv
8 .PATH: ${.CURDIR}/../../dev/hptmv ${HPTMV}
9
10 KMOD= hptmv
11 SRCS= opt_scsi.h opt_cam.h
12 SRCS+= bus_if.h device_if.h pci_if.h
13 SRCS+= mv.c entry.c
14 SRCS+= ioctl.c hptproc.c gui_lib.c
15 OBJS+= hptmvraid.o
16
17 hptmvraid.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
33 DEBUGOPT += -DDEBUG
34 .if defined(DEBUG_LEVEL)
35 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
36 .else
37 DEBUGOPT += -DDEBUG_LEVEL=1
38 .endif
39 .endif
40
41 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
42 DEBUGOPT += -DFOR_DEMO
43 .endif
44
45 CFLAGS+= ${DEBUGOPT}
46
47 .include <bsd.kmod.mk>
Cache object: 7a1fde3fe73d04e7a52e8c560aaa22e3
|