Switch to CVS 1.12.11
[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 $
fffa0a21 2# $DragonFly: src/gnu/usr.bin/cvs/lib/Makefile,v 1.9 2005/03/13 11:43:08 corecode 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 15YFLAGS=
fffa0a21 16CLEANFILES+= config.h alloca.h getopt.h
984263bc
MD
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
fffa0a21
SS
25SRCS= config.h \
26 sighandle.c allocsa.c alloca.h basename.c dirname.c stripslash.c \
27 exitfail.c getdate.c getopt.h getopt.c getopt1.c gettime.c \
28 getnline.c md5.c save-cwd.c strftime.c xmalloc.c xalloc-die.c \
29 xgetcwd.c xgethostname.c xreadlink.c yesno.c \
30 sunos57-select.c getline.c getndelim2.c mktime.c \
31 getpass.c rpmatch.c vasnprintf.c printf-args.c printf-parse.c \
32 asnprintf.c
984263bc
MD
33
34config.h: config.h.proto
0ca1e6f2 35 sed -e "s,@VERSION@,${VERSION}-DragonFly,g" \
984263bc
MD
36 -e "s,@UMASK_DFLT@,${CVS_UMASK_DFLT},g" \
37 -e "s,@TMPDIR_DFLT@,${CVS_TMPDIR_DFLT},g" \
38 -e "s,@CVS_ADMIN_GROUP@,${CVS_ADMIN_GROUP},g" \
39 ${.ALLSRC} > ${.TARGET}
40
fffa0a21
SS
41alloca.h: alloca_.h
42 cp ${.ALLSRC} ${.TARGET}
43
44getopt.h: getopt_.h
45 cp ${.ALLSRC} ${.TARGET}
46
984263bc 47.include <bsd.lib.mk>