diff options
Diffstat (limited to 'agi')
-rw-r--r-- | agi/Makefile | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/agi/Makefile b/agi/Makefile index e7a210742..907d5efe4 100644 --- a/agi/Makefile +++ b/agi/Makefile @@ -15,13 +15,18 @@ AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi -LIBS= ifeq ($(OSARCH),SunOS) - LIBS=-lsocket -lnsl ../strcompat.o + LDFLAGS+=-lsocket -lnsl ../strcompat.o endif +include $(ASTTOPDIR)/Makefile.rules + all: $(AGIS) +eagi-test: eagi-test.o + +eagi-sphinx-test: eagi-sphinx-test.o + install: all mkdir -p $(DESTDIR)$(AGI_DIR) for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done @@ -29,21 +34,12 @@ install: all uninstall: for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done -eagi-test: eagi-test.o - $(CC) $(CFLAGS) -include ../include/autoconfig.h -o eagi-test eagi-test.o $(LIBS) - -eagi-sphinx-test: eagi-sphinx-test.o - $(CC) $(CFLAGS) -include ../include/autoconfig.h -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS) - clean-depend: rm -f .depend clean: clean-depend rm -f *.so *.o look eagi-test eagi-sphinx-test -%.so : %.o - $(CC) -shared -Xlinker -x -o $@ $< - ifneq ($(wildcard .depend),) include .depend endif |