xref: /dflybsd-src/gnu/usr.bin/cvs/lib/Makefile (revision 75c42e2cd98c104f91a64360959e2c459faeab1d)
1984263bcSMatthew Dillon# $FreeBSD: src/gnu/usr.bin/cvs/lib/Makefile,v 1.19.2.4 2003/01/21 23:06:52 peter Exp $
2984263bcSMatthew Dillon
3984263bcSMatthew Dillon.include "${.CURDIR}/../Makefile.inc"
4984263bcSMatthew Dillon
5984263bcSMatthew Dillon.PATH: ${CVSDIR}/src
6984263bcSMatthew Dillon.PATH: ${CVSDIR}/lib
7984263bcSMatthew Dillon
8984263bcSMatthew DillonLIB=		cvs
9984263bcSMatthew DillonINTERNALLIB=	YES
10984263bcSMatthew Dillon
11c0d274d0SJohn MarinoCFLAGS+= 	-I. -I${CVSDIR}/src -I${CVSDIR}/lib -I${.CURDIR}
12c0d274d0SJohn MarinoCFLAGS+= 	-DHAVE_CONFIG_H
13c0d274d0SJohn MarinoCLEANFILES+=	config.h getopt.h glob.h
14984263bcSMatthew Dillon
15984263bcSMatthew DillonCVS_UMASK_DFLT?=	002
16984263bcSMatthew DillonCVS_ADMIN_GROUP?=	cvsadmin
17984263bcSMatthew DillonCVS_TMPDIR_DFLT?=	/tmp
18c0d274d0SJohn MarinoCVS_OVERRIDE_CONF?=	/etc/cvs.conf
19c0d274d0SJohn MarinoCVS_OVERRIDE_DIR?=	/etc/cvs/
20984263bcSMatthew Dillon
21fffa0a21SSimon SchubertSRCS=	config.h \
22c0d274d0SJohn Marino	getopt.h \
23c0d274d0SJohn Marino	glob.h \
24c0d274d0SJohn Marino	sighandle.c \
25c0d274d0SJohn Marino	allocsa.c \
26c0d274d0SJohn Marino	cycle-check.c \
27c0d274d0SJohn Marino	basename.c \
28c0d274d0SJohn Marino	stripslash.c \
29c0d274d0SJohn Marino	getnline.c  \
304e035039SJohn Marino	getdelim.c \
31c0d274d0SJohn Marino	strnlen1.c \
32c0d274d0SJohn Marino	xalloc-die.c \
33c0d274d0SJohn Marino	xgethostname.c \
34c0d274d0SJohn Marino	xreadlink.c \
35c0d274d0SJohn Marino	save-cwd.c  \
36c0d274d0SJohn Marino	mktime.c \
37c0d274d0SJohn Marino	strftime.c  \
38c0d274d0SJohn Marino	canon-host.c \
39c0d274d0SJohn Marino	canonicalize.c  \
40c0d274d0SJohn Marino	closeout.c \
41c0d274d0SJohn Marino	dirname.c \
42c0d274d0SJohn Marino	exitfail.c \
43c0d274d0SJohn Marino	getdate.c \
44c0d274d0SJohn Marino	getndelim2.c \
45c0d274d0SJohn Marino	getopt.c \
46c0d274d0SJohn Marino	getopt1.c \
47c0d274d0SJohn Marino	getpass.c \
48c0d274d0SJohn Marino	gettime.c \
49c0d274d0SJohn Marino	glob.c \
50c0d274d0SJohn Marino	mbchar.c \
51c0d274d0SJohn Marino	md5.c \
52c0d274d0SJohn Marino	pagealign_alloc.c \
53c0d274d0SJohn Marino	quotearg.c \
54c0d274d0SJohn Marino	regex.c \
55c0d274d0SJohn Marino	rpmatch.c \
56c0d274d0SJohn Marino	strcasecmp.c \
57c0d274d0SJohn Marino	dup-safer.c \
58c0d274d0SJohn Marino	fd-safer.c \
59c0d274d0SJohn Marino	vasnprintf.c \
60c0d274d0SJohn Marino	printf-args.c \
61c0d274d0SJohn Marino	printf-parse.c \
62c0d274d0SJohn Marino	asnprintf.c \
63c0d274d0SJohn Marino	xmalloc.c \
64c0d274d0SJohn Marino	xgetcwd.c \
65c0d274d0SJohn Marino	yesno.c
6611bfa59bSSimon Schubert
67*75c42e2cSzrj# use mempcpy() from libc
68*75c42e2cSzrj#SRCS+=	mempcpy.c
69*75c42e2cSzrj
70984263bcSMatthew Dillonconfig.h: config.h.proto
71a7c3d9d6SSimon Schubert	sed -e "s,@VERSION@,${CVSVERSION}-DragonFly,g" \
72984263bcSMatthew Dillon	    -e "s,@UMASK_DFLT@,${CVS_UMASK_DFLT},g" \
73984263bcSMatthew Dillon	    -e "s,@TMPDIR_DFLT@,${CVS_TMPDIR_DFLT},g" \
74984263bcSMatthew Dillon	    -e "s,@CVS_ADMIN_GROUP@,${CVS_ADMIN_GROUP},g" \
75c0d274d0SJohn Marino	    -e "s,@CVS_OVERRIDE_DIR@,${CVS_OVERRIDE_DIR},g" \
76c0d274d0SJohn Marino	    -e "s,@CVS_OVERRIDE_CONF@,${CVS_OVERRIDE_CONF},g" \
77984263bcSMatthew Dillon	    ${.ALLSRC} > ${.TARGET}
78984263bcSMatthew Dillon
79fffa0a21SSimon Schubertgetopt.h: getopt_.h
80fffa0a21SSimon Schubert	cp ${.ALLSRC} ${.TARGET}
81fffa0a21SSimon Schubert
82a7c3d9d6SSimon Schubertglob.h: glob_.h
83a7c3d9d6SSimon Schubert	cp ${.ALLSRC} ${.TARGET}
84a7c3d9d6SSimon Schubert
85984263bcSMatthew Dillon.include <bsd.lib.mk>
86