xref: /freebsd/sys/modules/zfs/Makefile (revision 5c65a0a9163cc00389d8527ee12c4e69df07ea42)
1SRCDIR=${SRCTOP}/sys/contrib/openzfs/module
2INCDIR=${SRCTOP}/sys/contrib/openzfs/include
3
4KMOD=	zfs
5
6.PATH:	${SRCDIR}/avl \
7	${SRCDIR}/lua \
8	${SRCDIR}/nvpair \
9	${SRCDIR}/icp/algs/blake3 \
10	${SRCDIR}/icp/algs/edonr \
11	${SRCDIR}/icp/algs/sha2 \
12	${SRCDIR}/icp/asm-aarch64/blake3 \
13	${SRCDIR}/icp/asm-aarch64/sha2 \
14	${SRCDIR}/icp/asm-arm/sha2 \
15	${SRCDIR}/icp/asm-ppc64/sha2 \
16	${SRCDIR}/icp/asm-ppc64/blake3 \
17	${SRCDIR}/icp/asm-x86_64/blake3 \
18	${SRCDIR}/icp/asm-x86_64/sha2 \
19	${SRCDIR}/os/freebsd/spl \
20	${SRCDIR}/os/freebsd/zfs \
21	${SRCDIR}/unicode \
22	${SRCDIR}/zcommon \
23	${SRCDIR}/zfs \
24	${SRCDIR}/zstd \
25	${SRCDIR}/zstd/lib/common \
26	${SRCDIR}/zstd/lib/compress \
27	${SRCDIR}/zstd/lib/decompress
28
29CFLAGS+= -I${INCDIR}
30CFLAGS+= -I${SRCDIR}/icp/include
31CFLAGS+= -I${INCDIR}/os/freebsd
32CFLAGS+= -I${INCDIR}/os/freebsd/spl
33CFLAGS+= -I${INCDIR}/os/freebsd/zfs
34CFLAGS+= -I${SRCDIR}/zstd/include
35CFLAGS+= -I${.CURDIR}
36
37CFLAGS+= -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS \
38	-DHAVE_UIO_ZEROCOPY -DWITHOUT_NETDUMP -D__KERNEL -D_SYS_CONDVAR_H_ \
39	-D_SYS_VMEM_H_
40
41.if ${MACHINE_ARCH} == "amd64"
42CFLAGS+= -D__x86_64 -DHAVE_SSE2 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 \
43	-DHAVE_AVX -DHAVE_AVX2 -DHAVE_AVX512F -DHAVE_AVX512VL -DHAVE_AVX512BW
44.endif
45
46.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
47	${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm"
48CFLAGS+= -DBITS_PER_LONG=32
49.else
50CFLAGS+= -DBITS_PER_LONG=64
51.endif
52
53SRCS=	vnode_if.h device_if.h bus_if.h
54
55# avl
56SRCS+=	avl.c
57
58# icp
59SRCS+=	edonr.c
60
61#icp/algs/blake3
62SRCS+=	blake3.c \
63	blake3_generic.c \
64	blake3_impl.c
65
66
67.if ${MACHINE_ARCH} == "aarch64"
68#icp/asm-aarch64/blake3
69SRCS+=	b3_aarch64_sse2.S \
70	b3_aarch64_sse41.S
71.endif
72
73.if ${MACHINE_ARCH} == "powerpc64le"
74#icp/asm-ppc64/blake3
75SRCS+=	b3_ppc64le_sse2.S \
76	b3_ppc64le_sse41.S
77.endif
78
79.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
80#icp/asm-x86_64/blake3
81SRCS+=	blake3_avx2.S \
82	blake3_avx512.S \
83	blake3_sse2.S \
84	blake3_sse41.S
85.endif
86
87#icp/algs/sha2
88SRCS+=	sha2_generic.c \
89	sha256_impl.c \
90	sha512_impl.c
91
92.if ${MACHINE_ARCH} == "armv7"
93#icp/asm-arm/sha2
94SRCS+=	sha256-armv7.S \
95	sha512-armv7.S
96.endif
97
98.if ${MACHINE_ARCH} == "aarch64"
99#icp/asm-aarch64/sha2
100OBJS+=	zfs-sha256-armv8.o \
101	zfs-sha512-armv8.o
102.endif
103
104.if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc64le"
105#icp/asm-ppc64/sha2
106SRCS+=	sha256-p8.S \
107	sha512-p8.S \
108	sha256-ppc.S \
109	sha512-ppc.S
110.endif
111
112.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
113#icp/asm-x86_64/sha2
114OBJS+=	zfs-sha256-x86_64.o \
115	zfs-sha512-x86_64.o
116.endif
117
118#lua
119SRCS+=	lapi.c \
120	lauxlib.c \
121	lbaselib.c \
122	lcode.c \
123	lcompat.c \
124	lcorolib.c \
125	lctype.c \
126	ldebug.c \
127	ldo.c \
128	lfunc.c \
129	lgc.c \
130	llex.c \
131	lmem.c \
132	lobject.c \
133	lopcodes.c \
134	lparser.c \
135	lstate.c \
136	lstring.c \
137	lstrlib.c \
138	ltable.c \
139	ltablib.c \
140	ltm.c \
141	lvm.c \
142	lzio.c
143
144#nvpair
145SRCS+=	nvpair.c \
146	fnvpair.c \
147	nvpair_alloc_spl.c \
148	nvpair_alloc_fixed.c
149
150#os/freebsd/spl
151SRCS+=	acl_common.c \
152	callb.c \
153	list.c \
154	spl_acl.c \
155	spl_cmn_err.c \
156	spl_dtrace.c \
157	spl_kmem.c \
158	spl_kstat.c \
159	spl_misc.c \
160	spl_policy.c \
161	spl_procfs_list.c \
162	spl_string.c \
163	spl_sunddi.c \
164	spl_sysevent.c \
165	spl_taskq.c \
166	spl_uio.c \
167	spl_vfs.c \
168	spl_vm.c \
169	spl_zlib.c \
170	spl_zone.c
171
172
173.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
174	${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm"
175SRCS+= spl_atomic.c
176.endif
177
178#os/freebsd/zfs
179SRCS+=	abd_os.c \
180	arc_os.c \
181	crypto_os.c \
182	dmu_os.c \
183	event_os.c \
184	hkdf.c \
185	kmod_core.c \
186	spa_os.c \
187	sysctl_os.c \
188	vdev_file.c \
189	vdev_geom.c \
190	vdev_label_os.c \
191	zfs_acl.c \
192	zfs_ctldir.c \
193	zfs_debug.c \
194	zfs_dir.c \
195	zfs_ioctl_compat.c \
196	zfs_ioctl_os.c \
197	zfs_racct.c \
198	zfs_vfsops.c \
199	zfs_vnops_os.c \
200	zfs_znode_os.c \
201	zio_crypt.c \
202	zvol_os.c
203
204#unicode
205SRCS+=	u8_textprep.c
206
207#zcommon
208SRCS+=	zfeature_common.c \
209	zfs_comutil.c \
210	zfs_deleg.c \
211	zfs_fletcher.c \
212	zfs_fletcher_avx512.c \
213	zfs_fletcher_intel.c \
214	zfs_fletcher_sse.c \
215	zfs_fletcher_superscalar.c \
216	zfs_fletcher_superscalar4.c \
217	zfs_namecheck.c \
218	zfs_prop.c \
219	zfs_valstr.c \
220	zpool_prop.c \
221	zprop_common.c
222
223#zfs
224SRCS+=	abd.c \
225	aggsum.c \
226	arc.c \
227	blake3_zfs.c \
228	blkptr.c \
229	bplist.c \
230	bpobj.c \
231	brt.c \
232	btree.c \
233	cityhash.c \
234	dbuf.c \
235	dbuf_stats.c \
236	bptree.c \
237	bqueue.c \
238	dataset_kstats.c \
239	ddt.c \
240	ddt_log.c \
241	ddt_stats.c \
242	ddt_zap.c \
243	dmu.c \
244	dmu_direct.c \
245	dmu_diff.c \
246	dmu_object.c \
247	dmu_objset.c \
248	dmu_recv.c \
249	dmu_redact.c \
250	dmu_send.c \
251	dmu_traverse.c \
252	dmu_tx.c \
253	dmu_zfetch.c \
254	dnode.c \
255	dnode_sync.c \
256	dsl_dataset.c \
257	dsl_deadlist.c \
258	dsl_deleg.c \
259	dsl_bookmark.c \
260	dsl_dir.c \
261	dsl_crypt.c \
262	dsl_destroy.c \
263	dsl_pool.c \
264	dsl_prop.c \
265	dsl_scan.c \
266	dsl_synctask.c \
267	dsl_userhold.c \
268	edonr_zfs.c \
269	fm.c \
270	gzip.c \
271	lzjb.c \
272	lz4.c \
273	lz4_zfs.c \
274	metaslab.c \
275	mmp.c \
276	multilist.c \
277	objlist.c \
278	pathname.c \
279	range_tree.c \
280	refcount.c \
281	rrwlock.c \
282	sa.c \
283	sha2_zfs.c \
284	skein_zfs.c \
285	spa.c \
286	spa_checkpoint.c \
287	spa_config.c \
288	spa_errlog.c \
289	spa_history.c \
290	spa_log_spacemap.c \
291	spa_misc.c \
292	spa_stats.c \
293	space_map.c \
294	space_reftree.c \
295	txg.c \
296	uberblock.c \
297	unique.c \
298	vdev.c \
299	vdev_draid.c \
300	vdev_draid_rand.c \
301	vdev_indirect.c \
302	vdev_indirect_births.c \
303	vdev_indirect_mapping.c \
304	vdev_initialize.c \
305	vdev_label.c \
306	vdev_mirror.c \
307	vdev_missing.c \
308	vdev_queue.c \
309	vdev_raidz.c \
310	vdev_raidz_math.c \
311	vdev_raidz_math_scalar.c \
312	vdev_raidz_math_avx2.c \
313	vdev_raidz_math_avx512bw.c \
314	vdev_raidz_math_avx512f.c \
315	vdev_raidz_math_sse2.c \
316	vdev_raidz_math_ssse3.c \
317	vdev_rebuild.c \
318	vdev_removal.c \
319	vdev_root.c \
320	vdev_trim.c \
321	zap.c \
322	zap_leaf.c \
323	zap_micro.c \
324	zcp.c \
325	zcp_get.c \
326	zcp_global.c \
327	zcp_iter.c \
328	zcp_set.c \
329	zcp_synctask.c \
330	zfeature.c \
331	zfs_byteswap.c \
332	zfs_chksum.c \
333	zfs_file_os.c \
334	zfs_fm.c \
335	zfs_fuid.c \
336	zfs_impl.c \
337	zfs_ioctl.c \
338	zfs_log.c \
339	zfs_onexit.c \
340	zfs_quota.c \
341	zfs_ratelimit.c \
342	zfs_replay.c \
343	zfs_rlock.c \
344	zfs_sa.c \
345	zfs_vnops.c \
346	zfs_znode.c \
347	zil.c \
348	zio.c \
349	zio_checksum.c \
350	zio_compress.c \
351	zio_inject.c \
352	zle.c \
353	zrlock.c \
354	zthr.c \
355	zvol.c
356
357#zstd
358SRCS+=	zfs_zstd.c \
359	entropy_common.c \
360	error_private.c \
361	fse_compress.c \
362	fse_decompress.c \
363	hist.c \
364	huf_compress.c \
365	huf_decompress.c \
366	pool.c \
367	xxhash.c \
368	zstd_common.c \
369	zstd_compress.c \
370	zstd_compress_literals.c \
371	zstd_compress_sequences.c \
372	zstd_compress_superblock.c \
373	zstd_ddict.c \
374	zstd_decompress.c \
375	zstd_decompress_block.c \
376	zstd_double_fast.c \
377	zstd_fast.c \
378	zstd_lazy.c \
379	zstd_ldm.c \
380	zstd_opt.c
381
382.include <bsd.kmod.mk>
383
384CFLAGS+= -include ${SRCTOP}/sys/cddl/compat/opensolaris/sys/debug_compat.h
385CFLAGS+= -include ${INCDIR}/os/freebsd/spl/sys/ccompile.h
386CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/static_ccompile.h
387
388CFLAGS.sysctl_os.c= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h
389CFLAGS.xxhash.c+= -include ${SRCTOP}/sys/sys/_null.h
390
391CFLAGS.gcc+= -Wno-pointer-to-int-cast
392
393CFLAGS.abd.c= -Wno-cast-qual
394CFLAGS.ddt.c= -Wno-cast-qual
395CFLAGS.ddt_log.c= -Wno-cast-qual -Wno-pointer-arith
396CFLAGS.ddt_zap.c= -Wno-cast-qual
397CFLAGS.dmu.c= -Wno-cast-qual
398CFLAGS.dmu_traverse.c= -Wno-cast-qual
399CFLAGS.dnode.c= ${NO_WUNUSED_BUT_SET_VARIABLE}
400CFLAGS.dsl_deadlist.c= -Wno-cast-qual
401CFLAGS.dsl_dir.c= -Wno-cast-qual
402CFLAGS.dsl_prop.c= -Wno-cast-qual
403CFLAGS.edonr.c= -Wno-cast-qual
404CFLAGS.fm.c= -Wno-cast-qual
405CFLAGS.hist.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
406CFLAGS.lapi.c= -Wno-cast-qual
407CFLAGS.lcompat.c= -Wno-cast-qual
408CFLAGS.ldo.c= ${NO_WINFINITE_RECURSION}
409CFLAGS.lobject.c= -Wno-cast-qual
410CFLAGS.ltable.c= -Wno-cast-qual
411CFLAGS.lvm.c= -Wno-cast-qual
412CFLAGS.lz4.c= -Wno-cast-qual
413CFLAGS.lz4_zfs.c= -Wno-cast-qual
414CFLAGS.nvpair.c= -Wno-cast-qual -DHAVE_RPC_TYPES ${NO_WSTRINGOP_OVERREAD}
415CFLAGS.pool.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
416CFLAGS.pool.c= -U__BMI__ -fno-tree-vectorize
417CFLAGS.spa.c= -Wno-cast-qual
418CFLAGS.spa_misc.c= -Wno-cast-qual
419CFLAGS.spl_string.c= -Wno-cast-qual
420CFLAGS.spl_vm.c= -Wno-cast-qual
421CFLAGS.spl_zlib.c= -Wno-cast-qual
422CFLAGS.u8_textprep.c= -Wno-cast-qual
423CFLAGS.vdev_draid.c= -Wno-cast-qual
424CFLAGS.vdev_raidz.c= -Wno-cast-qual
425CFLAGS.vdev_raidz_math.c= -Wno-cast-qual
426CFLAGS.vdev_raidz_math_avx2.c= -Wno-cast-qual -Wno-duplicate-decl-specifier
427CFLAGS.vdev_raidz_math_avx512f.c= -Wno-cast-qual -Wno-duplicate-decl-specifier
428CFLAGS.vdev_raidz_math_scalar.c= -Wno-cast-qual
429CFLAGS.vdev_raidz_math_sse2.c= -Wno-cast-qual -Wno-duplicate-decl-specifier
430CFLAGS.zap_leaf.c= -Wno-cast-qual
431CFLAGS.zap_micro.c= -Wno-cast-qual
432CFLAGS.zcp.c= -Wno-cast-qual
433CFLAGS.zfs_fletcher.c= -Wno-cast-qual -Wno-pointer-arith
434CFLAGS.zfs_fletcher_avx512.c= -Wno-cast-qual -Wno-pointer-arith
435CFLAGS.zfs_fletcher_intel.c= -Wno-cast-qual -Wno-pointer-arith
436CFLAGS.zfs_fletcher_sse.c= -Wno-cast-qual -Wno-pointer-arith
437CFLAGS.zfs_fm.c= -Wno-cast-qual ${NO_WUNUSED_BUT_SET_VARIABLE}
438CFLAGS.zfs_ioctl.c= -Wno-cast-qual
439CFLAGS.zfs_log.c= -Wno-cast-qual
440CFLAGS.zfs_vnops_os.c= -Wno-pointer-arith
441CFLAGS.zfs_zstd.c= -Wno-cast-qual -Wno-pointer-arith
442CFLAGS.zil.c= -Wno-cast-qual
443CFLAGS.zio.c= -Wno-cast-qual
444CFLAGS.zprop_common.c= -Wno-cast-qual
445CFLAGS.zrlock.c= -Wno-cast-qual
446
447#zstd
448CFLAGS.entropy_common.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
449CFLAGS.error_private.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
450CFLAGS.fse_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} ${NO_WUNUSED_BUT_SET_VARIABLE}
451CFLAGS.fse_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
452CFLAGS.huf_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
453CFLAGS.huf_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
454CFLAGS.xxhash.c+= -U__BMI__ -fno-tree-vectorize
455CFLAGS.xxhash.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
456CFLAGS.zstd.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
457CFLAGS.zstd_common.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
458CFLAGS.zstd_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
459CFLAGS.zstd_compress_literals.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
460CFLAGS.zstd_compress_sequences.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
461CFLAGS.zstd_compress_superblock.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} ${NO_WUNUSED_BUT_SET_VARIABLE}
462CFLAGS.zstd_ddict.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
463CFLAGS.zstd_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
464CFLAGS.zstd_decompress_block.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
465CFLAGS.zstd_double_fast.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
466CFLAGS.zstd_fast.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
467CFLAGS.zstd_lazy.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
468CFLAGS.zstd_ldm.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
469CFLAGS.zstd_opt.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
470
471.if ${MACHINE_ARCH} == "aarch64"
472__ZFS_ZSTD_AARCH64_FLAGS= -include ${SRCDIR}/zstd/include/aarch64_compat.h
473CFLAGS.zstd.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
474CFLAGS.entropy_common.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
475CFLAGS.error_private.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
476CFLAGS.fse_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
477CFLAGS.fse_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
478CFLAGS.hist.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
479CFLAGS.huf_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
480CFLAGS.huf_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
481CFLAGS.pool.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
482CFLAGS.xxhash.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
483CFLAGS.zstd_common.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
484CFLAGS.zstd_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
485CFLAGS.zstd_compress_literals.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
486CFLAGS.zstd_compress_sequences.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
487CFLAGS.zstd_compress_superblock.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
488CFLAGS.zstd_ddict.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
489CFLAGS.zstd_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
490CFLAGS.zstd_decompress_block.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
491CFLAGS.zstd_double_fast.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
492CFLAGS.zstd_fast.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
493CFLAGS.zstd_lazy.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
494CFLAGS.zstd_ldm.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
495CFLAGS.zstd_opt.c+= ${__ZFS_ZSTD_AARCH64_FLAGS}
496
497b3_aarch64_sse2.o: b3_aarch64_sse2.S
498	${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \
499	     -o ${.TARGET}
500	${CTFCONVERT_CMD}
501
502b3_aarch64_sse41.o: b3_aarch64_sse41.S
503	${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \
504	     -o ${.TARGET}
505	${CTFCONVERT_CMD}
506
507zfs-sha256-armv8.o: sha256-armv8.S
508	${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} \
509	    ${SRCDIR}/icp/asm-aarch64/sha2/sha256-armv8.S \
510	    -o ${.TARGET}
511	${CTFCONVERT_CMD}
512
513zfs-sha512-armv8.o: sha512-armv8.S
514	${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} \
515	    ${SRCDIR}/icp/asm-aarch64/sha2/sha512-armv8.S \
516	    -o ${.TARGET}
517	${CTFCONVERT_CMD}
518.endif
519
520.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
521zfs-sha256-x86_64.o: sha256-x86_64.S
522	${CC} -c ${CFLAGS} ${WERROR} \
523	    ${SRCDIR}/icp/asm-x86_64/sha2/sha256-x86_64.S \
524	    -o ${.TARGET}
525	${CTFCONVERT_CMD}
526
527zfs-sha512-x86_64.o: sha512-x86_64.S
528	${CC} -c ${CFLAGS} ${WERROR} \
529	    ${SRCDIR}/icp/asm-x86_64/sha2/sha512-x86_64.S \
530	    -o ${.TARGET}
531	${CTFCONVERT_CMD}
532.endif
533