Blob


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