Edit

thodg/got/tog/Makefile

Branch :

  • Show log

    Commit

  • Author : Stefan Sperling
    Date : 2018-05-20 19:08:05
    Hash : 61e69b96
    Message : better trimming of lines to the right length in tog diff

  • tog/Makefile
  • .PATH:${.CURDIR}/../lib
    
    PROG=		tog
    SRCS=		tog.c delta.c diff.c diffreg.c error.c fileindex.c object.c \
    		opentemp.c path.c pack.c privsep.c reference.c repository.c \
    		sha1.c worktree.c zbuf.c
    
    CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
    LDADD = -lpanel -lncursesw -lutil -lz
    DPADD = ${LIBZ} ${LIBUTIL}
    .if defined(PROFILE)
    CC = gcc
    CPPFLAGS += -DPROFILE
    DEBUG = -O0 -pg
    .else
    DEBUG = -O0 -g
    .endif
    CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
    
    # For now, default to installing binary in ~/bin
    GROUP!=id -g -n
    install:
    	${INSTALL} ${INSTALL_COPY} -o ${USER} -g ${GROUP} \
    	-m ${BINMODE} ${PROG} ${HOME}/bin/${PROG}
    
    # Don't install man pages yet
    NOMAN = Yes
    
    .include <bsd.prog.mk>