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