Makefile revision 1.2
11.2Smrg#	$NetBSD: Makefile,v 1.2 2018/01/18 00:32:48 mrg Exp $
21.1Spgoyette
31.1Spgoyette.include "../Makefile.inc"
41.1Spgoyette
51.1SpgoyetteIOCONF=	raid.ioconf
61.1Spgoyette
71.1Spgoyette.PATH:	${S}/dev/raidframe
81.1Spgoyette
91.1SpgoyetteKMOD=	raid
101.1Spgoyette
111.1SpgoyetteSRCS+=	rf_acctrace.c           rf_alloclist.c         rf_aselect.c
121.1SpgoyetteSRCS+=	rf_callback.c           rf_chaindecluster.c    rf_copyback.c
131.1SpgoyetteSRCS+=	rf_cvscan.c             rf_dagdegrd.c          rf_dagdegwr.c
141.1SpgoyetteSRCS+=	rf_dagffrd.c            rf_dagffwr.c           rf_dagfuncs.c
151.1SpgoyetteSRCS+=	rf_dagutils.c           rf_debugMem.c          rf_debugprint.c
161.1SpgoyetteSRCS+=	rf_decluster.c          rf_declusterPQ.c       rf_diskqueue.c
171.1SpgoyetteSRCS+=	rf_disks.c              rf_driver.c            rf_engine.c
181.1SpgoyetteSRCS+=	rf_evenodd.c            rf_evenodd_dagfuncs.c  rf_evenodd_dags.c
191.1SpgoyetteSRCS+=	rf_fifo.c               rf_interdecluster.c    rf_invertq.c
201.1SpgoyetteSRCS+=	rf_layout.c             rf_map.c               rf_mcpair.c
211.1SpgoyetteSRCS+=	rf_netbsdkintf.c        rf_nwayxor.c           rf_options.c
221.1SpgoyetteSRCS+=	rf_paritylog.c          rf_paritylogDiskMgr.c  rf_paritylogging.c
231.1SpgoyetteSRCS+=	rf_parityloggingdags.c  rf_paritymap.c         rf_parityscan.c
241.1SpgoyetteSRCS+=	rf_pq.c                 rf_pqdeg.c             rf_pqdegdags.c
251.1SpgoyetteSRCS+=	rf_psstatus.c           rf_raid0.c             rf_raid1.c
261.1SpgoyetteSRCS+=	rf_raid4.c              rf_raid5.c             rf_raid5_rotatedspare.c
271.1SpgoyetteSRCS+=	rf_reconbuffer.c        rf_reconmap.c          rf_reconstruct.c
281.1SpgoyetteSRCS+=	rf_reconutil.c          rf_revent.c            rf_shutdown.c
291.1SpgoyetteSRCS+=	rf_sstf.c               rf_states.c            rf_stripelocks.c
301.1SpgoyetteSRCS+=	rf_strutils.c           rf_utils.c             rf_compat50.c
311.2SmrgSRCS+=	rf_compat80.c
321.1Spgoyette
331.1SpgoyetteCPPFLAGS+=	-DRAID_AUTOCONFIG=1
341.1Spgoyette
351.1Spgoyette# Include optional raid styles
361.1Spgoyette
371.1SpgoyetteCPPFLAGS+=	-DRF_INCLUDE_EVENODD=1
381.1SpgoyetteCPPFLAGS+=	-DRF_INCLUDE_RAID5_RS=1
391.1SpgoyetteCPPFLAGS+=	-DRF_INCLUDE_PARITYLOGGING=1      
401.1SpgoyetteCPPFLAGS+=	-DRF_INCLUDE_CHAINDECLUSTER=1     
411.1SpgoyetteCPPFLAGS+=	-DRF_INCLUDE_INTERDECLUSTER=1
421.1SpgoyetteCPPFLAGS+=	-DRF_INCLUDE_PARITY_DECLUSTERING=1
431.1SpgoyetteCPPFLAGS+=	-DRF_INCLUDE_PARITY_DECLUSTERING_DS=1
441.1Spgoyette
451.1SpgoyetteCPPFLAGS+=	-DCOMPAT_50
461.2SmrgCPPFLAGS+=	-DCOMPAT_80
471.2Smrg
481.2Smrg.if ${MACHINE_CPU} == "sparc64" || \
491.2Smrg    ${MACHINE_CPU} == "x86_64" || \
501.2Smrg    ${MACHINE_CPU} == "mips64"
511.2SmrgSRCS+=	rf_compat32.c
521.2SmrgCPPFLAGS+=	-DCOMPAT_NETBSD32
531.2Smrg.endif
541.2Smrg
551.1Spgoyette
561.1Spgoyette.include <bsd.kmodule.mk>
57