Using the new contrib rev mechanism, bring cvs up to 1.12.8. Add patch files
[dragonfly.git] / gnu / usr.bin / cvs / lib / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/gnu/usr.bin/cvs/lib/Makefile,v 1.19.2.4 2003/01/21 23:06:52 peter Exp $
9360f817 2# $DragonFly: src/gnu/usr.bin/cvs/lib/Makefile,v 1.7 2004/05/20 02:27:57 dillon Exp $
984263bc
MD
3
4.include "${.CURDIR}/../Makefile.inc"
5
6.PATH: ${CVSDIR}/src
7.PATH: ${CVSDIR}/lib
8.PATH: ${CVSDIR}/man
9
10LIB= cvs
11INTERNALLIB= YES
12
13CFLAGS+= -I. -I${CVSDIR}/src -I${CVSDIR}/lib
9360f817 14CFLAGS+= -DHAVE_CONFIG_H -DIN_LIBINTL
984263bc
MD
15YFLAGS=
16CLEANFILES+= config.h
17
18VERSION!= sed < ${CVSDIR}/configure \
19 -e '/^[ ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q
20
21CVS_UMASK_DFLT?= 002
22CVS_ADMIN_GROUP?= cvsadmin
23CVS_TMPDIR_DFLT?= /tmp
24
faa1eb65
JR
25SRCS= config.h argmatch.c getdate.y getline.c getndelim2.c getnline.c \
26 getopt.c getopt1.c getpass.c lstat.c md5.c savecwd.c \
27 sighandle.c stat.c stripslash.c \
9360f817
MD
28 xmalloc.c xgetwd.c xstrdup.c yesno.c \
29 asnprintf.c vasnprintf.c ls.c stack.c \
30 printf-parse.c printf-args.c exitfail.c basename.c
984263bc
MD
31
32config.h: config.h.proto
0ca1e6f2 33 sed -e "s,@VERSION@,${VERSION}-DragonFly,g" \
984263bc
MD
34 -e "s,@UMASK_DFLT@,${CVS_UMASK_DFLT},g" \
35 -e "s,@TMPDIR_DFLT@,${CVS_TMPDIR_DFLT},g" \
36 -e "s,@CVS_ADMIN_GROUP@,${CVS_ADMIN_GROUP},g" \
37 ${.ALLSRC} > ${.TARGET}
38
39.include <bsd.lib.mk>