summaryrefslogtreecommitdiff
path: root/src/libudev-legacy/Makefile.am
blob: 507282b38b87cb30bd79fa1adf6980ac222491cf (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
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

define move-legacylib
	$(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
	mv $(DESTDIR)$(libdir)/$$libname $(DESTDIR)$(rootlibdir)/libudev.so.0
endef

AM_CPPFLAGS = \
	-include $(top_builddir)/config.h \
	-DUDEV_CONF_FILE=\"$(udevconffile)\"

lib_LTLIBRARIES = \
	libudev-legacy.la

libudev_legacy_la_SOURCES =\
	libudev.c \
	libudev-list.c \
	libudev-util.c \
	libudev-device.c \
	libudev-enumerate.c \
	libudev-monitor.c \
	libudev-queue.c

libudev_legacy_la_CFLAGS =\
	$(AM_CFLAGS) \
	-shared

noinst_HEADERS = \
	libudev.h \
	libudev-private.h

libudev_legacy_la_LDFLAGS = \
	$(AM_LDFLAGS) \
	-avoid-version

install-exec-hook:
	libname=libudev-legacy.so && $(move-legacylib)

EXTRA_DIST = \
	COPYING