aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/Makefile.powerpc
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1995-04-05 04:10:58 +0000
committerNate Williams <nate@FreeBSD.org>1995-04-05 04:10:58 +0000
commit070e3ec139d2f68a8d6b90fbd2570add55e4e5ca (patch)
treeb8cfe106dd9db4555e310d9060fe2e7837479d04 /sys/conf/Makefile.powerpc
parent3670011ae853f4ae3394408391405d777e458850 (diff)
downloadsrc-070e3ec139d2f68a8d6b90fbd2570add55e4e5ca.tar.gz
src-070e3ec139d2f68a8d6b90fbd2570add55e4e5ca.zip
Modify behavior of INCLUDES to never look in /usr/include unless we
can't find the src/include directory. Reviewed by: "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> Submitted by: Mike Pritchard <pritc003@maroon.tc.umn.edu>
Notes
Notes: svn path=/head/; revision=7627
Diffstat (limited to 'sys/conf/Makefile.powerpc')
-rw-r--r--sys/conf/Makefile.powerpc10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index 4bcd03fa7210..14f830830088 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.60 1995/03/28 08:02:37 bde Exp $
+# $Id: Makefile.i386,v 1.61 1995/04/03 01:13:50 nate Exp $
#
# Makefile for FreeBSD
#
@@ -36,7 +36,13 @@ CWARNFLAGS?=-W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit
#
COPTFLAGS?=-O
# Not ready for -I- yet. #include "foo.h" where foo.h is in the srcdir fails.
-INCLUDES= -nostdinc -I. -I$S -I$S/sys -I$S/../include -I/usr/include
+INCLUDES= -nostdinc -I. -I$S -I$S/sys
+# This hack is to allow kernel compiles to succeed on machines w/out srcdist
+.if exists($S/../include)
+INCLUDES+= -I$S/../include
+.else
+INCLUDES+= -I/usr/include
+.endif
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DLOAD_ADDRESS=0x${LOAD_ADDRESS}
ASFLAGS=
CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS}