2004-10-24 05:37:23 +00:00
|
|
|
#
|
|
|
|
# Makefile for RR182x FreeBSD driver
|
|
|
|
# Copyright (c) 2003-2004 HighPoint Technologies, Inc. All rights reserved
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2005-03-02 05:14:28 +00:00
|
|
|
HPTMV= ${.CURDIR}/../../dev/hptmv
|
|
|
|
.PATH: ${HPTMV}
|
2004-10-24 05:37:23 +00:00
|
|
|
|
|
|
|
KMOD= hptmv
|
|
|
|
SRCS= opt_scsi.h opt_cam.h
|
|
|
|
SRCS+= bus_if.h device_if.h pci_if.h
|
2004-10-24 08:38:29 +00:00
|
|
|
SRCS+= mv.c entry.c
|
2004-10-24 05:37:23 +00:00
|
|
|
SRCS+= ioctl.c hptproc.c gui_lib.c
|
2004-10-24 08:38:29 +00:00
|
|
|
OBJS+= hptmvraid.o
|
2004-10-24 05:37:23 +00:00
|
|
|
|
2004-10-24 08:38:29 +00:00
|
|
|
hptmvraid.o: ${HPTMV}/i386-elf.raid.o.uu
|
2004-10-24 05:37:23 +00:00
|
|
|
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
|
|
|
|
|
2004-10-24 08:38:29 +00:00
|
|
|
CFLAGS+= ${DEBUGOPT}
|
2004-10-24 05:37:23 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|