CLeanup PBX patch and add localtime stuff for saytime (bug #168)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-09-13 20:51:48 +00:00
parent c511b967ed
commit 56f915e783
12 changed files with 2246 additions and 342 deletions

View File

@@ -153,12 +153,7 @@ _all: all
all: depend asterisk subdirs
editline/config.h:
@if [ -d editline ]; then \
cd editline && unset CFLAGS LIBS && ./configure ; \
else \
echo "You need to do a cvs update -d not just cvs update"; \
exit 1; \
fi
cd editline && unset CFLAGS LIBS && ./configure ; \
editline/libedit.a: editline/config.h
$(MAKE) -C editline libedit.a
@@ -199,8 +194,16 @@ build.h:
./make_build_h
endif
asterisk: editline/libedit.a db1-ast/libdb1.a $(OBJS)
$(CC) $(DEBUG) -o asterisk -rdynamic $(OBJS) $(LIBS) $(LIBEDIT) db1-ast/libdb1.a
stdtime/localtime.o:
@if [ -d stdtime ]; then \
$(MAKE) -C stdtime; \
else \
echo "You need to do a cvs update -d not just cvs update"; \
exit 1; \
fi
asterisk: editline/libedit.a db1-ast/libdb1.a stdtime/localtime.o $(OBJS)
$(CC) $(DEBUG) -o asterisk -rdynamic $(OBJS) $(LIBS) $(LIBEDIT) db1-ast/libdb1.a stdtime/localtime.o
subdirs:
for x in $(SUBDIRS); do $(MAKE) -C $$x || exit 1 ; done
@@ -212,6 +215,7 @@ clean:
rm -f ast_expr.c
@if [ -e editline/Makefile ]; then $(MAKE) -C editline clean ; fi
$(MAKE) -C db1-ast clean
$(MAKE) -C stdtime clean
datafiles: all
mkdir -p $(ASTVARLIBDIR)/sounds/digits