From 4f826452cf0edd1ab77d4ffe010245bc457f546e Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 6 Jul 2006 23:18:45 +0000 Subject: make the build output less noisy (optional, can be controlled by the NOISY_BUILD variable in the top-level Makefile) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37273 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- db1-ast/Makefile | 43 +++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 26 deletions(-) (limited to 'db1-ast') diff --git a/db1-ast/Makefile b/db1-ast/Makefile index 4f506fc69..a2d50c83c 100644 --- a/db1-ast/Makefile +++ b/db1-ast/Makefile @@ -19,25 +19,24 @@ endif LIBDBSO=libdb.so.$(SOVER) PROG= db_dump185 -OBJ1= hash.o hash_bigkey.o hash_buf.o hash_func.o hash_log2.o hash_page.o \ - ndbm.o -OBJ2= bt_close.o bt_conv.o bt_debug.o bt_delete.o bt_get.o bt_open.o \ - bt_overflow.o bt_page.o bt_put.o bt_search.o bt_seq.o bt_split.o \ - bt_utils.o -OBJ3= db.o -OBJ4= mpool.o -OBJ5= rec_close.o rec_delete.o rec_get.o rec_open.o rec_put.o rec_search.o \ - rec_seq.o rec_utils.o +OBJ1= hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o \ + hash/ndbm.o +OBJ2= btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o \ + btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o \ + btree/bt_utils.o +OBJ3= db/db.o +OBJ4= mpool/mpool.o +OBJ5= recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o \ + recno/rec_seq.o recno/rec_utils.o MISC= OBJS= $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(MISC) SHOBJS= $(patsubst %.o,%.os,$(OBJS)) +include $(ASTTOPDIR)/Makefile.rules + all: $(LIBDB) #$(LIBDBSO) $(PROG) -$(LIBDB): $(OBJS) - rm -f $@ - ar cq $@ $(OBJS) - ranlib $@ +$(eval $(call ast_make_a_o,$(LIBDB),$(OBJS))) $(LIBDBSO): $(SHOBJS) $(CC) -Wl,-O1 -Wl,--version-script=libdb.map -Wl,-soname=$(LIBDBSO) -shared -o $@ $^ @@ -51,32 +50,24 @@ clean-depend: clean: rm -f $(LIBDB) $(LIBDBSO) $(OBJS) $(SHOBJS) -CL= $(CC) $(CFLAGS) -Wall -c -D__DBINTERFACE_PRIVATE -I. -I.. -Iinclude +CFLAGS+=-Wall -c -D__DBINTERFACE_PRIVATE -I. -I.. -Iinclude -Ihash -Ibtree -Irecno OSTYPE=$(shell uname -s) ifeq ($(OSTYPE),SunOS) -CL+=-I../include -I../include/solaris-compat -DSOLARIS +CFLAGS+=-I../include -I../include/solaris-compat -DSOLARIS endif db_dump185.o: db_dump185.c $(CL) -o $@ $< -%.o: hash/%.c +x%.o: hash/%.c $(CL) -Ihash $(OSARCH_DEFINE) -o $@ $< %.os: hash/%.c $(CL) -Ihash -fPIC -o $@ $< -%.o: btree/%.c +x%.o: btree/%.c $(CL) -Ibtree -o $@ $< %.os: btree/%.c $(CL) -Ibtree -fPIC -o $@ $< -db.o: db/db.c - $(CL) -o $@ $< -db.os: db/db.c - $(CL) -fPIC -o $@ $< -mpool.o: mpool/mpool.c - $(CL) -o $@ $< -mpool.os: mpool/mpool.c - $(CL) -fPIC -o $@ $< -%.o: recno/%.c +x%.o: recno/%.c $(CL) -Irecno -o $@ $< %.os: recno/%.c $(CL) -Irecno -fPIC -o $@ $< -- cgit v1.2.3