Reorganize source layout

pull/13/head
nirenjan 2017-07-27 17:56:51 -07:00
parent 7bc0ba522c
commit f0a0a7dcaf
34 changed files with 15 additions and 10 deletions

View File

@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libx52 cli util libusbx52 test SUBDIRS = lib utils
# Extra files that need to be in the distribution # Extra files that need to be in the distribution
EXTRA_DIST = README.md LICENSE EXTRA_DIST = README.md LICENSE

View File

@ -24,15 +24,16 @@ AS_IF([test "x${have_libusb}" != xyes], [
]) ])
AC_SUBST([X52_PKG_VERSION], [0.1]) AC_SUBST([X52_PKG_VERSION], [0.1])
AC_SUBST([X52_INCLUDE], ["-I \$(top_srcdir)/libx52"]) AC_SUBST([X52_INCLUDE], ["-I \$(top_srcdir)/lib/libx52"])
AC_SUBST([X52_CORE_LIB], [../libx52/libx52.la])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
libx52/Makefile lib/Makefile
libusbx52/Makefile lib/libx52/Makefile
cli/Makefile lib/libusbx52/Makefile
util/Makefile lib/libx52util/Makefile
test/Makefile utils/Makefile
utils/cli/Makefile
utils/test/Makefile
]) ])
AC_OUTPUT AC_OUTPUT

2
lib/Makefile.am 100644
View File

@ -0,0 +1,2 @@
SUBDIRS = libx52 libx52util libusbx52

View File

@ -0,0 +1,2 @@
SUBDIRS = cli test

View File

@ -5,7 +5,7 @@ bin_PROGRAMS = x52cli
# Command line utility that front ends the core library # Command line utility that front ends the core library
x52cli_SOURCES = x52_cli.c x52cli_SOURCES = x52_cli.c
x52cli_CFLAGS = @X52_INCLUDE@ x52cli_CFLAGS = @X52_INCLUDE@
x52cli_LDADD = @X52_CORE_LIB@ x52cli_LDADD = ../../lib/libx52/libx52.la
# Man pages for CLI utility # Man pages for CLI utility
dist_man1_MANS = x52cli.man dist_man1_MANS = x52cli.man

View File

@ -5,7 +5,7 @@ bin_PROGRAMS = x52test
# Test utility that exercises all the library functions # Test utility that exercises all the library functions
x52test_SOURCES = x52_test.c x52_test_mfd.c x52_test_led.c x52_test_clock.c x52test_SOURCES = x52_test.c x52_test_mfd.c x52_test_led.c x52_test_clock.c
x52test_CFLAGS = @X52_INCLUDE@ x52test_CFLAGS = @X52_INCLUDE@
x52test_LDADD = @X52_CORE_LIB@ x52test_LDADD = ../../lib/libx52/libx52.la
# Extra files that need to be in the distribution # Extra files that need to be in the distribution
EXTRA_DIST = x52_test_common.h EXTRA_DIST = x52_test_common.h