diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-05-25 12:46:13 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-05-25 12:46:29 +0200 |
commit | 4af525b7d3d3a5fdcd685836b8aa2262ee907659 (patch) | |
tree | f388547a1f2d3325bb7e36025b7a200cd8811c1d | |
parent | 8245b7fa89e7389a011cafc252ef269f8fea5d6e (diff) | |
download | librb-4af525b7d3d3a5fdcd685836b8aa2262ee907659.tar.gz librb-4af525b7d3d3a5fdcd685836b8aa2262ee907659.tar.bz2 librb-4af525b7d3d3a5fdcd685836b8aa2262ee907659.zip |
remove include and rb dirs, to simplify stuff
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile.am | 43 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | include/Makefile.am | 1 | ||||
-rw-r--r-- | mtest.h (renamed from rb/mtest.h) | 0 | ||||
-rw-r--r-- | rb.c (renamed from rb/rb.c) | 0 | ||||
-rw-r--r-- | rb.h (renamed from include/rb.h) | 0 | ||||
-rw-r--r-- | rb/Makefile.am | 27 | ||||
-rw-r--r-- | tests.c (renamed from rb/tests.c) | 0 | ||||
-rw-r--r-- | valid.h (renamed from rb/valid.h) | 0 |
10 files changed, 41 insertions, 34 deletions
@@ -35,3 +35,5 @@ tests.trs www/downloads.html www/manuals www/out +*.la +*.lo diff --git a/Makefile.am b/Makefile.am index 42d1236..611684d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,42 @@ ACLOCAL_AMFLAGS=-I m4 -SUBDIRS = include rb man www +# building librb library + +include_HEADERS = rb.h + +lib_LTLIBRARIES = librb.la +librb_la_SOURCES = rb.c valid.h +librb_la_LDFLAGS = -version-info 1:0:0 +librb_la_CFLAGS = -I$(top_srcdir) + +# building test suite + +check_PROGRAMS = tests +tests_SOURCES = rb.c tests.c mtest.h +tests_CFLAGS = -I$(top_srcdir) + +TESTS = $(check_PROGRAMS) +LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ + $(top_srcdir)/tap-driver.sh + +# static code analyzer + +if ENABLE_ANALYZER + +analyze_plists = rb.plist +MOSTLYCLEANFILES = $(analyze_plists) + +$(analyze_plists): %.plist: %.c + @echo " CCSA " $@ + @clang --analyze -I$(top_srcdir) -DHAVE_CONFIG_H $< -o $@ + +analyze: $(analyze_plists) + +endif + +# building website and manuals + +SUBDIRS = man www EXTRA_DIST = gen-download-page.sh man2html.sh readme.md tap-driver.sh www: @@ -8,7 +44,4 @@ www: ./man2html.sh make www -C www -analyze: - make analyze -C rb - -.PHONY: www +.PHONY: www analyze tests librb.la diff --git a/configure.ac b/configure.ac index 6ea3666..229ee96 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AM_INIT_AUTOMAKE([foreign]) AC_PROG_CC AC_PROG_LIBTOOL AC_CONFIG_MACRO_DIR([m4]) -AC_CONFIG_FILES([Makefile rb/Makefile include/Makefile man/Makefile www/Makefile]) +AC_CONFIG_FILES([Makefile man/Makefile www/Makefile]) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_HEADERS([config.h]) diff --git a/include/Makefile.am b/include/Makefile.am deleted file mode 100644 index 43763d3..0000000 --- a/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -include_HEADERS = rb.h diff --git a/rb/Makefile.am b/rb/Makefile.am deleted file mode 100644 index c48d14e..0000000 --- a/rb/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -lib_LTLIBRARIES = librb.la -librb_la_SOURCES = rb.c valid.h -librb_la_LDFLAGS = -version-info 1:0:0 -librb_la_CFLAGS = -I$(top_srcdir)/include - -check_PROGRAMS = tests -tests_SOURCES = rb.c tests.c mtest.h -tests_CFLAGS = -I$(top_srcdir)/include - -TESTS = $(check_PROGRAMS) -LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ - $(top_srcdir)/tap-driver.sh - -# static code analyzer - -if ENABLE_ANALYZER - -analyze_plists = rb.plist -MOSTLYCLEANFILES = $(analyze_plists) - -$(analyze_plists): %.plist: %.c - @echo " CCSA " $@ - @clang --analyze -I.. $< -o $@ - -analyze: $(analyze_plists) - -endif |