sbin/hammer2: Remove HAMMER1 comment from dirhash()
[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
3 .include "${.CURDIR}/../Makefile.inc"
4
5 .PATH: ${CVSDIR}/src
6 .PATH: ${CVSDIR}/lib
7
8 LIB=            cvs
9 INTERNALLIB=    YES
10
11 CFLAGS+=        -I. -I${CVSDIR}/src -I${CVSDIR}/lib -I${.CURDIR}
12 CFLAGS+=        -DHAVE_CONFIG_H
13 CLEANFILES+=    config.h getopt.h glob.h
14
15 CVS_UMASK_DFLT?=        002
16 CVS_ADMIN_GROUP?=       cvsadmin
17 CVS_TMPDIR_DFLT?=       /tmp
18 CVS_OVERRIDE_CONF?=     /etc/cvs.conf
19 CVS_OVERRIDE_DIR?=      /etc/cvs/
20
21 SRCS=   config.h \
22         getopt.h \
23         glob.h \
24         sighandle.c \
25         allocsa.c \
26         cycle-check.c \
27         basename.c \
28         stripslash.c \
29         getnline.c  \
30         getdelim.c \
31         strnlen1.c \
32         xalloc-die.c \
33         xgethostname.c \
34         xreadlink.c \
35         save-cwd.c  \
36         mktime.c \
37         strftime.c  \
38         canon-host.c \
39         canonicalize.c  \
40         closeout.c \
41         dirname.c \
42         exitfail.c \
43         getdate.c \
44         getndelim2.c \
45         getopt.c \
46         getopt1.c \
47         getpass.c \
48         gettime.c \
49         glob.c \
50         mbchar.c \
51         md5.c \
52         pagealign_alloc.c \
53         quotearg.c \
54         regex.c \
55         rpmatch.c \
56         strcasecmp.c \
57         dup-safer.c \
58         fd-safer.c \
59         vasnprintf.c \
60         printf-args.c \
61         printf-parse.c \
62         asnprintf.c \
63         xmalloc.c \
64         xgetcwd.c \
65         yesno.c
66
67 # use mempcpy() from libc
68 #SRCS+= mempcpy.c
69
70 config.h: config.h.proto
71         sed -e "s,@VERSION@,${CVSVERSION}-DragonFly,g" \
72             -e "s,@UMASK_DFLT@,${CVS_UMASK_DFLT},g" \
73             -e "s,@TMPDIR_DFLT@,${CVS_TMPDIR_DFLT},g" \
74             -e "s,@CVS_ADMIN_GROUP@,${CVS_ADMIN_GROUP},g" \
75             -e "s,@CVS_OVERRIDE_DIR@,${CVS_OVERRIDE_DIR},g" \
76             -e "s,@CVS_OVERRIDE_CONF@,${CVS_OVERRIDE_CONF},g" \
77             ${.ALLSRC} > ${.TARGET}
78
79 getopt.h: getopt_.h
80         cp ${.ALLSRC} ${.TARGET}
81
82 glob.h: glob_.h
83         cp ${.ALLSRC} ${.TARGET}
84
85 .include <bsd.lib.mk>