diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-03-19 17:19:59 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-03-19 17:19:59 +0000 |
| commit | 2c5ddcf8b60c69da900f2df99390d20b6d9f6aba (patch) | |
| tree | ea91b03c4d7ce89c644d1c51522f250622ce583b /gnu | |
| parent | 4bcdaf7651a7d33eb10afd1fa6ce4e217e1c5abb (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/Makefile | 2 | ||||
| -rw-r--r-- | gnu/usr.bin/diff/Makefile | 36 | ||||
| -rw-r--r-- | gnu/usr.bin/diff/Makefile.depend | 19 | ||||
| -rw-r--r-- | gnu/usr.bin/diff/tests/Makefile | 15 | ||||
| -rw-r--r-- | gnu/usr.bin/diff/tests/Makefile.depend | 11 |
5 files changed, 82 insertions, 1 deletions
diff --git a/gnu/usr.bin/Makefile b/gnu/usr.bin/Makefile index 1dc26f32968e..57aaf19afeea 100644 --- a/gnu/usr.bin/Makefile +++ b/gnu/usr.bin/Makefile @@ -17,7 +17,7 @@ SUBDIR_DEPEND_gdb= binutils .endif SUBDIR.${MK_GCC}+= cc -SUBDIR.${MK_GNU_DIFF}+= diff3 +SUBDIR.${MK_GNU_DIFF}+= diff diff3 SUBDIR.${MK_GNU_GREP}+= grep SUBDIR.${MK_GPL_DTC}+= dtc SUBDIR.${MK_TESTS}+= tests diff --git a/gnu/usr.bin/diff/Makefile b/gnu/usr.bin/diff/Makefile new file mode 100644 index 000000000000..f5b38f1db9a8 --- /dev/null +++ b/gnu/usr.bin/diff/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +.include <src.opts.mk> + +DIFFSRC=${.CURDIR}/../../../contrib/diff/src +.PATH: ${DIFFSRC} \ + ${.CURDIR}/../../../contrib/diff/lib \ + ${.CURDIR}/../../../contrib/diff/man \ + ${.CURDIR}/../../../contrib/diff/doc + +PROG= diff +SRCS= analyze.c context.c diff.c dir.c ed.c ifdef.c io.c \ + normal.c side.c util.c \ + xmalloc.c strtoumax.c cmpbuf.c exitfail.c error.c quotesys.c \ + strftime.c c-stack.c basename.c exclude.c hard-locale.c \ + file-type.c posixver.c prepargs.c version-etc.c + +# Important for ctype macros! +CFLAGS+=-funsigned-char + +CFLAGS+=-DHAVE_CONFIG_H +CFLAGS+=-DPR_PROGRAM=\"/usr/bin/pr\" +CFLAGS+=-I${.CURDIR}/../../../contrib/diff +CFLAGS+=-I${.CURDIR}/../../../contrib/diff/src +CFLAGS+=-I${.CURDIR}/../../../contrib/diff/lib +CFLAGS+=-I${DESTDIR}/usr/include/gnu + +MAN= diff.1 diff.7 + +LIBADD+= gnuregex + +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/diff/Makefile.depend b/gnu/usr.bin/diff/Makefile.depend new file mode 100644 index 000000000000..1cce740db52b --- /dev/null +++ b/gnu/usr.bin/diff/Makefile.depend @@ -0,0 +1,19 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + gnu/lib/csu \ + gnu/lib/libgcc \ + gnu/lib/libregex \ + include \ + include/xlocale \ + lib/${CSU_DIR} \ + lib/libc \ + lib/libcompiler_rt \ + + +.include <dirdeps.mk> + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif diff --git a/gnu/usr.bin/diff/tests/Makefile b/gnu/usr.bin/diff/tests/Makefile new file mode 100644 index 000000000000..ffe31a6851e3 --- /dev/null +++ b/gnu/usr.bin/diff/tests/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +PACKAGE= tests + +TESTSRC= ${SRCTOP}/contrib/netbsd-tests/usr.bin/diff + +NETBSD_ATF_TESTS_SH= diff_test +ATF_TESTS_SH_SED_diff_test= -e 's/t_diff/`basename $$0`/g' + +${PACKAGE}FILES+= d_mallocv1.in +${PACKAGE}FILES+= d_mallocv2.in + +.include <netbsd-tests.test.mk> + +.include <bsd.test.mk> diff --git a/gnu/usr.bin/diff/tests/Makefile.depend b/gnu/usr.bin/diff/tests/Makefile.depend new file mode 100644 index 000000000000..f80275d86ab1 --- /dev/null +++ b/gnu/usr.bin/diff/tests/Makefile.depend @@ -0,0 +1,11 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + + +.include <dirdeps.mk> + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif |
