2014-12-22 04:07:59 +08:00
|
|
|
|
|
|
|
LEGACY_MAKE = \
|
|
|
|
$(MAKE) -f $(srcdir)/Makefile.legacy \
|
|
|
|
top_srcdir=$(top_srcdir) \
|
|
|
|
srcdir=$(srcdir)
|
|
|
|
|
2015-05-18 23:25:03 +08:00
|
|
|
all-local: $(perl_checks)
|
2014-12-22 04:07:59 +08:00
|
|
|
$(LEGACY_MAKE) all
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
$(LEGACY_MAKE) clean
|
|
|
|
|
|
|
|
install-exec-hook:
|
|
|
|
$(LEGACY_MAKE) install
|
|
|
|
|
|
|
|
# Cannot allow this yet
|
|
|
|
distclean:
|
|
|
|
maintainer-clean:
|
2014-12-21 22:13:58 +08:00
|
|
|
|
|
|
|
SUBDIRS =
|
|
|
|
|
|
|
|
GLOBAL_CFLAGS = -I$(srcdir) -I$(srcdir)/xtalk
|
|
|
|
|
2015-05-18 23:25:03 +08:00
|
|
|
if PERL
|
|
|
|
SUBDIRS += perl_modules
|
|
|
|
|
|
|
|
%.8: %
|
|
|
|
@if file "$^" | cut -d: -f2 | grep -q perl; then \
|
|
|
|
if pod2man --section 8 $^ > $@; then \
|
|
|
|
echo " GEN $@"; \
|
|
|
|
else \
|
|
|
|
rm -f "$@"; \
|
|
|
|
fi \
|
|
|
|
fi
|
|
|
|
|
|
|
|
%.check: %
|
|
|
|
@echo " CHECK $^"; \
|
|
|
|
if ! perl -I./perl_modules -c $^ 2>/dev/null; then \
|
|
|
|
perl -I./perl_modules -c $^; \
|
|
|
|
fi
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
perl_scripts = \
|
|
|
|
dahdi_registration \
|
|
|
|
xpp_sync \
|
|
|
|
lsdahdi \
|
|
|
|
xpp_blink \
|
|
|
|
dahdi_genconf \
|
|
|
|
dahdi_hardware \
|
|
|
|
twinstar \
|
|
|
|
#
|
|
|
|
|
|
|
|
perl_checks = $(perl_scripts:%=%.check)
|
|
|
|
perl_mans = $(perl_scripts:%=%.8)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2015-05-18 23:42:38 +08:00
|
|
|
udevrulesdir = @udevrulesdir@
|
|
|
|
udevrules_DATA = xpp.rules
|
|
|
|
|
2015-05-18 23:25:03 +08:00
|
|
|
dist_sbin_SCRIPTS = $(perl_scripts)
|
|
|
|
man_MANS = $(perl_mans)
|
|
|
|
CLEANFILES = $(perl_checks) $(perl_mans)
|
|
|
|
|
2014-12-21 22:13:58 +08:00
|
|
|
if PBX_USB
|
|
|
|
|
|
|
|
SUBDIRS += oct612x
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libastribank.la libecholoader.la
|
|
|
|
libastribank_la_SOURCES = \
|
|
|
|
xtalk/xusb.c \
|
|
|
|
xtalk/xlist.c \
|
|
|
|
xtalk/debug.c \
|
|
|
|
xtalk/xtalk.c \
|
|
|
|
mpptalk.c \
|
|
|
|
astribank_usb.c
|
|
|
|
libastribank_la_CFLAGS = $(GLOBAL_CFLAGS)
|
|
|
|
|
|
|
|
if USE_OCTASIC
|
|
|
|
libecholoader_la_SOURCES = \
|
|
|
|
parse_span_specs.c \
|
|
|
|
echo_loader.c
|
|
|
|
libecholoader_la_CFLAGS = $(GLOBAL_CFLAGS) $(OCTASIC_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
sbin_PROGRAMS = \
|
|
|
|
astribank_tool \
|
|
|
|
astribank_hexload \
|
|
|
|
astribank_allow \
|
|
|
|
astribank_is_starting
|
|
|
|
|
|
|
|
check_PROGRAMS = test_parse
|
|
|
|
|
|
|
|
astribank_tool_SOURCES = astribank_tool.c
|
|
|
|
astribank_tool_CFLAGS = $(GLOBAL_CFLAGS)
|
|
|
|
astribank_tool_LDFLAGS = $(USB_LIB)
|
|
|
|
astribank_tool_LDADD = libastribank.la
|
|
|
|
|
|
|
|
astribank_hexload_SOURCES = astribank_hexload.c hexfile.c pic_loader.c
|
|
|
|
astribank_hexload_CFLAGS = $(GLOBAL_CFLAGS) $(OCTASIC_CFLAGS)
|
|
|
|
astribank_hexload_LDFLAGS = $(USB_LIB)
|
|
|
|
astribank_hexload_LDADD = libastribank.la libecholoader.la oct612x/liboctasic.la
|
|
|
|
|
|
|
|
astribank_allow_SOURCES = astribank_allow.c astribank_license.c
|
|
|
|
astribank_allow_CFLAGS = $(GLOBAL_CFLAGS)
|
|
|
|
astribank_allow_LDFLAGS = $(USB_LIB)
|
|
|
|
astribank_allow_LDADD = libastribank.la
|
|
|
|
|
2015-05-18 23:25:03 +08:00
|
|
|
man_pages = \
|
2014-12-21 22:13:58 +08:00
|
|
|
astribank_tool.8 \
|
|
|
|
astribank_hexload.8 \
|
|
|
|
astribank_allow.8 \
|
|
|
|
astribank_is_starting.8
|
2015-05-18 23:25:03 +08:00
|
|
|
|
|
|
|
man_MANS += $(man_pages)
|
2014-12-21 22:13:58 +08:00
|
|
|
endif
|