diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Makefile.am | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 02742923..e2ad41f0 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -1,2 +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_builtin[] = {" >> $@ + list='$(builtin_modules)'; for i in $$list; \ + do echo "&__ofono_builtin_$$i," >> $@; done + echo "NULL };" >> $@ |