Enhancements for zaptel+bsd (bug #1781)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-06-04 15:44:14 +00:00
parent aa2795cc46
commit 103bb4a334
16 changed files with 63 additions and 7 deletions

View File

@@ -2,7 +2,14 @@
# Don't use ast mm routines
#
CFLAGS+=-DNO_AST_MM
OSARCH=$(shell uname -s)
ifeq (${OSARCH},FreeBSD)
CFLAGS+=-I/usr/local/include -L/usr/local/lib
endif
TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else echo "none" ; fi)
TARGET=$(shell if [ -f /usr/local/include/newt.h ]; then echo "astman"; else echo "none" ; fi)
all: depend $(TARGET)
install:
@@ -19,7 +26,7 @@ clean:
rm -f *.o astman .depend
astman: astman.o ../md5.o
$(CC) -o astman astman.o ../md5.o -lnewt
$(CC) $(CFLAGS) -o astman astman.o ../md5.o -lnewt
ifneq ($(wildcard .depend),)
include .depend