File: Makefile.am

package info (click to toggle)
libirman 0.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,652 kB
  • ctags: 338
  • sloc: sh: 4,099; ansic: 1,541; makefile: 71
file content (87 lines) | stat: -rw-r--r-- 2,314 bytes parent folder | download
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
AUTOMAKE_OPTIONS = subdir-objects -Wno-portability
ACLOCAL_AMFLAGS  = -I m4
AM_DISTCHECK_CONFIGURE_FLAGS = --disable-rpath

EXTRA_DIST = COPYING.lib TECHNICAL libirman.pc.in
CLEANFILES = $(DESTDIR)$(plugindir)/irman.so

DESTDIR         ?= $(CURDIR)

if BUILD_PLUGIN

install-data-hook:
	rm -f $(DESTDIR)$(plugindir)/irman.la
	rm -f $(DESTDIR)$(plugindir)/irman.a

uninstall-hook:
	rm -f $(DESTDIR)$(plugindir)/irman.so

plugindir       = $(shell pkg-config --variable=plugindir lirc-driver)
configdir       = $(shell pkg-config --variable=configdir lirc-driver)
plugindocsdir   = $(shell pkg-config --variable=plugindocs lirc-driver)

plugin_LTLIBRARIES      = irman.la
irman_la_SOURCES        = lirc-plugin/irman.c
irman_la_LDFLAGS        = -module -avoid-version -llirc_client -lirman
irman_la_CFLAGS         = -DPLUGINDOCS='"$(plugindocsdir)"'
irman_la_DEPENDENCIES   = libirman.la

dist_config_DATA        = lirc-plugin/irman.conf
dist_plugindocs_DATA    = lirc-plugin/irman.html

endif


dist_doc_DATA = README TECHNICAL

include_HEADERS = irman.h

dist_sysconf_DATA = irman.conf

pkgconfigdir = $(libdir)/pkgconfig
dist_pkgconfig_DATA = libirman.pc


bin_PROGRAMS = workmanir irman.test_func irman.test_io irman.test_name
lib_LTLIBRARIES = libirman.la

if BUILD_SWTEST
bin_PROGRAMS += workmanir_sw
bin_PROGRAMS += irman.test_io_sw irman.test_func_sw irman.test_name_sw
lib_LTLIBRARIES += libirman_sw.la
endif

irman_test_io_SOURCES = test_io.c
irman_test_io_LDADD = libirman.la

workmanir_SOURCES = workmanir.c
workmanir_LDADD = libirman.la

irman_test_func_SOURCES = test_func.c
irman_test_func_LDADD = libirman.la

irman_test_name_SOURCES = test_name.c
irman_test_name_LDADD = libirman.la

libirman_la_SOURCES = chunk.c chunk.h hashtable.c hashtable.h irio.c \
			irfunc.c ircmd.c
libirman_la_CFLAGS = -DIR_SYSCONF_DIR=\"$(sysconfdir)\"

if BUILD_SWTEST
irman_test_func_sw_SOURCES = test_func.c
irman_test_func_sw_LDADD = libirman_sw.la

irman_test_name_sw_SOURCES = test_name.c
irman_test_name_sw_LDADD = libirman_sw.la

irman_test_io_sw_SOURCES = test_io.c
irman_test_io_sw_LDADD = libirman.la

workmanir_sw_SOURCES = workmanir.c
workmanir_sw_LDADD = libirman_sw.la

libirman_sw_la_SOURCES = chunk.c chunk.h hashtable.c hashtable.h \
			irfunc.c ircmd.c
libirman_sw_la_CFLAGS = -DIR_SOFTWARE_TEST
endif