Sun Mar 17 07:19:33 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
[kopensolaris-gnu/glibc.git] / db / Makefile
1 # Makefile for 4.4BSD db code in GNU C library.
2 # This code is taken verbatim from the BSD db 1.85 package.  Only this
3 # Makefile and compat.h were written for GNU libc, and the header files
4 # moved up to this directory.
5
6 subdir = db
7
8 subdir-dirs = btree db hash mpool recno
9 vpath %.c $(subdir-dirs)
10
11 routines := bt_close bt_conv bt_debug bt_delete bt_get bt_open bt_overflow \
12             bt_page bt_put bt_search bt_seq bt_split bt_utils              \
13             db                                                             \
14             hash hash_bigkey hash_buf hash_func hash_log2 hash_page        \
15             ndbm                                                           \
16             mpool                                                          \
17             rec_close rec_delete rec_get rec_open rec_put rec_search       \
18             rec_seq rec_utils
19
20 headers         := db.h mpool.h ndbm.h
21 distribute      := compat.h                                     \
22                    btree/btree.h btree/extern.h                 \
23                    hash/extern.h hash/hash.h hash/page.h        \
24                    recno/extern.h recno/recno.h
25
26 include ../Rules
27
28 CPPFLAGS += -D__DBINTERFACE_PRIVATE
29
30 # This file defines some static functions for alternative hash algorithms
31 # that are not actually used.
32 CFLAGS-hash_func.c := -Wno-unused
33
34 # The db code outsmarts the compiler frequently.
35 override CFLAGS += -Wno-uninitialized