Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / sys / dev / raid / hptmv / Makefile
1 #
2 # Makefile for RR182x FreeBSD driver
3 # Copyright (c)  2004-2005 HighPoint Technologies, Inc. All rights reserved
4 #
5 # $FreeBSD: src/sys/modules/hptmv/Makefile,v 1.5 2010/08/23 06:13:29 imp Exp $
6
7 KMOD= hptmv
8 SRCS= opt_scsi.h opt_cam.h
9 SRCS+= bus_if.h device_if.h pci_if.h
10 SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c
11 OBJS+= hptmvraid.o
12
13 .if $(MACHINE_ARCH) == "x86_64"
14 HPTMV_RAID_O = x86_64-elf.raid.o.uu
15 .else
16 HPTMV_RAID_O = i386-elf.raid.o.uu
17 .endif
18
19 hptmvraid.o:    ${.CURDIR}/$(HPTMV_RAID_O)
20         uudecode -p < ${.CURDIR}/$(HPTMV_RAID_O) > ${.TARGET}
21
22 #
23 # Debug Options:
24 #
25 #   -DDEBUG: include debug code
26 #   -DDEBUG_LEVEL=x:
27 #               0 - No debug output message
28 #               1 - print only error messages
29 #               2 - print error and warning
30 #               3 - print all messages (info, warning, error)
31 #
32 #DEBUGOPT = -O2
33
34 .if defined(DEBUG) && $(DEBUG) == 1
35 DEBUGOPT += -DDEBUG
36 .if defined(DEBUG_LEVEL)
37 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
38 .else
39 DEBUGOPT += -DDEBUG_LEVEL=1
40 .endif
41 .endif
42
43 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
44 DEBUGOPT += -DFOR_DEMO
45 .endif
46
47 CFLAGS = ${DEBUGOPT}
48
49 .include <bsd.kmod.mk>