Switch to CVS 1.12.11
[dragonfly.git] / gnu / usr.bin / cvs / lib / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cvs/lib/Makefile,v 1.19.2.4 2003/01/21 23:06:52 peter Exp $
2 # $DragonFly: src/gnu/usr.bin/cvs/lib/Makefile,v 1.9 2005/03/13 11:43:08 corecode Exp $
3
4 .include "${.CURDIR}/../Makefile.inc"
5
6 .PATH: ${CVSDIR}/src
7 .PATH: ${CVSDIR}/lib
8 .PATH: ${CVSDIR}/man
9
10 LIB=            cvs
11 INTERNALLIB=    YES
12
13 CFLAGS+= -I. -I${CVSDIR}/src -I${CVSDIR}/lib
14 CFLAGS+= -DHAVE_CONFIG_H -DIN_LIBINTL
15 YFLAGS=
16 CLEANFILES+=    config.h alloca.h getopt.h
17
18 VERSION!=       sed < ${CVSDIR}/configure \
19                 -e '/^[         ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q
20
21 CVS_UMASK_DFLT?=        002
22 CVS_ADMIN_GROUP?=       cvsadmin
23 CVS_TMPDIR_DFLT?=       /tmp
24
25 SRCS=   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
33
34 config.h: config.h.proto
35         sed -e "s,@VERSION@,${VERSION}-DragonFly,g" \
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
41 alloca.h: alloca_.h
42         cp ${.ALLSRC} ${.TARGET}
43
44 getopt.h: getopt_.h
45         cp ${.ALLSRC} ${.TARGET}
46
47 .include <bsd.lib.mk>