diff options
| author | Wilfredo Sanchez <tritan@mit.edu> | 1999-10-26 01:49:53 +0000 |
|---|---|---|
| committer | Wilfredo Sanchez <tritan@mit.edu> | 1999-10-26 01:49:53 +0000 |
| commit | 576f92854331c90f779e721443dcd375e6851670 (patch) | |
| tree | 7730482a06f359c2997068ac71a5358d397dc0f9 /src/util/db2 | |
| parent | 3edb32acbb73c8d52e66ab71b71c0b5896fe5400 (diff) | |
| download | krb5-576f92854331c90f779e721443dcd375e6851670.tar.gz krb5-576f92854331c90f779e721443dcd375e6851670.tar.xz krb5-576f92854331c90f779e721443dcd375e6851670.zip | |
Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES such
that one can override CFLAGS from the command line without losing CPP
search patchs and defines. Some associated Makefile cleanup.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11876 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/db2')
| -rw-r--r-- | src/util/db2/obj/Makefile.in | 77 |
1 files changed, 39 insertions, 38 deletions
diff --git a/src/util/db2/obj/Makefile.in b/src/util/db2/obj/Makefile.in index b81a78efbf..6c6f840f70 100644 --- a/src/util/db2/obj/Makefile.in +++ b/src/util/db2/obj/Makefile.in @@ -36,9 +36,10 @@ libdir = @libdir@ CDEBUGFLAGS = @CFLAGS@ -CFLAGS = $(CDEBUGFLAGS) @CPPFLAGS@ @DEFS@ \ - -I. -I$(top_srcdir)/include -I$(top_srcdir)/mpool -I$(top_srcdir)/db \ +CFLAGS = $(CDEBUGFLAGS) +LOCALINCLUDES = -I. -I$(top_srcdir)/include -I$(top_srcdir)/mpool -I$(top_srcdir)/db \ -I$(top_srcdir)/hash -I$(top_srcdir)/btree -I$(top_srcdir)/recno +ALL_CFLAGS = $(DEFS) $(LOCALINCLUDES) $(CPPFLAGS) $(CFLAGS) all:: $(LIBDB) db.h @@ -71,83 +72,83 @@ clean:: ## but it doesn't, so I do this instead: db.o: $(top_srcdir)/db/db.c - $(CC) $(CFLAGS) -c -o db.o $(top_srcdir)/db/db.c + $(CC) $(ALL_CFLAGS) -c -o db.o $(top_srcdir)/db/db.c mpool.o: $(top_srcdir)/mpool/mpool.c - $(CC) $(CFLAGS) -c -o mpool.o $(top_srcdir)/mpool/mpool.c + $(CC) $(ALL_CFLAGS) -c -o mpool.o $(top_srcdir)/mpool/mpool.c hash.o: $(top_srcdir)/hash/hash.c - $(CC) $(CFLAGS) -c -o hash.o $(top_srcdir)/hash/hash.c + $(CC) $(ALL_CFLAGS) -c -o hash.o $(top_srcdir)/hash/hash.c hash_bigkey.o: $(top_srcdir)/hash/hash_bigkey.c - $(CC) $(CFLAGS) -c -o hash_bigkey.o $(top_srcdir)/hash/hash_bigkey.c + $(CC) $(ALL_CFLAGS) -c -o hash_bigkey.o $(top_srcdir)/hash/hash_bigkey.c hash_debug.o: $(top_srcdir)/hash/hash_debug.c - $(CC) $(CFLAGS) -c -o hash_debug.o $(top_srcdir)/hash/hash_debug.c + $(CC) $(ALL_CFLAGS) -c -o hash_debug.o $(top_srcdir)/hash/hash_debug.c hash_func.o: $(top_srcdir)/hash/hash_func.c - $(CC) $(CFLAGS) -c -o hash_func.o $(top_srcdir)/hash/hash_func.c + $(CC) $(ALL_CFLAGS) -c -o hash_func.o $(top_srcdir)/hash/hash_func.c hash_log2.o: $(top_srcdir)/hash/hash_log2.c - $(CC) $(CFLAGS) -c -o hash_log2.o $(top_srcdir)/hash/hash_log2.c + $(CC) $(ALL_CFLAGS) -c -o hash_log2.o $(top_srcdir)/hash/hash_log2.c hash_page.o: $(top_srcdir)/hash/hash_page.c - $(CC) $(CFLAGS) -c -o hash_page.o $(top_srcdir)/hash/hash_page.c + $(CC) $(ALL_CFLAGS) -c -o hash_page.o $(top_srcdir)/hash/hash_page.c hsearch.o: $(top_srcdir)/hash/hsearch.c - $(CC) $(CFLAGS) -c -o hsearch.o $(top_srcdir)/hash/hsearch.c + $(CC) $(ALL_CFLAGS) -c -o hsearch.o $(top_srcdir)/hash/hsearch.c dbm.o: $(top_srcdir)/hash/dbm.c - $(CC) $(CFLAGS) -c -o dbm.o $(top_srcdir)/hash/dbm.c + $(CC) $(ALL_CFLAGS) -c -o dbm.o $(top_srcdir)/hash/dbm.c bt_close.o: $(top_srcdir)/btree/bt_close.c - $(CC) $(CFLAGS) -c -o bt_close.o $(top_srcdir)/btree/bt_close.c + $(CC) $(ALL_CFLAGS) -c -o bt_close.o $(top_srcdir)/btree/bt_close.c bt_conv.o: $(top_srcdir)/btree/bt_conv.c - $(CC) $(CFLAGS) -c -o bt_conv.o $(top_srcdir)/btree/bt_conv.c + $(CC) $(ALL_CFLAGS) -c -o bt_conv.o $(top_srcdir)/btree/bt_conv.c bt_debug.o: $(top_srcdir)/btree/bt_debug.c - $(CC) $(CFLAGS) -c -o bt_debug.o $(top_srcdir)/btree/bt_debug.c + $(CC) $(ALL_CFLAGS) -c -o bt_debug.o $(top_srcdir)/btree/bt_debug.c bt_delete.o: $(top_srcdir)/btree/bt_delete.c - $(CC) $(CFLAGS) -c -o bt_delete.o $(top_srcdir)/btree/bt_delete.c + $(CC) $(ALL_CFLAGS) -c -o bt_delete.o $(top_srcdir)/btree/bt_delete.c bt_get.o: $(top_srcdir)/btree/bt_get.c - $(CC) $(CFLAGS) -c -o bt_get.o $(top_srcdir)/btree/bt_get.c + $(CC) $(ALL_CFLAGS) -c -o bt_get.o $(top_srcdir)/btree/bt_get.c bt_open.o: $(top_srcdir)/btree/bt_open.c - $(CC) $(CFLAGS) -c -o bt_open.o $(top_srcdir)/btree/bt_open.c + $(CC) $(ALL_CFLAGS) -c -o bt_open.o $(top_srcdir)/btree/bt_open.c bt_overflow.o: $(top_srcdir)/btree/bt_overflow.c - $(CC) $(CFLAGS) -c -o bt_overflow.o $(top_srcdir)/btree/bt_overflow.c + $(CC) $(ALL_CFLAGS) -c -o bt_overflow.o $(top_srcdir)/btree/bt_overflow.c bt_page.o: $(top_srcdir)/btree/bt_page.c - $(CC) $(CFLAGS) -c -o bt_page.o $(top_srcdir)/btree/bt_page.c + $(CC) $(ALL_CFLAGS) -c -o bt_page.o $(top_srcdir)/btree/bt_page.c bt_put.o: $(top_srcdir)/btree/bt_put.c - $(CC) $(CFLAGS) -c -o bt_put.o $(top_srcdir)/btree/bt_put.c + $(CC) $(ALL_CFLAGS) -c -o bt_put.o $(top_srcdir)/btree/bt_put.c bt_search.o: $(top_srcdir)/btree/bt_search.c - $(CC) $(CFLAGS) -c -o bt_search.o $(top_srcdir)/btree/bt_search.c + $(CC) $(ALL_CFLAGS) -c -o bt_search.o $(top_srcdir)/btree/bt_search.c bt_seq.o: $(top_srcdir)/btree/bt_seq.c - $(CC) $(CFLAGS) -c -o bt_seq.o $(top_srcdir)/btree/bt_seq.c + $(CC) $(ALL_CFLAGS) -c -o bt_seq.o $(top_srcdir)/btree/bt_seq.c bt_split.o: $(top_srcdir)/btree/bt_split.c - $(CC) $(CFLAGS) -c -o bt_split.o $(top_srcdir)/btree/bt_split.c + $(CC) $(ALL_CFLAGS) -c -o bt_split.o $(top_srcdir)/btree/bt_split.c bt_stack.o: $(top_srcdir)/btree/bt_stack.c - $(CC) $(CFLAGS) -c -o bt_stack.o $(top_srcdir)/btree/bt_stack.c + $(CC) $(ALL_CFLAGS) -c -o bt_stack.o $(top_srcdir)/btree/bt_stack.c bt_utils.o: $(top_srcdir)/btree/bt_utils.c - $(CC) $(CFLAGS) -c -o bt_utils.o $(top_srcdir)/btree/bt_utils.c + $(CC) $(ALL_CFLAGS) -c -o bt_utils.o $(top_srcdir)/btree/bt_utils.c rec_close.o: $(top_srcdir)/recno/rec_close.c - $(CC) $(CFLAGS) -c -o rec_close.o $(top_srcdir)/recno/rec_close.c + $(CC) $(ALL_CFLAGS) -c -o rec_close.o $(top_srcdir)/recno/rec_close.c rec_delete.o: $(top_srcdir)/recno/rec_delete.c - $(CC) $(CFLAGS) -c -o rec_delete.o $(top_srcdir)/recno/rec_delete.c + $(CC) $(ALL_CFLAGS) -c -o rec_delete.o $(top_srcdir)/recno/rec_delete.c rec_get.o: $(top_srcdir)/recno/rec_get.c - $(CC) $(CFLAGS) -c -o rec_get.o $(top_srcdir)/recno/rec_get.c + $(CC) $(ALL_CFLAGS) -c -o rec_get.o $(top_srcdir)/recno/rec_get.c rec_open.o: $(top_srcdir)/recno/rec_open.c - $(CC) $(CFLAGS) -c -o rec_open.o $(top_srcdir)/recno/rec_open.c + $(CC) $(ALL_CFLAGS) -c -o rec_open.o $(top_srcdir)/recno/rec_open.c rec_put.o: $(top_srcdir)/recno/rec_put.c - $(CC) $(CFLAGS) -c -o rec_put.o $(top_srcdir)/recno/rec_put.c + $(CC) $(ALL_CFLAGS) -c -o rec_put.o $(top_srcdir)/recno/rec_put.c rec_search.o: $(top_srcdir)/recno/rec_search.c - $(CC) $(CFLAGS) -c -o rec_search.o $(top_srcdir)/recno/rec_search.c + $(CC) $(ALL_CFLAGS) -c -o rec_search.o $(top_srcdir)/recno/rec_search.c rec_seq.o: $(top_srcdir)/recno/rec_seq.c - $(CC) $(CFLAGS) -c -o rec_seq.o $(top_srcdir)/recno/rec_seq.c + $(CC) $(ALL_CFLAGS) -c -o rec_seq.o $(top_srcdir)/recno/rec_seq.c rec_utils.o: $(top_srcdir)/recno/rec_utils.c - $(CC) $(CFLAGS) -c -o rec_utils.o $(top_srcdir)/recno/rec_utils.c + $(CC) $(ALL_CFLAGS) -c -o rec_utils.o $(top_srcdir)/recno/rec_utils.c dbtest.o: $(top_srcdir)/test/dbtest.c - $(CC) $(CFLAGS) -c -o dbtest.o $(top_srcdir)/test/dbtest.c + $(CC) $(ALL_CFLAGS) -c -o dbtest.o $(top_srcdir)/test/dbtest.c memmove.o: $(top_srcdir)/clib/memmove.c - $(CC) $(CFLAGS) -Dmemmove=my_memmove -DMEMMOVE -c -o memmove.o $(top_srcdir)/clib/memmove.c + $(CC) $(ALL_CFLAGS) -Dmemmove=my_memmove -DMEMMOVE -c -o memmove.o $(top_srcdir)/clib/memmove.c mkstemp.o: $(top_srcdir)/clib/mkstemp.c - $(CC) $(CFLAGS) -Dmkstemp=my_mkstemp -c -o mkstemp.o $(top_srcdir)/clib/mkstemp.c + $(CC) $(ALL_CFLAGS) -Dmkstemp=my_mkstemp -c -o mkstemp.o $(top_srcdir)/clib/mkstemp.c strerror.o: $(top_srcdir)/clib/strerror.c - $(CC) $(CFLAGS) -Dstrerror=my_strerror -c -o strerror.o $(top_srcdir)/clib/strerror.c + $(CC) $(ALL_CFLAGS) -Dstrerror=my_strerror -c -o strerror.o $(top_srcdir)/clib/strerror.c distclean:: clean rm -f Makefile |
