ensure that dependencies are rebuilt after 'make update' so that builds don't break...
[asterisk/asterisk.git] / db1-ast / Makefile
old mode 100755 (executable)
new mode 100644 (file)
index 0bb8ea5..d36b592
@@ -7,6 +7,12 @@ SOVER=2.1
 else
 SOVER=2
 endif
+#Added support for UltraSparc - Belgarath
+ifeq ($(ARCH),sparc64)
+PROC=ultrasparc
+CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+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 \
@@ -36,12 +42,19 @@ $(LIBDBSO): $(SHOBJS)
 $(PROG): db_dump185.o $(LIBDBSO)
        $(CC) -o $@ db_dump185.o -L. -ldb
 
+clean-depend:
+
 clean:
        rm -f $(LIBDB) $(LIBDBSO) $(OBJS) $(SHOBJS)
 
 OORG=  -O2
 CL=    $(CC) -Wall -c -D__DBINTERFACE_PRIVATE $(OORG) -I. -Iinclude
 
+OSTYPE=$(shell uname -s)
+ifeq ($(OSTYPE),SunOS)
+CL+=-I../include -I../include/solaris-compat -DSOLARIS
+endif
+
 db_dump185.o: db_dump185.c
        $(CL) -o $@ $<
 %.o: hash/%.c