Blob


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