| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # Asterisk -- A telephony toolkit for Linux.
 | 
					
						
							|  |  |  | # 
 | 
					
						
							| 
									
										
										
										
											2005-06-20 17:26:08 +00:00
										 |  |  | # Makefile for AGI-related stuff
 | 
					
						
							| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2006-04-24 17:11:45 +00:00
										 |  |  | # Copyright (C) 1999-2006, Digium
 | 
					
						
							| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2005-06-20 17:26:08 +00:00
										 |  |  | # Mark Spencer <markster@digium.com>
 | 
					
						
							| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # This program is free software, distributed under the terms of
 | 
					
						
							|  |  |  | # the GNU General Public License
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-16 21:24:52 +00:00
										 |  |  | .PHONY: clean all uninstall | 
					
						
							| 
									
										
										
										
											2006-06-22 11:27:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-03-06 23:39:39 +00:00
										 |  |  | AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi | 
					
						
							| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-12-14 23:36:30 +00:00
										 |  |  | ifeq ($(OSARCH),SunOS) | 
					
						
							| 
									
										
										
										
											2006-09-15 17:16:00 +00:00
										 |  |  |   LIBS+=-lsocket -lnsl | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-11-17 19:29:04 +00:00
										 |  |  | ifeq ($(OSARCH),mingw32) | 
					
						
							|  |  |  |     AGIS:= | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-07-06 23:18:45 +00:00
										 |  |  | include $(ASTTOPDIR)/Makefile.rules | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-04-09 04:59:05 +00:00
										 |  |  | ASTCFLAGS+=-DSTANDALONE | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-02 17:40:58 +00:00
										 |  |  | all: $(AGIS) | 
					
						
							| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-09-29 22:48:43 +00:00
										 |  |  | strcompat.c: ../main/strcompat.c | 
					
						
							|  |  |  | 	@cp $< $@ | 
					
						
							| 
									
										
										
										
											2008-09-27 16:10:33 +00:00
										 |  |  | strcompat.o: ASTCFLAGS+=-DSTANDALONE | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | eagi-test.o: ASTCFLAGS+=-DSTANDALONE | 
					
						
							| 
									
										
										
										
											2006-09-29 22:48:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-09-15 17:16:00 +00:00
										 |  |  | eagi-test: eagi-test.o strcompat.o | 
					
						
							| 
									
										
										
										
											2006-07-06 23:18:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-09-27 16:10:33 +00:00
										 |  |  | eagi-sphinx-test.o: ASTCFLAGS+=-DSTANDALONE | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-07-06 23:18:45 +00:00
										 |  |  | eagi-sphinx-test: eagi-sphinx-test.o | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | install: all | 
					
						
							| 
									
										
										
										
											2003-10-25 17:27:53 +00:00
										 |  |  | 	mkdir -p $(DESTDIR)$(AGI_DIR) | 
					
						
							|  |  |  | 	for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done | 
					
						
							| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-02-01 18:39:41 +00:00
										 |  |  | uninstall: | 
					
						
							|  |  |  | 	for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-16 21:24:52 +00:00
										 |  |  | clean: | 
					
						
							| 
									
										
										
										
											2006-02-12 16:52:42 +00:00
										 |  |  | 	rm -f *.so *.o look eagi-test eagi-sphinx-test | 
					
						
							| 
									
										
										
										
											2008-11-26 19:08:56 +00:00
										 |  |  | 	rm -f .*.d *.s *.i | 
					
						
							| 
									
										
										
										
											2006-09-29 22:48:43 +00:00
										 |  |  | 	rm -f strcompat.c | 
					
						
							| 
									
										
										
										
											2001-07-28 20:19:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-16 21:24:52 +00:00
										 |  |  | ifneq ($(wildcard .*.d),) | 
					
						
							|  |  |  |    include .*.d | 
					
						
							| 
									
										
										
										
											2006-09-09 03:27:21 +00:00
										 |  |  | endif |