aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-13 20:51:48 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-13 20:51:48 +0000
commit8a8d27a2dfa1536f7273579dc7f4886bf9c4cfed (patch)
tree0e8008c721582afe7e8954a6be00bdba448be121 /Makefile
parente1c164d7893f1d41083c35b5f5ea440df0940961 (diff)
CLeanup PBX patch and add localtime stuff for saytime (bug #168)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1506 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 844b9ab92..13763a092 100755
--- a/Makefile
+++ b/Makefile
@@ -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