blob: deaadcf97ae425408ddf2a7326e330d86ea9a275 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
EXTRA_CFLAGS = $(XPP_LOCAL_CFLAGS) \
-g3 -I$(SUBDIRS) \
-DDEBUG \
-DPOLL_DIGITAL_INPUTS \
-DWITH_ECHO_SUPPRESSION \
-DPROTOCOL_DEBUG \
-DZAPTEL_EC_TYPEDEF \
# Useful for Astribank-BRI debugging, and maybe more later on.
# Requires debugfs support in the kernel.
# -DXPP_DEBUGFS
DRIVER_DIR = $(SUBDIRS)
obj-m += xpp.o xpd_fxs.o xpd_fxo.o
HAS_BRISTUFF := $(shell cpp $(CPPFLAGS) -dM $(DRIVER_DIR)/zconfig.h | sed -n 's/^.*CONFIG_ZAPATA_BRI_DCHANS/y/p')
# Build only supported modules
ifneq (,$(filter y m,$(CONFIG_USB)))
obj-m += xpp_usb.o
endif
ifneq (,$(HAS_BRISTUFF))
obj-m += xpd_bri.o
endif
xpp-y += xbus-core.o xpp_zap.o xproto.o card_global.o
xpd_fxs-y += card_fxs.o
xpd_fxo-y += card_fxo.o
xpd_bri-y += card_bri.o
ctags:
ctags *.[ch]
|