Blame


1 f42b1b34 2018-03-12 stsp .PATH:${.CURDIR}/../lib
2 5c860e29 2018-03-12 stsp
3 5c860e29 2018-03-12 stsp PROG= got
4 404c43c4 2018-06-21 stsp SRCS= got.c blame.c commit_graph.c delta.c diff.c diffreg.c error.c \
5 372ccdbb 2018-06-10 stsp fileindex.c object.c object_idset.c opentemp.c path.c \
6 372ccdbb 2018-06-10 stsp pack.c privsep.c reference.c repository.c sha1.c \
7 372ccdbb 2018-06-10 stsp worktree.c zbuf.c
8 5c860e29 2018-03-12 stsp
9 f42b1b34 2018-03-12 stsp CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
10 f42b1b34 2018-03-12 stsp LDADD = -lutil -lz
11 f42b1b34 2018-03-12 stsp DPADD = ${LIBZ} ${LIBUTIL}
12 6715a751 2018-03-16 stsp .if defined(PROFILE)
13 6715a751 2018-03-16 stsp CC = gcc
14 6715a751 2018-03-16 stsp CPPFLAGS += -DPROFILE
15 6715a751 2018-03-16 stsp DEBUG = -O0 -pg
16 6715a751 2018-03-16 stsp .else
17 92f27f70 2018-03-16 stsp DEBUG = -O0 -g
18 6715a751 2018-03-16 stsp .endif
19 f42b1b34 2018-03-12 stsp CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
20 5c860e29 2018-03-12 stsp
21 f42b1b34 2018-03-12 stsp # For now, default to installing binary in ~/bin
22 8b90f09e 2018-03-12 stsp GROUP!=id -g -n
23 f42b1b34 2018-03-12 stsp install:
24 8b90f09e 2018-03-12 stsp ${INSTALL} ${INSTALL_COPY} -o ${USER} -g ${GROUP} \
25 f42b1b34 2018-03-12 stsp -m ${BINMODE} ${PROG} ${HOME}/bin/${PROG}
26 5c860e29 2018-03-12 stsp
27 f42b1b34 2018-03-12 stsp # Don't install man pages yet
28 f42b1b34 2018-03-12 stsp NOMAN = Yes
29 f42b1b34 2018-03-12 stsp
30 5c860e29 2018-03-12 stsp .include <bsd.prog.mk>