]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/hptmv/Makefile
Merge diff elimination updates from r355953 into vendor/llvm-project.
[FreeBSD/FreeBSD.git] / sys / modules / hptmv / Makefile
1 #
2 # Makefile for RR182x FreeBSD driver
3 # Copyright (c)  2004-2005 HighPoint Technologies, Inc. All rights reserved
4 #
5 # $FreeBSD$
6
7 HPTMV= ${SRCTOP}/sys/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 hptmvraid.o:
17         uudecode -p < ${HPTMV}/${MACHINE_CPUARCH}-elf.raid.o.uu > ${.TARGET}
18
19 #
20 # Debug Options:
21 #
22 #   -DDEBUG: include debug code
23 #   -DDEBUG_LEVEL=x:
24 #               0 - No debug output message
25 #               1 - print only error messages
26 #               2 - print error and warning
27 #               3 - print all messages (info, warning, error)
28 #
29 #DEBUGOPT = -O2
30
31 .if defined(DEBUG) && $(DEBUG) == 1
32 DEBUGOPT += -DDEBUG
33 .if defined(DEBUG_LEVEL)
34 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
35 .else
36 DEBUGOPT += -DDEBUG_LEVEL=1
37 .endif
38 .endif
39
40 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
41 DEBUGOPT += -DFOR_DEMO
42 .endif
43
44 CFLAGS = ${DEBUGOPT}
45
46 .include <bsd.kmod.mk>