Blob


1 .PATH:${.CURDIR}/../lib
2 .PATH:${.CURDIR}/../gotd
4 .include "../got-version.mk"
6 .if ${GOT_RELEASE} == "Yes"
7 BINDIR ?= ${PREFIX}/bin
8 .endif
10 PROG= gitwrapper
12 SRCS= gitwrapper.c parse.y log.c dial.c path.c error.c auth.c \
13 reference_parse.c hash.c object_parse.c imsg.c \
14 inflate.c pollfd.c
16 CLEANFILES = parse.h
18 MAN = ${PROG}.1
20 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
22 .if defined(PROFILE)
23 LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
24 .else
25 LDADD = -lutil -lz -lm -levent
26 .endif
27 DPADD = ${LIBZ} ${LIBUTIL}
29 .if ${GOT_RELEASE} != "Yes"
30 NOMAN = Yes
31 .endif
33 realinstall:
34 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
35 -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
37 .include <bsd.prog.mk>