summaryrefslogtreecommitdiffstats
path: root/sys/modules/hptmv
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-10-24 08:38:29 +0000
committerscottl <scottl@FreeBSD.org>2004-10-24 08:38:29 +0000
commit3fd282d467e913489e0c4656d26b28c786762458 (patch)
tree0a31bb804bd508f0dfe6dff97efc0833a2ca5cf1 /sys/modules/hptmv
parent7c32b1fe319a34aec844fa348b880c3f92790fe8 (diff)
downloadFreeBSD-src-3fd282d467e913489e0c4656d26b28c786762458.zip
FreeBSD-src-3fd282d467e913489e0c4656d26b28c786762458.tar.gz
Clean up some messy Makefile stuff so that this can be built into the
kernel.
Diffstat (limited to 'sys/modules/hptmv')
-rw-r--r--sys/modules/hptmv/Makefile23
1 files changed, 4 insertions, 19 deletions
diff --git a/sys/modules/hptmv/Makefile b/sys/modules/hptmv/Makefile
index 4682329..a444cd6 100644
--- a/sys/modules/hptmv/Makefile
+++ b/sys/modules/hptmv/Makefile
@@ -10,27 +10,14 @@ HPTMV= ${.CURDIR}/../../contrib/dev/hptmv
KMOD= hptmv
SRCS= opt_scsi.h opt_cam.h
SRCS+= bus_if.h device_if.h pci_if.h
-SRCS+= mv.c entry.c vers.c
+SRCS+= mv.c entry.c
SRCS+= ioctl.c hptproc.c gui_lib.c
-OBJS+= raid.o
+OBJS+= hptmvraid.o
-raid.o: ${HPTMV}/i386-elf.raid.o.uu
+hptmvraid.o: ${HPTMV}/i386-elf.raid.o.uu
uudecode -p < ${HPTMV}/i386-elf.raid.o.uu > ${.TARGET}
#
-# Driver version number.
-#
-.ifndef DRIVER_VERSION
-DRIVER_VERSION = "1.1"
-.endif
-
-vers.c: mv.o
- @echo char DRIVER_VERSION[]=\"$(DRIVER_VERSION)\"\; > ${.OBJDIR}/$(.TARGET)
-
-# calculate system pointer size.
-BITS_PER_LONG= 4
-
-#
# Debug Options:
#
# -DDEBUG: include debug code
@@ -55,8 +42,6 @@ DEBUGOPT += -DDEBUG_LEVEL=1
DEBUGOPT += -DFOR_DEMO
.endif
-CFLAGS+= -D__KERNEL__=1 -DKERNEL=1 -D_KERNEL=1 -D_FREEBSD_=1 ${DEBUGOPT} \
- -DBITS_PER_LONG=$(BITS_PER_LONG)
+CFLAGS+= ${DEBUGOPT}
-CLEANFILES += vers.c
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud