Blob


1 .PATH:${.CURDIR}/../lib
3 PROG= got
4 SRCS= got.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 inflate.c
9 GOT_LIBEXECDIR = ${HOME}/bin
10 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib \
11 -DGOT_LIBEXECDIR=${GOT_LIBEXECDIR}
12 LDADD = -lutil -lz
13 DPADD = ${LIBZ} ${LIBUTIL}
14 .if defined(PROFILE)
15 CC = gcc
16 CPPFLAGS += -DPROFILE
17 DEBUG = -O0 -pg
18 .else
19 DEBUG = -O0 -g
20 .endif
21 CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
22 #CFLAGS += -DGOT_PACK_NO_MMAP
23 #CFLAGS += -DGOT_NO_OBJ_CACHE
25 # For now, default to installing binary in ~/bin
26 GROUP!=id -g -n
27 install:
28 ${INSTALL} ${INSTALL_COPY} -o ${USER} -g ${GROUP} \
29 -m ${BINMODE} ${PROG} ${HOME}/bin/${PROG}
31 # Don't install man pages yet
32 NOMAN = Yes
34 .include <bsd.prog.mk>