Makefile revision 136856
1136849Sscottl#
2136849Sscottl# Makefile for RR182x FreeBSD driver
3136849Sscottl# Copyright (c)  2003-2004 HighPoint Technologies, Inc. All rights reserved
4136849Sscottl#
5136849Sscottl# $FreeBSD: head/sys/modules/hptmv/Makefile 136856 2004-10-24 08:38:29Z scottl $
6136849Sscottl
7136849SscottlHPTMV= ${.CURDIR}/../../contrib/dev/hptmv
8136849Sscottl.PATH: ${.CURDIR}/../../dev/hptmv ${HPTMV}
9136849Sscottl
10136849SscottlKMOD= hptmv
11136849SscottlSRCS= opt_scsi.h opt_cam.h
12136849SscottlSRCS+= bus_if.h device_if.h pci_if.h
13136856SscottlSRCS+= mv.c entry.c
14136849SscottlSRCS+= ioctl.c hptproc.c gui_lib.c
15136856SscottlOBJS+= hptmvraid.o
16136849Sscottl
17136856Sscottlhptmvraid.o:	${HPTMV}/i386-elf.raid.o.uu
18136849Sscottl	uudecode -p < ${HPTMV}/i386-elf.raid.o.uu > ${.TARGET}
19136849Sscottl
20136849Sscottl#
21136849Sscottl# Debug Options:
22136849Sscottl#
23136849Sscottl#   -DDEBUG: include debug code
24136849Sscottl#   -DDEBUG_LEVEL=x:
25136849Sscottl#		0 - No debug output message
26136849Sscottl#		1 - print only error messages
27136849Sscottl#		2 - print error and warning
28136849Sscottl#		3 - print all messages (info, warning, error)
29136849Sscottl#
30136849Sscottl#DEBUGOPT = -O2
31136849Sscottl
32136849Sscottl.if defined(DEBUG) && $(DEBUG) == 1
33136849SscottlDEBUGOPT += -DDEBUG
34136849Sscottl.if defined(DEBUG_LEVEL)
35136849SscottlDEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
36136849Sscottl.else
37136849SscottlDEBUGOPT += -DDEBUG_LEVEL=1
38136849Sscottl.endif
39136849Sscottl.endif
40136849Sscottl
41136849Sscottl.if defined(FOR_DEMO) && $(FOR_DEMO) == 1
42136849SscottlDEBUGOPT += -DFOR_DEMO
43136849Sscottl.endif
44136849Sscottl
45136856SscottlCFLAGS+= ${DEBUGOPT}
46136849Sscottl
47136849Sscottl.include <bsd.kmod.mk>
48