mirror of
https://github.com/asterisk/asterisk.git
synced 2025-12-12 01:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user