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