]> git.saurik.com Git - apple/libc.git/blobdiff - db/hash/Makefile.inc
Libc-594.9.5.tar.gz
[apple/libc.git] / db / hash / Makefile.inc
index b5874e845f1931641fc4f2bee1c57f0c2c92a010..7efd01680629e8c5efbde7f41f1d539a84845734 100644 (file)
@@ -1,7 +1,28 @@
 #       from @(#)Makefile.inc  8.1 (Berkeley) 6/4/93
-# $FreeBSD: src/lib/libc/db/hash/Makefile.inc,v 1.4 2001/05/15 07:08:17 ru Exp $
+# $FreeBSD: src/lib/libc/db/hash/Makefile.inc,v 1.5 2002/11/18 09:50:54 ru Exp $
 
 .PATH: ${.CURDIR}/db/hash
+CWD := ${.CURDIR}/db/hash
 
-SRCS+= hash.c hash_bigkey.c hash_buf.c hash_func.c hash_log2.c \
-       hash_page.c ndbm.c hsearch.c
+.include "Makefile.fbsd_begin"
+FBSDMISRCS= hash.c hash_bigkey.c hash_buf.c hash_func.c hash_log2.c \
+       hash_page.c ndbm.c
+.for _src in ${FBSDMISRCS}
+CFLAGS-${_src:R}-fbsd.${_src:E} += -D__DBINTERFACE_PRIVATE
+.endfor
+.for _src in hash.c hash_bigkey.c hash_buf.c hash_page.c
+CFLAGS-${_src:R}-fbsd.${_src:E} += -UDEBUG
+.endfor
+FBSDHDRS= hash.h page.h
+.include "Makefile.fbsd_end"
+
+# need to rename extern.h to make it unique
+.ifmake autopatch
+
+# This .for statement forces evaluation of ${CWD}
+.for _cwd in ${CWD}
+${_cwd}/hash_extern.h: ${_cwd}/FreeBSD/extern.h _AUTOPATCH
+AUTOPATCHHDRS+= ${_cwd}/hash_extern.h
+.endfor # _cwd
+
+.endif # autopatch