opendoas

A portable version of the OpenBSD `doas` command
git clone https://pi.duncano.de/git/opendoas.git
Log | Files | Refs | README | LICENSE

commit 610e74190352a5c8c1f1746a272fc7364cb2bac3
parent 45b991b31341fac961e4f933cb1d96de62889f7e
Author: Nathan Holstein <nathan.holstein@gmail.com>
Date:   Sun,  9 Aug 2015 22:05:34 -0400

Generate automatic header dependencies.

Diffstat:
.gitignore | 1+
bsd.prog.mk | 6+++++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -3,6 +3,7 @@ doas version.h *.a +*.d *.o *.swp diff --git a/bsd.prog.mk b/bsd.prog.mk @@ -11,7 +11,7 @@ OPENBSD:=$(addprefix libopenbsd/,${OPENBSD:.c=.o}) libopenbsd.a: ${OPENBSD} ${AR} -r $@ $? -CFLAGS:=${CFLAGS} -I${CURDIR}/libopenbsd ${COPTS} +CFLAGS:=${CFLAGS} -I${CURDIR}/libopenbsd ${COPTS} -MD -MP OBJS:=${SRCS:.y=.c} OBJS:=${OBJS:.c=.o} @@ -46,8 +46,12 @@ clean: rm -f version.h rm -f libopenbsd.a rm -f ${OPENBSD} + rm -f ${OPENBSD:.o=.d} rm -f ${OBJS} + rm -f ${OBJS:.o=.d} rm -f ${PROG} +-include ${objs:.o=.d} ${OPENBSD:.o=.d} + .PHONY: default clean install man .INTERMEDIATE: .${PROG}.chmod