[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] Name the src/libpspp convenience library consistently.
From: |
Ben Pfaff |
Subject: |
[PATCH 1/2] Name the src/libpspp convenience library consistently. |
Date: |
Thu, 26 Jan 2012 22:08:56 -0800 |
src/libpspp.la and src/libpspp/libpspp.la have the same name,
although they are in different directories. This seems unduly
confusing. This commit renames the latter to liblibpspp.la, which
is at least different from libpspp.la and is also consistent with
the naming of the other libtool convenience libraries as
lib<directory>.la.
---
src/automake.mk | 2 +-
src/libpspp/automake.mk | 10 ++++++----
tests/automake.mk | 36 +++++++++++++++++++-----------------
3 files changed, 26 insertions(+), 22 deletions(-)
diff --git a/src/automake.mk b/src/automake.mk
index 5226649..3f56eb5 100644
--- a/src/automake.mk
+++ b/src/automake.mk
@@ -18,7 +18,7 @@ src_libpspp_core_la_LDFLAGS = -release $(VERSION)
src_libpspp_core_la_LIBADD = \
src/data/libdata.la \
- src/libpspp/libpspp.la \
+ src/libpspp/liblibpspp.la \
$(LIBXML2_LIBS) $(PG_LIBS) \
gl/libgl.la
diff --git a/src/libpspp/automake.mk b/src/libpspp/automake.mk
index 791abf4..244f1d1 100644
--- a/src/libpspp/automake.mk
+++ b/src/libpspp/automake.mk
@@ -1,9 +1,9 @@
## Process this file with automake to produce Makefile.in -*- makefile -*-
-noinst_LTLIBRARIES += src/libpspp/libpspp.la
+noinst_LTLIBRARIES += src/libpspp/liblibpspp.la
-src_libpspp_libpspp_la_SOURCES = \
+src_libpspp_liblibpspp_la_SOURCES = \
src/libpspp/abt.c \
src/libpspp/abt.h \
src/libpspp/argv-parser.c \
@@ -99,9 +99,11 @@ src_libpspp_libpspp_la_SOURCES = \
DISTCLEANFILES+=src/libpspp/version.c
-src_libpspp_libpspp_la_CPPFLAGS = -I $(top_srcdir)/src/libpspp $(AM_CPPFLAGS)
+src_libpspp_liblibpspp_la_CPPFLAGS = \
+ -I $(top_srcdir)/src/libpspp \
+ $(AM_CPPFLAGS)
-nodist_src_libpspp_libpspp_la_SOURCES = src/libpspp/version.c
+nodist_src_libpspp_liblibpspp_la_SOURCES = src/libpspp/version.c
src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile
@$(MKDIR_P) src/libpspp
diff --git a/tests/automake.mk b/tests/automake.mk
index 7922d68..fecc5a0 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -56,12 +56,14 @@ tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
tests_libpspp_encoding_guesser_test_SOURCES = \
tests/libpspp/encoding-guesser-test.c
-tests_libpspp_encoding_guesser_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_encoding_guesser_test_LDADD = \
+ src/libpspp/liblibpspp.la \
+ gl/libgl.la
tests_libpspp_heap_test_SOURCES = \
tests/libpspp/heap-test.c
tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_heap_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_heap_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_hmap_test_SOURCES = \
src/libpspp/hmap.c \
@@ -75,7 +77,7 @@ tests_libpspp_hmapx_test_SOURCES = \
tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
tests_libpspp_i18n_test_SOURCES = tests/libpspp/i18n-test.c
-tests_libpspp_i18n_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_i18n_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_abt_test_SOURCES = \
src/libpspp/abt.c \
@@ -96,26 +98,26 @@ tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS)
-DASSERT_LEVEL=10
tests_libpspp_range_set_test_SOURCES = \
tests/libpspp/range-set-test.c
tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_range_set_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_range_set_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_range_tower_test_SOURCES = \
tests/libpspp/range-tower-test.c
tests_libpspp_range_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_range_tower_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_range_tower_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_str_test_SOURCES = \
tests/libpspp/str-test.c
-tests_libpspp_str_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_str_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_string_map_test_SOURCES = \
tests/libpspp/string-map-test.c
tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_string_map_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_string_map_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_stringi_map_test_SOURCES = \
tests/libpspp/stringi-map-test.c
tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_stringi_map_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_stringi_map_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_string_set_test_SOURCES = \
src/libpspp/hash-functions.c \
@@ -127,25 +129,25 @@ tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS)
-DASSERT_LEVEL=10
tests_libpspp_stringi_set_test_SOURCES = \
tests/libpspp/stringi-set-test.c
tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_stringi_set_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_stringi_set_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_tower_test_SOURCES = \
tests/libpspp/tower-test.c
tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_tower_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_tower_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_u8_istream_test_SOURCES = tests/libpspp/u8-istream-test.c
-tests_libpspp_u8_istream_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_u8_istream_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_sparse_array_test_SOURCES = \
tests/libpspp/sparse-array-test.c
tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_sparse_array_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_sparse_array_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_libpspp_sparse_xarray_test_SOURCES = \
tests/libpspp/sparse-xarray-test.c
tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
-tests_libpspp_sparse_xarray_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
+tests_libpspp_sparse_xarray_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
tests_data_inexactify_SOURCES = tests/data/inexactify.c
@@ -155,7 +157,7 @@ tests_language_lexer_command_name_test_SOURCES = \
src/language/lexer/command-name.c \
tests/language/lexer/command-name-test.c
tests_language_lexer_command_name_test_LDADD = \
- src/libpspp/libpspp.la \
+ src/libpspp/liblibpspp.la \
gl/libgl.la
tests_language_lexer_command_name_test_CFLAGS = $(AM_CFLAGS)
@@ -169,7 +171,7 @@ tests_language_lexer_scan_test_SOURCES = \
tests/language/lexer/scan-test.c
tests_language_lexer_scan_test_CFLAGS = $(AM_CFLAGS)
tests_language_lexer_scan_test_LDADD = \
- src/libpspp/libpspp.la \
+ src/libpspp/liblibpspp.la \
gl/libgl.la
check_PROGRAMS += tests/language/lexer/segment-test
@@ -180,7 +182,7 @@ tests_language_lexer_segment_test_SOURCES = \
tests/language/lexer/segment-test.c
tests_language_lexer_segment_test_CFLAGS = $(AM_CFLAGS)
tests_language_lexer_segment_test_LDADD = \
- src/libpspp/libpspp.la \
+ src/libpspp/liblibpspp.la \
gl/libgl.la
check_PROGRAMS += tests/libpspp/zip-test
@@ -188,7 +190,7 @@ tests_libpspp_zip_test_SOURCES = \
tests/libpspp/zip-test.c
tests_libpspp_zip_test_CFLAGS = $(AM_CFLAGS)
tests_libpspp_zip_test_LDADD = \
- src/libpspp/libpspp.la \
+ src/libpspp/liblibpspp.la \
gl/libgl.la
--
1.7.2.5