file is generated. This allows a fresh checkout of asterisk to be built and installed with the standard "./configure && make && make install". git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
70 lines
1.4 KiB
Makefile
70 lines
1.4 KiB
Makefile
#
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
#
|
|
# Makefile for PBX applications
|
|
#
|
|
# Copyright (C) 1999-2006, Digium, Inc.
|
|
#
|
|
# Mark Spencer <markster@digium.com>
|
|
#
|
|
# This program is free software, distributed under the terms of
|
|
# the GNU General Public License
|
|
#
|
|
|
|
include ../menuselect.makeopts
|
|
|
|
SELECTED_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%,$(wildcard app_*.c)))
|
|
|
|
# If you have UnixODBC you can use ODBC voicemail
|
|
# storage
|
|
#
|
|
# Uncomment to use ODBC storage
|
|
#CFLAGS+=-DUSE_ODBC_STORAGE
|
|
# Uncomment for extended ODBC voicemail storage
|
|
#CFLAGS+=-DEXTENDED_ODBC_STORAGE
|
|
# See doc/README.odbcstorage for more information
|
|
|
|
MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
|
|
|
|
all: $(MODS)
|
|
|
|
clean-depend:
|
|
rm -f .depend
|
|
|
|
clean: clean-depend
|
|
rm -f *.so *.o
|
|
|
|
%.so: %.o
|
|
$(CC) $(SOLINK) -o $@ $<
|
|
|
|
app_rpt.so: app_rpt.o
|
|
$(CC) $(SOLINK) -o $@ $< $(ZAPTEL_LIB)
|
|
|
|
app_rpt.o: app_rpt.c
|
|
$(CC) -c -o $@ $(CFLAGS) $(ZAPTEL_INCLUDE) $<
|
|
|
|
install: all
|
|
for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
|
|
rm -f $(DESTDIR)$(MODULES_DIR)/app_cut.so
|
|
rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so
|
|
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so
|
|
|
|
uninstall:
|
|
|
|
ifeq (SunOS,$(shell uname))
|
|
app_chanspy.so: app_chanspy.o
|
|
$(CC) $(SOLINK) -o $@ $< -lrt
|
|
endif
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
include .depend
|
|
endif
|
|
|
|
depend: .depend
|
|
|
|
.depend:
|
|
../build_tools/mkdep $(CFLAGS) `ls *.c`
|
|
|
|
env:
|
|
env
|