hammer2 - Add 'cleanup' command, retool h2 build for conf/files inclusion
[dragonfly.git] / sbin / hammer2 / Makefile
blob8fcb418d88142279a70ff354934c63e392723b8c
1 PROG= hammer2
2 SRCS= main.c subs.c icrc.c
3 SRCS+= cmd_remote.c cmd_snapshot.c cmd_pfs.c
4 SRCS+= cmd_service.c cmd_leaf.c cmd_debug.c
5 SRCS+= cmd_rsa.c cmd_stat.c cmd_setcomp.c cmd_setcheck.c
6 SRCS+= cmd_bulkfree.c cmd_cleanup.c cmd_info.c
7 SRCS+= print_inode.c
8 MAN= hammer2.8
9 #NOMAN= TRUE
10 DEBUG_FLAGS=-g
12 CFLAGS+= -DXXH_NAMESPACE=h2_
13 CFLAGS+= -I${.CURDIR}/../../sys
14 CFLAGS+= -pthread
15 LDADD= -ldmsg -lm -lutil
16 DPADD= ${LIBDMSG} ${LIBM} ${LIBUTIL}
18 DPADD+= ${LIBRECRYPTO}
19 LDADD+= -lprivate_crypto
20 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
21 CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include
23 #.PATH: ${.CURDIR}/../../sys/libkern
24 #SRCS+= crc32.c
25 .PATH: ${.CURDIR}/../../sys/vfs/hammer2/xxhash
26 SRCS+= xxhash.c
28 .include <bsd.prog.mk>