Makefile revision 275079
1160814Ssimon# $FreeBSD: head/usr.bin/svn/svn/Makefile 275079 2014-11-25 21:43:51Z bapt $
2160814Ssimon
3160814Ssimon.include "${.CURDIR}/../Makefile.inc"
4160814Ssimon
5160814Ssimon.PATH:	${SVNDIR}/svn
6160814Ssimon
7160814SsimonPROG=	svn${SVNLITE}
8160814Ssimon
9160814SsimonSRCS=	add-cmd.c blame-cmd.c cat-cmd.c changelist-cmd.c checkout-cmd.c \
10160814Ssimon	cl-conflicts.c cleanup-cmd.c commit-cmd.c conflict-callbacks.c \
11160814Ssimon	copy-cmd.c delete-cmd.c deprecated.c diff-cmd.c export-cmd.c \
12160814Ssimon	file-merge.c help-cmd.c import-cmd.c info-cmd.c list-cmd.c \
13160814Ssimon	lock-cmd.c log-cmd.c merge-cmd.c mergeinfo-cmd.c mkdir-cmd.c \
14160814Ssimon	move-cmd.c notify.c patch-cmd.c propdel-cmd.c propedit-cmd.c \
15160814Ssimon	propget-cmd.c proplist-cmd.c props.c propset-cmd.c relocate-cmd.c \
16160814Ssimon	resolve-cmd.c resolved-cmd.c revert-cmd.c status-cmd.c status.c \
17160814Ssimon	svn.c switch-cmd.c unlock-cmd.c update-cmd.c upgrade-cmd.c util.c 
18160814Ssimon
19160814SsimonCFLAGS+=-I${SVNDIR}/include -I${SVNDIR} -I${.CURDIR}/.. \
20194206Ssimon	-I${.CURDIR}/../lib/libapr \
21194206Ssimon	-I${APR}/include/arch/unix \
22194206Ssimon	-I${APR}/include \
23194206Ssimon	-I${.CURDIR}/../lib/libapr_util \
24194206Ssimon	-I${APRU}/include/private \
25194206Ssimon	-I${APRU}/include
26194206Ssimon
27194206SsimonLDADD=	-L${LIBSVN_CLIENTDIR} -lsvn_client \
28194206Ssimon	-L${LIBSVN_WCDIR} -lsvn_wc \
29160814Ssimon	-L${LIBSVN_RADIR} -lsvn_ra \
30160814Ssimon	-L${LIBSVN_RA_LOCALDIR} -lsvn_ra_local \
31160814Ssimon	-L${LIBSVN_RA_SVNDIR} -lsvn_ra_svn \
32160814Ssimon	-L${LIBSVN_RA_SERFDIR} -lsvn_ra_serf \
33160814Ssimon	-L${LIBSVN_REPOSDIR} -lsvn_repos \
34160814Ssimon	-L${LIBSVN_FSDIR} -lsvn_fs \
35194206Ssimon	-L${LIBSVN_FS_FSDIR} -lsvn_fs_fs \
36194206Ssimon	-L${LIBSVN_FS_UTILDIR} -lsvn_fs_util \
37194206Ssimon	-L${LIBSVN_DELTADIR} -lsvn_delta \
38160814Ssimon	-L${LIBSVN_DIFFDIR} -lsvn_diff \
39160814Ssimon	-L${LIBSVN_SUBRDIR} -lsvn_subr \
40160814Ssimon	-L${LIBSERFDIR} -lserf \
41160814Ssimon	-L${LIBAPR_UTILDIR} -lapr-util \
42160814Ssimon	-L${LIBAPRDIR} -lapr
43160814SsimonLIBADD+=	bsdxml sqlite3 z magic crypto ssl pthread
44160814Ssimon
45160814SsimonDPADD=	${LIBSVN_CLIENT} ${LIBSVN_WC} ${LIBSVN_RA} ${LIBSVN_RA_LOCAL} \
46160814Ssimon	${LIBSVN_RA_SVN} ${LIBSVN_RA_SERF} ${LIBSVN_REPOS} \
47160814Ssimon	${LIBSVN_FS} ${LIBSVN_FS_FS} ${LIBSVN_FS_UTIL} ${LIBSVN_DELTA} \
48160814Ssimon	${LIBSVN_DIFF} ${LIBSVN_SUBR} ${LIBSERF} ${LIBAPR_UTIL} \
49160814Ssimon	${LIBAPR}
50160814Ssimon
51160814SsimonCLEANFILES+=	svnlite.1
52160814Ssimon.if(defined(ORGANIZATION) && !empty(ORGANIZATION))
53160814SsimonDPSRCS+=	freebsd-organization.h
54160814SsimonCLEANFILES+=	freebsd-organization.h
55160814SsimonCFLAGS+=	-I. -DHAS_ORGANIZATION_NAME
56160814Ssimonfreebsd-organization.h:
57160814Ssimon	@echo '#define ORGANIZATION_NAME ${ORGANIZATION}' \
58160814Ssimon	    > freebsd-organization.h
59160814Ssimon.endif
60160814Ssimon
61194206Ssimonsvnlite.1: svn.1
62194206Ssimon	# Avoid the website
63194206Ssimon	sed -E 's,(^| |B|`)svn,\1svnlite,g' ${SVNDIR}/svn/svn.1 > ${.OBJDIR}/svnlite.1
64194206Ssimon
65194206Ssimon.include <bsd.prog.mk>
66194206Ssimon