2 # Asterisk -- A telephony toolkit for Linux.
6 # Copyright (C) 1999-2006, Digium
8 # Mark Spencer <markster@digium.com>
10 # This program is free software, distributed under the terms of
11 # the GNU General Public License
15 # Don't use ast mm routines
17 UTILS:=astman smsq stereorize streamplayer aelparse
19 ifeq (${OSARCH},SunOS)
21 SOLLIBS=-lsocket -lnsl
25 UTILS:=$(filter-out smsq,$(UTILS))
29 UTILS:=$(filter-out astman,$(UTILS))
35 for x in $(UTILS); do \
36 if [ "$$x" != "none" ]; then \
37 $(INSTALL) -m 755 $$x $(DESTDIR)$(ASTSBINDIR)/$$x; \
42 for x in $(TARGET); do rm -f $$x $(DESTDIR)$(ASTSBINDIR)/$$x; done
48 rm -f *.o $(TARGET) check_expr
49 rm -f ast_expr2.o ast_expr2f.o
52 $(CC) $(CFLAGS) -include ../include/autoconfig.h -c -o $@ $<
54 astman: astman.o ../md5.o
55 $(CC) -D_GNU_SOURCE -o $@ $< ../md5.o -lnewt
57 stereorize: stereorize.o frame.o
58 $(CC) $(CFLAGS) -o stereorize stereorize.o frame.o -lm
60 .PHONY: ../ast_expr2.c ../ast_expr2f.c ../pbx/ael/aelflex.o ../pbx/ael/aelbison.o ../pbx/pbx_ael.o
62 ast_expr2.o: ../ast_expr2.c
63 gcc $(CFLAGS) -include ../include/autoconfig.h -c -o $@ $<
65 ast_expr2f.o: ../ast_expr2f.c
66 gcc $(CFLAGS) -include ../include/autoconfig.h -c -DSTANDALONE -o $@ $<
68 check_expr: check_expr.c ast_expr2.o ast_expr2f.o
69 $(CC) $(CFLAGS) -o $@ $^
71 aelparse : ../pbx/ael/aelflex.o ../pbx/ael/aelbison.o ../pbx/pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o
72 $(CC) $(CFLAGS) -g -o aelparse ../pbx/ael/aelflex.o ../pbx/ael/aelbison.o ael_main.o ../pbx/pbx_ael.o ../ast_expr2f.o ../ast_expr2.o
74 ael_main.o : ael_main.c ../include/asterisk/ael_structs.h
75 $(CC) $(CFLAGS) -include ../include/autoconfig.h -c -g -o ael_main.o ael_main.c
77 ael_main1.o : ael_main.c ../include/asterisk/ael_structs.h
78 $(CC) $(CFLAGS) -c -g -o ael_main1.o ael_main.c
80 testexpr2s: ../ast_expr2f.c ../ast_expr2.c ../ast_expr2.h
81 gcc -g -c -I../include -DSTANDALONE ../ast_expr2f.c -o ast_expr2f.o
82 gcc -g -c -I../include -DSTANDALONE ../ast_expr2.c -o ast_expr2.o
83 gcc -g -o testexpr2s ast_expr2f.o ast_expr2.o
84 rm ast_expr2.o ast_expr2f.o
85 ./testexpr2s expr2.testinput
88 $(CC) $(CFLAGS) -include ../include/autoconfig.h -c -o $@ $<
91 $(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt
93 streamplayer: streamplayer.o
94 $(CC) $(CFLAGS) -o streamplayer ${SOL} streamplayer.o ${SOLLIBS}
96 ifneq ($(wildcard .depend),)
103 ../build_tools/mkdep $(CFLAGS) `ls *.c`