]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/csup/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / csup / Makefile
1 # $FreeBSD$
2
3 PREFIX?=        /usr/local
4 BINDIR?=        ${PREFIX}/bin
5 MANDIR?=        ${PREFIX}/man/man
6
7 UNAME!=         /usr/bin/uname -s
8
9 PROG=   csup
10 SRCS=   attrstack.c config.c detailer.c diff.c fattr.c fixups.c fnmatch.c \
11         globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \
12         pathcomp.c proto.c status.c stream.c threads.c token.l updater.c \
13         rcsfile.c rcsparse.c lex.rcs.c rsyncfile.c
14
15 CFLAGS+=        -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG
16 WARNS?=         1
17
18 # A bit of tweaking is needed to get this Makefile working
19 # with the bsd.prog.mk of all the *BSD OSes...
20 .if (${UNAME} == "NetBSD")
21 LDFLAGS+=       -pthread
22 YHEADER=        yes
23
24 .elif (${UNAME} == "OpenBSD")
25 # I bet there's a better way to do this with the OpenBSD mk
26 # framework but well, this works and I got bored.
27 LDFLAGS+=       -pthread
28 YFLAGS=         -d
29 CLEANFILES+=    parse.c parse.h y.tab.h
30
31 config.c:       parse.h
32
33 token.l:        parse.h
34
35 y.tab.h:        parse.c
36
37 parse.h:        y.tab.h
38         cp ${.ALLSRC} ${.TARGET}
39
40 .endif
41
42 DPADD=  ${LIBCRYPTO} ${LIBZ}
43 LDADD=  -lcrypto -lz
44
45 .include <bsd.prog.mk>