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.15 2007/09/04 16:53:56 corecode Exp $ 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 14CFLAGS+= -DHAVE_CONFIG_H -DIN_LIBINTL 15YFLAGS= 16CLEANFILES+= config.h alloca.h getopt.h glob.h 17 18CVS_UMASK_DFLT?= 002 19CVS_ADMIN_GROUP?= cvsadmin 20CVS_TMPDIR_DFLT?= /tmp 21 22SRCS= config.h \ 23 sighandle.c allocsa.c alloca.h basename.c dirname.c stripslash.c \ 24 exitfail.c getdate.c getopt.h getopt.c getopt1.c gettime.c \ 25 getnline.c md5.c save-cwd.c strftime.c xmalloc.c xalloc-die.c \ 26 xgetcwd.c xgethostname.c xreadlink.c yesno.c \ 27 pagealign_alloc.c getline.c getndelim2.c mktime.c \ 28 getpass.c rpmatch.c vasnprintf.c printf-args.c printf-parse.c \ 29 asnprintf.c closeout.c quotearg.c memrchr.c canon-host.c \ 30 canonicalize.c strcasecmp.c getdelim.c glob.h glob.c \ 31 cycle-check.c fd-safer.c dup-safer.c mbchar.c strnlen1.c \ 32 mempcpy.c 33 34config.h: config.h.proto 35 sed -e "s,@VERSION@,${CVSVERSION}-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 41alloca.h: alloca_.h 42 cp ${.ALLSRC} ${.TARGET} 43 44getopt.h: getopt_.h 45 cp ${.ALLSRC} ${.TARGET} 46 47glob.h: glob_.h 48 cp ${.ALLSRC} ${.TARGET} 49 50.include <bsd.lib.mk> 51