diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/Makefile.am | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/Makefile.am b/drivers/Makefile.am new file mode 100644 index 00000000..0791a1a2 --- /dev/null +++ b/drivers/Makefile.am @@ -0,0 +1,28 @@ + +builtin_modules = +builtin_sources = +builtin_cflags = + +noinst_LTLIBRARIES = libbuiltin.la + +libbuiltin_la_SOURCES = $(builtin_sources) +libbuiltin_la_LDFLAGS = +libbuiltin_la_CFLAGS = $(AM_CFLAGS) $(builtin_cflags) -DOFONO_PLUGIN_BUILTIN + +BUILT_SOURCES = builtin.h + +nodist_libbuiltin_la_SOURCES = $(BUILT_SOURCES) + +CLEANFILES = $(BUILT_SOURCES) + +MAINTAINERCLEANFILES = Makefile.in + +builtin.h: + echo "" > $@ + list='$(builtin_modules)'; for i in $$list; \ + do echo "extern struct ofono_plugin_desc __ofono_builtin_$$i;" >> $@; done + echo "" >> $@ + echo "static struct ofono_plugin_desc *__ofono_drivers[] = {" >> $@ + list='$(builtin_modules)'; for i in $$list; \ + do echo "&__ofono_builtin_$$i," >> $@; done + echo "NULL };" >> $@ |