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