diff options
Diffstat (limited to 'agi/Makefile')
-rwxr-xr-x | agi/Makefile | 9 |
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 |