2006-03-03 04:11:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PREFIX?= /usr/local
|
|
|
|
BINDIR?= ${PREFIX}/bin
|
|
|
|
MANDIR?= ${PREFIX}/man/man
|
|
|
|
|
|
|
|
UNAME!= /usr/bin/uname -s
|
|
|
|
|
|
|
|
PROG= csup
|
2006-03-14 03:51:13 +00:00
|
|
|
SRCS= attrstack.c config.c detailer.c diff.c fattr.c fixups.c fnmatch.c \
|
|
|
|
globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \
|
2008-10-19 09:08:59 +00:00
|
|
|
pathcomp.c proto.c status.c stream.c threads.c token.l updater.c \
|
2008-10-25 10:54:28 +00:00
|
|
|
rcsfile.c rcsparse.c lex.rcs.c rsyncfile.c
|
2006-03-03 04:11:29 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG
|
2008-10-19 09:08:59 +00:00
|
|
|
WARNS?= 1
|
2006-03-03 04:11:29 +00:00
|
|
|
|
|
|
|
# A bit of tweaking is needed to get this Makefile working
|
|
|
|
# with the bsd.prog.mk of all the *BSD OSes...
|
|
|
|
.if (${UNAME} == "NetBSD")
|
|
|
|
LDFLAGS+= -pthread
|
|
|
|
YHEADER= yes
|
|
|
|
|
|
|
|
.elif (${UNAME} == "OpenBSD")
|
|
|
|
# I bet there's a better way to do this with the OpenBSD mk
|
|
|
|
# framework but well, this works and I got bored.
|
|
|
|
LDFLAGS+= -pthread
|
|
|
|
YFLAGS= -d
|
|
|
|
CLEANFILES+= parse.c parse.h y.tab.h
|
|
|
|
|
|
|
|
config.c: parse.h
|
|
|
|
|
|
|
|
token.l: parse.h
|
|
|
|
|
|
|
|
y.tab.h: parse.c
|
|
|
|
|
|
|
|
parse.h: y.tab.h
|
|
|
|
cp ${.ALLSRC} ${.TARGET}
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DPADD= ${LIBCRYPTO} ${LIBZ}
|
|
|
|
LDADD= -lcrypto -lz
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|