diff options
author | Mark Spencer <markster@digium.com> | 2004-06-04 15:44:14 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-04 15:44:14 +0000 |
commit | 103bb4a33480fe9f7e484a851deaef458a40a69b (patch) | |
tree | f162578b4f4db311cb01a087e412ca2a84c24d63 /astman | |
parent | aa2795cc46ec5f9b3ec85f90990e72a67e164627 (diff) |
Enhancements for zaptel+bsd (bug #1781)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'astman')
-rwxr-xr-x | astman/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/astman/Makefile b/astman/Makefile index 476c4915c..06bed92fa 100755 --- a/astman/Makefile +++ b/astman/Makefile @@ -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 |