diff options
Diffstat (limited to 'xpp/Makefile')
-rw-r--r-- | xpp/Makefile | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/xpp/Makefile b/xpp/Makefile index 1207332..ec7ecbe 100644 --- a/xpp/Makefile +++ b/xpp/Makefile @@ -1,5 +1,30 @@ -EXTRA_CFLAGS = -I$(src)/.. -DSOFT_SIMULATOR=0 +EXTRA_CFLAGS = -I$(SUBDIRS) -DDEBUG # -DHARD_CODED_INIT # -DOLD_CARD # -DWITH_RBS -obj-m = xpd_fxs.o xpp.o xpp_usb.o -xpp-y += xproto.o card_global.o xpp_zap.o zap_debug.o -xpd_fxs-y += card_fxs.o slic.o +obj-m = xpp.o xpd_fxs.o xpd_fxo.o xpp_usb.o +xpp-y += xbus-core.o xpp_zap.o xproto.o card_global.o +xpd_fxs-y += card_fxs.o slic.o +xpd_fxo-y += card_fxo.o slic.o + +GENERATE_INIT_DATA := 1 +INIT_DATA = init_data_3_19.inc init_data_3_20.inc init_data_4_19.inc init_data_4_20.inc +clean-files := $(INIT_DATA) + +cmd2inc=$(src)/cmd2inc + +define run_cmd2inc +if [ ! -x $(cmd2inc) ]; then chmod +x $(cmd2inc); fi +$(cmd2inc) $^ $@ +endef + +ifeq ($(GENERATE_INIT_DATA),1) + +$(obj)/%.inc: $(src)/%.cmd + @echo "Generating $@" + @$(run_cmd2inc) + +init_data: $(INIT_DATA) + +$(obj)/card_fxs.o: $(obj)/init_data_3_19.inc $(obj)/init_data_3_20.inc +$(obj)/card_fxo.o: $(obj)/init_data_4_19.inc $(obj)/init_data_4_20.inc + +endif |