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 eb77ee11 2018-07-08 stsp fileindex.c object.c object_idcache.c object_idset.c opentemp.c \
6 eb77ee11 2018-07-08 stsp path.c pack.c privsep.c reference.c repository.c sha1.c \
7 63581804 2018-07-09 stsp worktree.c inflate.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 fc79a48d 2018-07-09 stsp #CPLAGS += -DGOT_PACK_NO_MMAP
21 5c860e29 2018-03-12 stsp
22 f42b1b34 2018-03-12 stsp # For now, default to installing binary in ~/bin
23 8b90f09e 2018-03-12 stsp GROUP!=id -g -n
24 f42b1b34 2018-03-12 stsp install:
25 8b90f09e 2018-03-12 stsp ${INSTALL} ${INSTALL_COPY} -o ${USER} -g ${GROUP} \
26 f42b1b34 2018-03-12 stsp -m ${BINMODE} ${PROG} ${HOME}/bin/${PROG}
27 5c860e29 2018-03-12 stsp
28 f42b1b34 2018-03-12 stsp # Don't install man pages yet
29 f42b1b34 2018-03-12 stsp NOMAN = Yes
30 f42b1b34 2018-03-12 stsp
31 5c860e29 2018-03-12 stsp .include <bsd.prog.mk>