]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/hptmv/Makefile
contrib/tzdata: import tzdata 2024a
[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
6 HPTMV= ${SRCTOP}/sys/dev/hptmv
7 .PATH: ${HPTMV}
8
9 KMOD= hptmv
10 SRCS= opt_scsi.h opt_cam.h
11 SRCS+= bus_if.h device_if.h pci_if.h
12 SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c
13 BLOB_OBJS+= ${HPTMV}/${MACHINE_CPUARCH}-elf.hptmvraid.o
14
15 #
16 # Debug Options:
17 #
18 #   -DDEBUG: include debug code
19 #   -DDEBUG_LEVEL=x:
20 #               0 - No debug output message
21 #               1 - print only error messages
22 #               2 - print error and warning
23 #               3 - print all messages (info, warning, error)
24 #
25 #DEBUGOPT = -O2
26
27 .if defined(DEBUG) && $(DEBUG) == 1
28 DEBUGOPT += -DDEBUG
29 .if defined(DEBUG_LEVEL)
30 DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
31 .else
32 DEBUGOPT += -DDEBUG_LEVEL=1
33 .endif
34 .endif
35
36 .if defined(FOR_DEMO) && $(FOR_DEMO) == 1
37 DEBUGOPT += -DFOR_DEMO
38 .endif
39
40 CFLAGS = ${DEBUGOPT}
41
42 .include <bsd.kmod.mk>