1 #
2 # Makefile for RR182x FreeBSD driver
3 # Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved
4 #
5 # $FreeBSD: releng/9.1/sys/modules/hptmv/Makefile 211690 2010-08-23 06:13:29Z imp $
6
7 HPTMV= ${.CURDIR}/../../dev/hptmv
8 .PATH: ${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 ioctl.c hptproc.c gui_lib.c
14 OBJS+= hptmvraid.o
15
16 .if $(MACHINE_CPUARCH) == "amd64"
17 HPTMV_RAID_O = amd64-elf.raid.o.uu
18 .else
19 HPTMV_RAID_O = i386-elf.raid.o.uu
20 .endif
21
22 hptmvraid.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
38 DEBUGOPT += -DDEBUG
39 .if defined(DEBUG_LEVEL)
40 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
41 .else
42 DEBUGOPT += -DDEBUG_LEVEL=1
43 .endif
44 .endif
45
46 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
47 DEBUGOPT += -DFOR_DEMO
48 .endif
49
50 CFLAGS = ${DEBUGOPT}
51
52 .include <bsd.kmod.mk>
Cache object: 899109f0f03ec367a46f62519c604869
|