Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-04-24 17:11:45 +00:00
parent 746c984500
commit 574e14cbea
115 changed files with 22019 additions and 832 deletions

View File

@@ -3,7 +3,7 @@
#
# Various utilities
#
# Copyright (C) 1999-2005, Digium
# Copyright (C) 1999-2006, Digium
#
# Mark Spencer <markster@digium.com>
#
@@ -14,27 +14,25 @@
#
# Don't use ast mm routines
#
CFLAGS+=-DNO_AST_MM
TARGET=stereorize streamplayer
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/popt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)/usr/local/include/popt.h),)
TARGET+=smsq
endif
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/newt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)/usr/local/include/newt.h),)
TARGET+=astman
endif
UTILS:=astman smsq stereorize streamplayer
ifeq (${OSARCH},SunOS)
SOL=../strcompat.o
SOLLIBS=-lsocket -lnsl
endif
all: depend $(TARGET)
ifeq ($(POPT_LIB),)
UTILS:=$(filter-out smsq,$(UTILS))
endif
ifeq ($(NEWT_LIB),)
UTILS:=$(filter-out astman,$(UTILS))
endif
all: depend $(UTILS)
install:
for x in $(TARGET); do \
for x in $(UTILS); do \
if [ "$$x" != "none" ]; then \
$(INSTALL) -m 755 $$x $(DESTDIR)$(ASTSBINDIR)/$$x; \
fi; \
@@ -47,11 +45,14 @@ clean-depend:
rm -f .depend
clean: clean-depend
rm -f *.o astman smsq stereorize streamplayer check_expr
rm -f *.o $(TARGET) check_expr
rm -f ast_expr2.o ast_expr2f.o
astman.o: astman.c
$(CC) $(CFLAGS) -include ../include/autoconfig.h -c -o $@ $<
astman: astman.o ../md5.o
$(CC) $(CFLAGS) -o astman astman.o ../md5.o -lnewt
$(CC) -D_GNU_SOURCE -o $@ $< ../md5.o -lnewt
stereorize: stereorize.o frame.o
$(CC) $(CFLAGS) -o stereorize stereorize.o frame.o -lm
@@ -65,6 +66,9 @@ ast_expr2f.o: ../ast_expr2f.c
check_expr: check_expr.c ast_expr2.o ast_expr2f.o
$(CC) $(CFLAGS) -o $@ $^
smsq.o: smsq.c
$(CC) $(CFLAGS) -include ../include/autoconfig.h -c -o $@ $<
smsq: smsq.o
$(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt