diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-04-07 17:35:42 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-10-20 23:12:22 -0700 |
commit | 691a38d5a9ff5529c7b30aba878a60598e68b9c9 (patch) | |
tree | e42009b3ccd2a6a0fa766eaa0e9f1b1412b47fa6 /Makefile.am | |
download | neard-691a38d5a9ff5529c7b30aba878a60598e68b9c9.tar.gz neard-691a38d5a9ff5529c7b30aba878a60598e68b9c9.tar.bz2 neard-691a38d5a9ff5529c7b30aba878a60598e68b9c9.zip |
Initial revision
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..a2e0b92 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,58 @@ + +AM_MAKEFLAGS = --no-print-directory + +includedir = @includedir@/near + +noinst_HEADERS = include/dbus.h + +local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS) \ + $(noinst_HEADERS), include/near/$(notdir $(file))) + +gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \ + gdbus/object.c gdbus/polkit.c + +builtin_modules = +builtin_sources = +builtin_cflags = +builtin_libadd = + +libexec_PROGRAMS = src/neard + +src_neard_SOURCES = $(gdbus_sources) $(gweb_sources) $(builtin_sources) \ + src/main.c src/error.c src/near.h src/types.h \ + src/log.h src/log.c src/dbus.c src/manager.c \ + src/adapter.c + +src_neard_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ -lresolv -ldl + +src_neard_LDFLAGS = -Wl,--export-dynamic + +nodist_src_neard_SOURCES = src/builtin.h + +src/builtin.h: src/genbuiltin $(builtin_sources) + $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@ + +AM_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ $(builtin_cflags) \ + -DMMS_PLUGIN_BUILTIN \ + -DPLUGINDIR=\""$(plugindir)"\" + +INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/gdbus + +CLEANFILES = src/builtin.h $(local_headers) + +doc_files = doc/manager-api.txt doc/target-api.txt doc/adapter-api.txt + +EXTRA_DIST = src/genbuiltin $(test_scripts) $(doc_files) + +MAINTAINERCLEANFILES = Makefile.in \ + aclocal.m4 configure config.h.in config.sub config.guess \ + ltmain.sh depcomp compile missing install-sh mkinstalldirs + +$(src_neard_OBJECTS) $(plugin_objects): $(local_headers) + +include/near/%.h: include/%.h + $(AM_V_at)$(MKDIR_P) include/near + $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@ + +clean-local: + @$(RM) -rf include/near |