]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/csup/Makefile
This commit was generated by cvs2svn to compensate for changes in r175261,
[FreeBSD/FreeBSD.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
14 CFLAGS+=        -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG
15 WARNS?=         6
16
17 # A bit of tweaking is needed to get this Makefile working
18 # with the bsd.prog.mk of all the *BSD OSes...
19 .if (${UNAME} == "NetBSD")
20 LDFLAGS+=       -pthread
21 YHEADER=        yes
22
23 .elif (${UNAME} == "OpenBSD")
24 # I bet there's a better way to do this with the OpenBSD mk
25 # framework but well, this works and I got bored.
26 LDFLAGS+=       -pthread
27 YFLAGS=         -d
28 CLEANFILES+=    parse.c parse.h y.tab.h
29
30 config.c:       parse.h
31
32 token.l:        parse.h
33
34 y.tab.h:        parse.c
35
36 parse.h:        y.tab.h
37         cp ${.ALLSRC} ${.TARGET}
38
39 .endif
40
41 DPADD=  ${LIBCRYPTO} ${LIBZ}
42 LDADD=  -lcrypto -lz
43
44 .include <bsd.prog.mk>