1.PATH:${.CURDIR}/../lib 2 3.include "../diff-version.mk" 4 5PROG= diff 6SRCS= \ 7 diff.c \ 8 diff_atomize_text.c \ 9 diff_main.c \ 10 diff_myers.c \ 11 diff_patience.c \ 12 diff_output.c \ 13 diff_output_plain.c \ 14 diff_output_unidiff.c \ 15 diff_output_edscript.c \ 16 ${END} 17MAN = ${PROG}.1 18 19CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib 20#CPPFLAGS += -DDIFF_NO_MMAP 21 22.if defined(PROFILE) 23CFLAGS = -O0 -pg -g 24LDFLAGS = -pg -lc_p -lutil_p -lz_p -static 25.else 26LDFLAGS = -lutil -lz 27.endif 28 29.if ${DIFF_RELEASE} != "Yes" 30NOMAN = Yes 31.endif 32 33realinstall: 34 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \ 35 -m ${BINMODE} ${PROG} ${BINDIR}/${PROG} 36 37dist: 38 mkdir ../diff-${DIFF_VERSION}/diff 39 cp ${SRCS} ${MAN} ../diff-${DIFF_VERSION}/diff 40 41.include <bsd.prog.mk> 42