From 911b83fe05d682c541e38fecd55fdad0755be2ca Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Mon, 10 May 2021 09:37:27 -0400 Subject: patch_cmds: diffstat without autotools --- patch_cmds/Makefile | 4 ++++ patch_cmds/diffstat/Makefile | 5 +++++ patch_cmds/diffstat/diffstat.c | 2 +- patch_cmds/patch/Makefile | 4 +--- 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 patch_cmds/Makefile create mode 100644 patch_cmds/diffstat/Makefile diff --git a/patch_cmds/Makefile b/patch_cmds/Makefile new file mode 100644 index 0000000..db429c5 --- /dev/null +++ b/patch_cmds/Makefile @@ -0,0 +1,4 @@ +SUBDIR= patch \ + diffstat + +.include diff --git a/patch_cmds/diffstat/Makefile b/patch_cmds/diffstat/Makefile new file mode 100644 index 0000000..ae9c6ca --- /dev/null +++ b/patch_cmds/diffstat/Makefile @@ -0,0 +1,5 @@ +PROG= diffstat + +CFLAGS+=-DHAVE_CONFIG_H + +.include diff --git a/patch_cmds/diffstat/diffstat.c b/patch_cmds/diffstat/diffstat.c index 7027ba3..c09f585 100644 --- a/patch_cmds/diffstat/diffstat.c +++ b/patch_cmds/diffstat/diffstat.c @@ -171,7 +171,7 @@ static const char *Id = "$Id: diffstat.c,v 1.55 2012/01/03 09:44:24 tom Exp $"; */ #if defined(HAVE_CONFIG_H) -#include +#include "config.h" #endif #if defined(WIN32) && !defined(HAVE_CONFIG_H) diff --git a/patch_cmds/patch/Makefile b/patch_cmds/patch/Makefile index d7071a4..ec33186 100644 --- a/patch_cmds/patch/Makefile +++ b/patch_cmds/patch/Makefile @@ -1,6 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2005/05/16 15:22:46 espie Exp $ - PROG= patch -SRCS= patch.c pch.c inp.c util.c backupfile.c mkpath.c +SRCS= backupfile.c inp.c mkpath.c patch.c pch.c util.c .include -- cgit v1.2.3-56-ge451