summaryrefslogtreecommitdiff
path: root/agi/Makefile
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-12-14 23:36:30 +0000
committerMark Spencer <markster@digium.com>2004-12-14 23:36:30 +0000
commit9d40b8ee8045660d58281553e34b7f45406951c0 (patch)
tree48694f38698e4ead3840305333816193c7fcd8a0 /agi/Makefile
parent0f205bb07903a70272e8ae2403afe20ceb06cedc (diff)
Merge slimey's Solaris compatibility (with small mods) (bug #2740)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'agi/Makefile')
-rwxr-xr-xagi/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/agi/Makefile b/agi/Makefile
index 2f87df5f8..0d8a35922 100755
--- a/agi/Makefile
+++ b/agi/Makefile
@@ -15,6 +15,11 @@ AGIS=agi-test.agi eagi-test eagi-sphinx-test
CFLAGS+=
+LIBS=
+ifeq ($(OSARCH),SunOS)
+LIBS=-lsocket -lnsl ../strcompat.o
+endif
+
all: depend $(AGIS)
install: all
@@ -22,10 +27,10 @@ install: all
for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
eagi-test: eagi-test.o
- $(CC) $(CFLAGS) -o eagi-test eagi-test.o
+ $(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS)
eagi-sphinx-test: eagi-sphinx-test.o
- $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o
+ $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS)
clean:
rm -f *.so *.o look .depend eagi-test eagi-sphinx-test