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