Blob
- Date:
- Message:
- significantly reduce the amount of code linked into gitwrapper By moving got_serve_parse_command() from lib/serve.c into lib/dial.c as got_dial_parse_command(), we can significantly reduce the amount of symbols gitwrapper depends on indirectly. As a downside, gotsh now needs to link to dial.c. But it only uses the same parsing routine, and any other routines in dial.c would likely cause pledge violations in gotsh if used. No functional change.
- Actions:
- History | Blame | Raw File
1 .PATH:${.CURDIR}/../lib ${.CURDIR}/../gotd3 .include "../got-version.mk"5 PROG= gotsh6 SRCS= gotsh.c error.c pkt.c hash.c serve.c path.c gitproto.c \7 imsg.c inflate.c object_parse.c pollfd.c reference_parse.c \8 dial.c10 MAN = ${PROG}.112 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd14 .if defined(PROFILE)15 LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p16 .else17 LDADD = -lutil -lz -lm -levent18 .endif19 DPADD = ${LIBZ} ${LIBUTIL}21 .if ${GOT_RELEASE} != "Yes"22 NOMAN = Yes23 .endif25 realinstall:26 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \27 -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}29 .include <bsd.prog.mk>