Blame


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