blob: d64112e5a8129bc14185c78fa300420966100733 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
AM_MAKEFLAGS = --no-print-directory
includedir = @includedir@/near
include_HEADERS = include/types.h include/log.h include/plugin.h \
include/tag.h include/adapter.h include/ndef.h \
include/target.h include/tlv.h
nodist_include_HEADERS = include/version.h
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
plugin_LTLIBRARIES =
plugin_objects =
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/log.c \
src/dbus.c src/manager.c src/adapter.c src/target.c \
src/tag.c src/plugin.c src/netlink.c src/ndef.c \
src/tlv.c src/bluetooth.c
src_neard_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ @NETLINK_LIBS@ -lresolv -ldl
src_neard_LDFLAGS = -Wl,--export-dynamic
nodist_src_neard_SOURCES = src/builtin.h
AM_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ @NETLINK_CFLAGS@ $(builtin_cflags) \
-DNEAR_PLUGIN_BUILTIN \
-DPLUGINDIR=\""$(plugindir)"\"
INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/gdbus
CLEANFILES = src/builtin.h $(local_headers)
plugindir = $(libdir)/near/plugins
if MAINTAINER_MODE
build_plugindir = $(abs_top_srcdir)/plugins/.libs
else
build_plugindir = $(plugindir)
endif
doc_files = doc/manager-api.txt doc/target-api.txt doc/adapter-api.txt
EXTRA_DIST = src/genbuiltin $(doc_files)
test_scripts = test/list-adapters
if TEST
testdir = $(pkglibdir)/test
test_SCRIPTS = $(test_scripts)
endif
include Makefile.plugins
EXTRA_DIST += $(test_scripts)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = neard.pc
DISTCHECK_CONFIGURE_FLAGS = --enable-nfctype1 \
--enable-nfctype2 \
--enable-nfctype3 \
--enable-nfctype4 \
--enable-p2p
DISTCLEANFILES = $(pkgconfig_DATA)
MAINTAINERCLEANFILES = Makefile.in \
aclocal.m4 configure config.h.in config.sub config.guess \
ltmain.sh depcomp compile missing install-sh mkinstalldirs
src/plugin.$(OBJEXT): src/builtin.h
src/builtin.h: src/genbuiltin $(builtin_sources)
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
$(src_neard_OBJECTS) $(plugin_objects): $(local_headers)
include/near/version.h: include/version.h
$(AM_V_at)$(MKDIR_P) include/near
$(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
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
|