diff options
Diffstat (limited to 'contrib/libdiff/diff/Makefile')
-rw-r--r-- | contrib/libdiff/diff/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/contrib/libdiff/diff/Makefile b/contrib/libdiff/diff/Makefile new file mode 100644 index 000000000000..4a7f3a9755f5 --- /dev/null +++ b/contrib/libdiff/diff/Makefile @@ -0,0 +1,41 @@ +.PATH:${.CURDIR}/../lib + +.include "../diff-version.mk" + +PROG= diff +SRCS= \ + diff.c \ + diff_atomize_text.c \ + diff_main.c \ + diff_myers.c \ + diff_patience.c \ + diff_output.c \ + diff_output_plain.c \ + diff_output_unidiff.c \ + diff_output_edscript.c \ + ${END} +MAN = ${PROG}.1 + +CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib +#CPPFLAGS += -DDIFF_NO_MMAP + +.if defined(PROFILE) +CFLAGS = -O0 -pg -g +LDFLAGS = -pg -lc_p -lutil_p -lz_p -static +.else +LDFLAGS = -lutil -lz +.endif + +.if ${DIFF_RELEASE} != "Yes" +NOMAN = Yes +.endif + +realinstall: + ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \ + -m ${BINMODE} ${PROG} ${BINDIR}/${PROG} + +dist: + mkdir ../diff-${DIFF_VERSION}/diff + cp ${SRCS} ${MAN} ../diff-${DIFF_VERSION}/diff + +.include <bsd.prog.mk> |