Makefile revision 1.7
1# $NetBSD: Makefile,v 1.7 2023/09/25 21:59:38 oster Exp $ 2 3.include "../Makefile.inc" 4 5IOCONF= raid.ioconf 6 7.PATH: ${S}/dev/raidframe 8 9KMOD= raid 10 11SRCS+= rf_acctrace.c rf_alloclist.c rf_aselect.c 12SRCS+= rf_callback.c rf_chaindecluster.c 13SRCS+= rf_cvscan.c rf_dagdegrd.c rf_dagdegwr.c 14SRCS+= rf_dagffrd.c rf_dagffwr.c rf_dagfuncs.c 15SRCS+= rf_dagutils.c rf_debugMem.c rf_debugprint.c 16SRCS+= rf_decluster.c rf_declusterPQ.c rf_diskqueue.c 17SRCS+= rf_disks.c rf_driver.c rf_engine.c 18SRCS+= rf_evenodd.c rf_evenodd_dagfuncs.c rf_evenodd_dags.c 19SRCS+= rf_fifo.c rf_interdecluster.c rf_invertq.c 20SRCS+= rf_layout.c rf_map.c rf_mcpair.c 21SRCS+= rf_netbsdkintf.c rf_nwayxor.c rf_options.c 22SRCS+= rf_paritylog.c rf_paritylogDiskMgr.c rf_paritylogging.c 23SRCS+= rf_parityloggingdags.c rf_paritymap.c rf_parityscan.c 24SRCS+= rf_pq.c rf_pqdeg.c rf_pqdegdags.c 25SRCS+= rf_psstatus.c rf_raid0.c rf_raid1.c 26SRCS+= rf_raid4.c rf_raid5.c rf_raid5_rotatedspare.c 27SRCS+= rf_reconbuffer.c rf_reconmap.c rf_reconstruct.c 28SRCS+= rf_reconutil.c rf_revent.c rf_shutdown.c 29SRCS+= rf_sstf.c rf_states.c rf_stripelocks.c 30SRCS+= rf_strutils.c rf_utils.c 31 32CPPFLAGS+= -DRAID_AUTOCONFIG=1 33 34# Include optional raid styles 35 36CPPFLAGS+= -DRF_INCLUDE_EVENODD=1 37CPPFLAGS+= -DRF_INCLUDE_RAID5_RS=1 38CPPFLAGS+= -DRF_INCLUDE_PARITYLOGGING=1 39CPPFLAGS+= -DRF_INCLUDE_CHAINDECLUSTER=1 40CPPFLAGS+= -DRF_INCLUDE_INTERDECLUSTER=1 41CPPFLAGS+= -DRF_INCLUDE_PARITY_DECLUSTERING=1 42CPPFLAGS+= -DRF_INCLUDE_PARITY_DECLUSTERING_DS=1 43 44.include "${.CURDIR}/../../compat/netbsd32/netbsd32.mk" 45.if ${COMPAT_USE_NETBSD32} != "no" 46CPPFLAGS.rf_netbsdkintf.c+= -DCOMPAT_NETBSD32 47.endif 48 49WARNS= 3 50 51.include <bsd.kmodule.mk> 52