- specify that 'all' is a .PHONY target
[asterisk/asterisk.git] / agi / Makefile
index d9d10dc..21c1d57 100644 (file)
@@ -3,7 +3,7 @@
 # 
 # Makefile for AGI-related stuff
 #
 # 
 # Makefile for AGI-related stuff
 #
-# Copyright (C) 1999-2005, Digium
+# Copyright (C) 1999-2006, Digium
 #
 # Mark Spencer <markster@digium.com>
 #
 #
 # Mark Spencer <markster@digium.com>
 #
 # the GNU General Public License
 #
 
 # the GNU General Public License
 #
 
-AGIS=agi-test.agi eagi-test eagi-sphinx-test
+.PHONY: clean clean-depend all
 
 
-CFLAGS+=
+AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
 
 LIBS=
 ifeq ($(OSARCH),SunOS)
   LIBS=-lsocket -lnsl ../strcompat.o
 endif
 
 
 LIBS=
 ifeq ($(OSARCH),SunOS)
   LIBS=-lsocket -lnsl ../strcompat.o
 endif
 
-ifeq ($(findstring BSD,${OSARCH}),BSD)
-  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
-endif
-
-all: depend $(AGIS)
+all: $(AGIS)
 
 install: all
        mkdir -p $(DESTDIR)$(AGI_DIR)
 
 install: all
        mkdir -p $(DESTDIR)$(AGI_DIR)
@@ -34,10 +30,10 @@ uninstall:
        for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
 
 eagi-test: eagi-test.o
        for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
 
 eagi-test: eagi-test.o
-       $(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS)
+       $(CC) $(CFLAGS) -include ../include/autoconfig.h -o eagi-test eagi-test.o $(LIBS)
 
 eagi-sphinx-test: eagi-sphinx-test.o
 
 eagi-sphinx-test: eagi-sphinx-test.o
-       $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS) 
+       $(CC) $(CFLAGS) -include ../include/autoconfig.h -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS) 
 
 clean-depend:
        rm -f .depend
 
 clean-depend:
        rm -f .depend