summaryrefslogtreecommitdiff
path: root/lib/libcrypto/objects.inc
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2006-03-17 20:47:45 +0000
committerdsl <dsl@NetBSD.org>2006-03-17 20:47:45 +0000
commit0ab764f9ffe2ecfd84bde512ddedb2209b613d07 (patch)
treee63be9fce935170971c7205790777051adcac995 /lib/libcrypto/objects.inc
parentcbe6a15c0124a7e8c83092dde83c1f66f28422b9 (diff)
Don't add every source directory to the -I path.
Instead use CPPFLAGS.file to add the relevant directory for each file. Removes about 4000000 failed open() system calls from the libcrypto build, and reduces the compile time (on my system) from 154 seconds to 115 seconds. The arch/*/*.inc files need similar treatment.
Diffstat (limited to 'lib/libcrypto/objects.inc')
-rw-r--r--lib/libcrypto/objects.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libcrypto/objects.inc b/lib/libcrypto/objects.inc
index d07c11c7feb..19d4ad45d2d 100644
--- a/lib/libcrypto/objects.inc
+++ b/lib/libcrypto/objects.inc
@@ -1,4 +1,4 @@
-# $NetBSD: objects.inc,v 1.4 2003/07/24 14:16:32 itojun Exp $
+# $NetBSD: objects.inc,v 1.5 2006/03/17 20:47:45 dsl Exp $
#
# @(#) Copyright (c) 1995 Simon J. Gerraty
#
@@ -7,6 +7,10 @@
.PATH: ${OPENSSLSRC}/crypto/objects
-CPPFLAGS+= -I${OPENSSLSRC}/crypto/objects
-SRCS+= o_names.c obj_dat.c obj_lib.c obj_err.c
+OBJECTS_SRCS = o_names.c obj_dat.c obj_lib.c obj_err.c
+SRCS += ${OBJECTS_SRCS}
+
+.for cryptosrc in ${OBJECTS_SRCS}
+CPPFLAGS.${cryptosrc} = -I${OPENSSLSRC}/crypto/objects
+.endfor