diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2016-10-16 19:28:45 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2016-10-16 19:28:45 +0000 |
commit | cb7fc406f4e7232b5f9cb5e2ad6862e677d96c21 (patch) | |
tree | 2ebdac5b2c1d5744e03691a65894e911143030b4 /gnu/usr.bin/cc | |
parent | 59e4bbecc734661d23ef688f294909bfaed5d432 (diff) |
Move libcrypto, librpcsvc and gnu/usr.bin/cc/include from RDIRS to PRDIRS,
and add prereq targets, so some header files are generated by BUILDUSER
during 'make prereq' instead of by root during 'make includes'.
Switch the order of 'make cleandir' and 'make includes' during 'make build'
so we don't generate many files twice.
Except for some machine@ symlinks from ${MACHINE}/stand, /usr/obj is now
clean from files generated by root during 'make build'. Those will be
cleaned up in a second step.
help, testing & ok deraadt, input from natano, further testing rpe
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r-- | gnu/usr.bin/cc/include/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/include/Makefile b/gnu/usr.bin/cc/include/Makefile index 64ea98e910e..66a486103ce 100644 --- a/gnu/usr.bin/cc/include/Makefile +++ b/gnu/usr.bin/cc/include/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/include/Makefile,v 1.9.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile,v 1.11 2016/09/01 11:03:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.12 2016/10/16 19:28:44 tb Exp $ .include <bsd.own.mk> @@ -44,6 +44,12 @@ cleandir: _SUBDIRUSE clean depend: # Nothing here so far... +.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64" +prereq: mm_malloc.h unwind.h +.else +prereq: unwind.h +.endif + .if !empty(INCS) install includes: ${INCS} ${INSTALL} -C -o ${BINOWN} -g ${LOCALEGRP} -m ${NONBINMODE} ${.ALLSRC} \ |