summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-11-17 00:33:19 -0500
committerAnthony G. Basile <blueness@gentoo.org>2012-11-17 00:33:19 -0500
commita27ee4898f1d423de21edcddfdf97e9d63c88307 (patch)
tree4ed42f8ae245a321fd9a26f68cf0f59aa4167c9b
parent8b9605d16a070dcfb4fdf2c88d2f361c9db48d18 (diff)
src/udev: breakout Makefile.am for helpers
-rw-r--r--src/udev/Makefile.am156
-rw-r--r--src/udev/accelerometer/Makefile.am15
-rw-r--r--src/udev/ata_id/Makefile.am14
-rw-r--r--src/udev/cdrom_id/Makefile.am14
-rw-r--r--src/udev/collect/Makefile.am14
-rw-r--r--src/udev/keymap/Makefile.am53
-rw-r--r--src/udev/mtd_probe/Makefile.am23
-rw-r--r--src/udev/scsi_id/Makefile.am20
-rw-r--r--src/udev/v4l_id/Makefile.am14
9 files changed, 177 insertions, 146 deletions
diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am
index 16fbd42c03..78e1bff269 100644
--- a/src/udev/Makefile.am
+++ b/src/udev/Makefile.am
@@ -114,157 +114,21 @@ EXTRA_DIST = \
CLEANFILES = \
udev.pc
-
-# ------------------------------------------------------------------------------
-# ------------------------------------------------------------------------------
-
-udevlibexec_PROGRAMS =
-
# ------------------------------------------------------------------------------
# Helper programs below
#
-udevlibexec_PROGRAMS += \
- ata_id/ata_id
-
-ata_id_ata_id_SOURCES = \
- ata_id/ata_id.c
-
-ata_id_ata_id_LDADD = \
- $(top_srcdir)/src/libudev/libudev-private.la \
- libudev-core.la
-
-# ------------------------------------------------------------------------------
-
-udevlibexec_PROGRAMS += \
- cdrom_id/cdrom_id
-
-cdrom_id_cdrom_id_SOURCES = \
- cdrom_id/cdrom_id.c
-
-cdrom_id_cdrom_id_LDADD = \
- $(top_srcdir)/src/libudev/libudev-private.la \
- libudev-core.la
-
-# ------------------------------------------------------------------------------
-
-udevlibexec_PROGRAMS += \
- collect/collect
-
-collect_collect_SOURCES = \
- collect/collect.c
-
-collect_collect_LDADD = \
- $(top_srcdir)/src/libudev/libudev-private.la \
- libudev-core.la
-
-# ------------------------------------------------------------------------------
-
-udevlibexec_PROGRAMS += \
- scsi_id/scsi_id
-
-scsi_id_scsi_id_SOURCES =\
- scsi_id/scsi_id.c \
- scsi_id/scsi_serial.c \
- scsi_id/scsi.h \
- scsi_id/scsi_id.h
-
-scsi_id_scsi_id_LDADD = \
- $(top_srcdir)/src/libudev/libudev-private.la \
- libudev-core.la
-
-EXTRA_DIST += \
- scsi_id/README
-
-# ------------------------------------------------------------------------------
-
-udevlibexec_PROGRAMS += \
- v4l_id/v4l_id
-
-v4l_id_v4l_id_SOURCES = \
- v4l_id/v4l_id.c
-
-v4l_id_v4l_id_LDADD = \
- $(top_srcdir)/src/libudev/libudev-private.la \
- libudev-core.la
-
-# ------------------------------------------------------------------------------
-
-udevlibexec_PROGRAMS += \
- accelerometer/accelerometer
-
-accelerometer_accelerometer_SOURCES = \
- accelerometer/accelerometer.c
-
-accelerometer_accelerometer_LDADD = \
- $(top_srcdir)/src/libudev/libudev-private.la \
- libudev-core.la \
- -lm
-
-# ------------------------------------------------------------------------------
-
-udevlibexec_PROGRAMS += \
- mtd_probe/mtd_probe
-
-mtd_probe_mtd_probe_SOURCES = \
- mtd_probe/mtd_probe.c \
- mtd_probe/mtd_probe.h \
- mtd_probe/probe_smartmedia.c
-
-mtd_probe_mtd_probe_CPPFLAGS = \
- $(AM_CPPFLAGS)
-
-
-# ------------------------------------------------------------------------------
+SUBDIR = \
+ accelerometer \
+ ata_id \
+ cdrom_id \
+ collect \
+ mtd_probe \
+ scsi_id \
+ v4l_id
if ENABLE_KEYMAP
-udevlibexec_PROGRAMS += \
- keymap/keymap
-
-keymap_keymap_SOURCES = \
- keymap/keymap.c
-
-keymap_CPPFLAGS = \
- $(AM_CPPFLAGS) -I keymap
-
-nodist_keymap_keymap_SOURCES = \
- keymap/keys-from-name.h \
- keymap/keys-to-name.h
-
-BUILT_SOURCES = \
- $(nodist_keymap_SOURCES)
-
-dist_doc_DATA = \
- keymap/README.keymap.txt
-
-dist_udevhome_SCRIPTS = \
- keymap/findkeyboards \
- keymap/keyboard-force-release.sh
-
-TESTS = \
- keymap/check-keymaps.sh
-
-CLEANFILES += \
- keymap/keys.txt \
- keymap/keys-from-name.gperf \
- keymap/keyboard-force-release.sh
-
-keymap/keys.txt: Makefile
- $(AM_V_at)$(MKDIR_P) $(dir $@)
- $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
-
-keymap/keys-from-name.gperf: keymap/keys.txt Makefile
- $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
-
-keymap/keys-from-name.h: keymap/keys-from-name.gperf Makefile
- $(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
-
-keymap/keys-to-name.h: keymap/keys.txt Makefile
- $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
+SUBDIR += \
+ keymap
endif
-EXTRA_DIST += \
- keymap/check-keymaps.sh \
- keymap/keyboard-force-release.sh.in
-
-
diff --git a/src/udev/accelerometer/Makefile.am b/src/udev/accelerometer/Makefile.am
new file mode 100644
index 0000000000..26799b06c2
--- /dev/null
+++ b/src/udev/accelerometer/Makefile.am
@@ -0,0 +1,15 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+rootprefix=@rootprefix@
+udevlibexecdir=$(rootprefix)/lib/udev
+
+udevlibexec_PROGRAMS = \
+ accelerometer
+
+accelerometer_SOURCES = \
+ accelerometer.c
+
+accelerometer_LDADD = \
+ $(top_srcdir)/src/libudev/libudev-private.la \
+ $(top_srcdir)/src/udev-core.la \
+ -lm
diff --git a/src/udev/ata_id/Makefile.am b/src/udev/ata_id/Makefile.am
new file mode 100644
index 0000000000..50cb070344
--- /dev/null
+++ b/src/udev/ata_id/Makefile.am
@@ -0,0 +1,14 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+rootprefix=@rootprefix@
+udevlibexecdir=$(rootprefix)/lib/udev
+
+udevlibexec_PROGRAMS = \
+ ata_id
+
+ata_id_SOURCES = \
+ ata_id.c
+
+ata_id_LDADD = \
+ $(top_srcdir)/src/libudev/libudev-private.la \
+ $(top_srcdir)/src/udev/libudev-core.la
diff --git a/src/udev/cdrom_id/Makefile.am b/src/udev/cdrom_id/Makefile.am
new file mode 100644
index 0000000000..b08faeb77a
--- /dev/null
+++ b/src/udev/cdrom_id/Makefile.am
@@ -0,0 +1,14 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+rootprefix=@rootprefix@
+udevlibexecdir=$(rootprefix)/lib/udev
+
+udevlibexec_PROGRAMS = \
+ cdrom_id
+
+cdrom_id_SOURCES = \
+ cdrom_id.c
+
+cdrom_id_LDADD = \
+ $(top_srcdir)/src/libudev/libudev-private.la \
+ $(top_srcdir)/src/udev/libudev-core.la
diff --git a/src/udev/collect/Makefile.am b/src/udev/collect/Makefile.am
new file mode 100644
index 0000000000..4c954b99a9
--- /dev/null
+++ b/src/udev/collect/Makefile.am
@@ -0,0 +1,14 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+rootprefix=@rootprefix@
+udevlibexecdir=$(rootprefix)/lib/udev
+
+udevlibexec_PROGRAMS = \
+ collect
+
+collect_SOURCES = \
+ collect.c
+
+collect_LDADD = \
+ $(top_srcdir)/src/libudev/libudev-private.la \
+ $(top_srcdir)/src/udev/libudev-core.la
diff --git a/src/udev/keymap/Makefile.am b/src/udev/keymap/Makefile.am
new file mode 100644
index 0000000000..13777e7f58
--- /dev/null
+++ b/src/udev/keymap/Makefile.am
@@ -0,0 +1,53 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+rootprefix=@rootprefix@
+udevlibexecdir=$(rootprefix)/lib/udev
+
+udevlibexec_PROGRAMS = \
+ keymap
+
+keymap_SOURCES = \
+ keymap.c
+
+keymap_CPPFLAGS = \
+ $(AM_CPPFLAGS) -I keymap
+
+nodist_keymap_SOURCES = \
+ keys-from-name.h \
+ keys-to-name.h
+
+BUILT_SOURCES = \
+ $(nodist_keymap_SOURCES)
+
+dist_doc_DATA = \
+ README.keymap.txt
+
+dist_udevhome_SCRIPTS = \
+ findkeyboards \
+ keyboard-force-release.sh
+
+TESTS = \
+ check-keymaps.sh
+
+CLEANFILES += \
+ keys.txt \
+ keys-from-name.gperf \
+ keyboard-force-release.sh
+
+keys.txt: Makefile
+ $(AM_V_at)$(MKDIR_P) $(dir $@)
+ $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
+
+keys-from-name.gperf: keys.txt Makefile
+ $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
+
+keys-from-name.h: keys-from-name.gperf Makefile
+ $(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
+
+keys-to-name.h: keys.txt Makefile
+ $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
+endif
+
+EXTRA_DIST += \
+ check-keymaps.sh \
+ keyboard-force-release.sh.in
diff --git a/src/udev/mtd_probe/Makefile.am b/src/udev/mtd_probe/Makefile.am
new file mode 100644
index 0000000000..400a41138d
--- /dev/null
+++ b/src/udev/mtd_probe/Makefile.am
@@ -0,0 +1,23 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+rootprefix=@rootprefix@
+udevlibexecdir=$(rootprefix)/lib/udev
+
+AM_CPPFLAGS = \
+ -include $(top_builddir)/config.h \
+ -DROOTPREFIX=\"$(rootprefix)\" \
+ -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
+ -I $(top_srcdir)/src/libudev \
+ -I $(top_srcdir)/src/udev \
+ -I $(top_srcdir)/src/shared
+
+udevlibexec_PROGRAMS += \
+ mtd_probe
+
+mtd_probe_SOURCES = \
+ mtd_probe.c \
+ mtd_probe.h \
+ probe_smartmedia.c
+
+mtd_probe_CPPFLAGS = \
+ $(AM_CPPFLAGS)
diff --git a/src/udev/scsi_id/Makefile.am b/src/udev/scsi_id/Makefile.am
new file mode 100644
index 0000000000..a243953b0b
--- /dev/null
+++ b/src/udev/scsi_id/Makefile.am
@@ -0,0 +1,20 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+rootprefix=@rootprefix@
+udevlibexecdir=$(rootprefix)/lib/udev
+
+udevlibexec_PROGRAMS = \
+ scsi_id
+
+scsi_id_SOURCES =\
+ scsi_id.c \
+ scsi_serial.c \
+ scsi.h \
+ scsi_id.h
+
+scsi_id_LDADD = \
+ $(top_srcdir)/src/libudev/libudev-private.la \
+ $(top_srcdir)/src/udev/libudev-core.la
+
+EXTRA_DIST = \
+ scsi_id/README
diff --git a/src/udev/v4l_id/Makefile.am b/src/udev/v4l_id/Makefile.am
new file mode 100644
index 0000000000..0cb18e8ad3
--- /dev/null
+++ b/src/udev/v4l_id/Makefile.am
@@ -0,0 +1,14 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+rootprefix=@rootprefix@
+udevlibexecdir=$(rootprefix)/lib/udev
+
+udevlibexec_PROGRAMS = \
+ v4l_id
+
+v4l_id_SOURCES = \
+ v4l_id.c
+
+v4l_id_LDADD = \
+ $(top_srcdir)/src/libudev/libudev-private.la \
+ $(top_srcdir)/src/udev/libudev-core.la