Add mkdep and 'make depend' to libpri Makefile

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@81 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
James Golovich
2004-03-30 20:18:12 +00:00
parent ee394a7916
commit be3a8c206b
2 changed files with 122 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ DYNAMIC_OBJS=pri.lo q921.lo prisched.lo q931.lo
CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
INSTALL_PREFIX=
all: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
all: depend $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
update:
@echo "Updating from CVS"
@@ -70,6 +70,8 @@ testprilib: testprilib.o
pridump: pridump.o
$(CC) -o pridump pridump.o -L. -lpri -lzap
include .depend
%.lo : %.c
$(CC) -fPIC $(CFLAGS) -o $@ -c $<
@@ -86,3 +88,9 @@ clean:
rm -f *.o *.so *.lo *.so.1 *.so.1.0
rm -f testpri testprilib $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
rm -f pritest pridump
rm -f .depend
depend: .depend
.depend:
./mkdep ${CFLAGS} `ls *.c`