File: Makefile.am

package info (click to toggle)
ecasound 2.9.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,588 kB
  • ctags: 6,128
  • sloc: cpp: 39,403; sh: 10,512; ansic: 2,040; lisp: 1,918; makefile: 909; python: 611; ruby: 202
file content (95 lines) | stat: -rw-r--r-- 3,401 bytes parent folder | download | duplicates (3)
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
# ----------------------------------------------------------------------
# File: ecasound/libecasoundc/Makefile.am
# Description: Ecasound Control Interface C implementation.
# License: LGPL (see ecasound/{AUTHORS,COPYING})
# ----------------------------------------------------------------------

EXTRA_DIST = ChangeLog
AUTOMAKE_OPTIONS = foreign

# ----------------------------------------------------------------------
# defines
# ----------------------------------------------------------------------

# !!!
# remember to update eca-version.cpp
if ECA_AM_DEBUG_MODE
eca_ldflags = -version-info @LIBECASOUNDC_VERSION@:0:@LIBECASOUNDC_VERSION_AGE@ -shared -fPIC
else
eca_ldflags = -s -version-info @LIBECASOUNDC_VERSION@:0:@LIBECASOUNDC_VERSION_AGE@ -shared -fPIC
endif

INCLUDES = -I$(srcdir)
# -I$(top_srcdir)/libecasound

# ----------------------------------------------------------------------
# build targets and compiler options target defines
# ----------------------------------------------------------------------

if ECA_AM_DEBUG_MODE
lib_LTLIBRARIES = libecasoundc_debug.la
else
lib_LTLIBRARIES = libecasoundc.la
endif

TESTS = libecasoundc_tester ecicpp_tester

check_PROGRAMS = $(TESTS)

# ----------------------------------------------------------------------
# header files
# ----------------------------------------------------------------------

ecasoundc_includes =	ecasoundc.h \
			eca-control-interface.h
noinst_HEADERS = $(ecasoundc_includes)

# ----------------------------------------------------------------------
# source files
# ----------------------------------------------------------------------

# standalone implementation (forks and execs the ecasound binary)
ecasoundc_src =	ecasoundc_sa.c \
		eca-control-interface.cpp

# ----------------------------------------------------------------------
# library definitons
# ----------------------------------------------------------------------

libecasoundc_la_SOURCES = $(ecasoundc_src)
libecasoundc_la_CFLAGS = -prefer-pic
libecasoundc_la_CXXFLAGS = -prefer-pic
libecasoundc_la_LIBADD =
libecasoundc_la_LDFLAGS = -export-dynamic $(eca_ldflags)
libecasoundc_debug_la_SOURCES = $(libecasoundc_la_SOURCES)
libecasoundc_debug_la_CFLAGS = $(libecasoundc_la_CFLAGS)
libecasoundc_debug_la_CXXFLAGS = $(libecasoundc_la_CXXFLAGS)
libecasoundc_debug_la_LIBADD = $(libecasoundc_la_LIBADD)
libecasoundc_debug_la_LDFLAGS = $(libecasoundc_la_LDFLAGS)

libecasoundc_tester_SOURCES = libecasoundc_tester.c
libecasoundc_tester_LDADD = $(lib_LTLIBRARIES)

ecicpp_tester_SOURCES = ecicpp_tester.cpp
ecicpp_tester_LDADD = $(lib_LTLIBRARIES)

AM_CPPFLAGS += "-DTEST_TOP_BUILDDIR=\"$(top_builddir)\""

# ---------------------------------------------------------------------
# Install targets
install-data-local:
	$(INSTALL) -d $(DESTDIR)$(includedir)/libecasoundc
	cd $(srcdir) ; \
	$(INSTALL_DATA) $(ecasoundc_includes) \
		$(DESTDIR)$(includedir)/libecasoundc
	$(INSTALL) -d $(DESTDIR)$(bindir)
	$(INSTALL_SCRIPT) libecasoundc-config $(DESTDIR)$(bindir)/

# ---------------------------------------------------------------------
# Uninstall targets
uninstall-local:
	cd $(DESTDIR)$(includedir)/libecasoundc && \
	rm -f   $(ecasoundc_includes)
	rmdir $(DESTDIR)$(includedir)/libecasoundc || echo "Skipping non-empty directory"
	rm -f 	$(DESTDIR)$(bindir)/libecasoundc-config
	rmdir $(DESTDIR)$(bindir) || echo "Skipping non-empty directory"