[libmseed] 03/07: Revert "- added install rule"

Pierre Duperray zulu-guest at moszumanska.debian.org
Fri Mar 3 20:19:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

zulu-guest pushed a commit to branch master
in repository libmseed.

commit b9e19dde20a9a2ff403ec28f1358c3b00ebdd062
Author: Pierre Duperray <pierreduperray at free.fr>
Date:   Thu Mar 2 18:43:09 2017 +0100

    Revert "- added install rule"
    
    This reverts commit e3b96def86c869eea3e3d4258dbee5dce1815e85.
---
 Makefile      | 40 ++++++++--------------------------------
 libmseed.sym  |  8 --------
 mseed.pc.in   | 12 ------------
 test/Makefile |  4 +---
 4 files changed, 9 insertions(+), 55 deletions(-)

diff --git a/Makefile b/Makefile
index b74f6b4..2cb7c9a 100644
--- a/Makefile
+++ b/Makefile
@@ -3,23 +3,12 @@
 # environment variables:
 #   CC : Specify the C compiler to use
 #   CFLAGS : Specify compiler options to use
-#   LDFLAGS : Specify linker options to use
-#   CPPFLAGS : Specify c-preprocessor options to use
 
 MAJOR_VER = 2
 MINOR_VER = 18
 CURRENT_VER = $(MAJOR_VER).$(MINOR_VER)
 COMPAT_VER = $(MAJOR_VER).$(MINOR_VER)
 
-PREFIX	?= /usr/local
-EXEC_PREFIX ?= $(PREFIX)
-LIBDIR	?= $(EXEC_PREFIX)/lib
-INCLUDEDIR ?= $(PREFIX)/include
-DATAROOTDIR ?= $(PREFIX)/share
-DOCDIR	?= $(DATAROOTDIR)/doc/libmseed
-MANDIR ?= $(DATAROOTDIR)/man
-MAN3DIR ?= $(MANDIR)/man3
-
 LIB_SRCS = fileutils.c genutils.c gswap.c lmplatform.c lookup.c \
            msrutils.c pack.c packdata.c traceutils.c tracelist.c \
            parseutils.c unpack.c unpackdata.c selection.c logging.c
@@ -50,7 +39,7 @@ $(LIB_A): $(LIB_OBJS)
 # Build shared library using GCC-style options
 $(LIB_SO): $(LIB_DOBJS)
 	rm -f $(LIB_SO) $(LIB_SO_FILENAME)
-	$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--version-script=libmseed.sym -Wl,-soname -Wl,$(LIB_SO_ALIAS) -o $(LIB_SO) $(LIB_DOBJS)
+	$(CC) $(CFLAGS) -shared -Wl,-soname -Wl,$(LIB_SO_ALIAS) -o $(LIB_SO) $(LIB_DOBJS)
 	ln -s $(LIB_SO) $(LIB_SO_ALIAS)
 	ln -s $(LIB_SO) $(LIB_SO_FILENAME)
 
@@ -68,33 +57,20 @@ clean:
 	@$(MAKE) -C test clean
 	@echo "All clean."
 
-install: shared
-	mkdir -p $(DESTDIR)$(PREFIX)/include
-	cp libmseed.h lmplatform.h $(DESTDIR)$(PREFIX)/include
-	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
-	cp -d libmseed.so* $(DESTDIR)$(LIBDIR)
-	cp mseed.pc.in $(DESTDIR)$(LIBDIR)/pkgconfig/mseed.pc
-	sed -i 's|@prefix@|$(PREFIX)|g' $(DESTDIR)$(LIBDIR)/pkgconfig/mseed.pc
-	sed -i 's|@exec_prefix@|$(EXEC_PREFIX)|g' $(DESTDIR)$(LIBDIR)/pkgconfig/mseed.pc
-	sed -i 's|@libdir@|$(LIBDIR)|g' $(DESTDIR)$(LIBDIR)/pkgconfig/mseed.pc
-	sed -i 's|@includedir@|$(PREFIX)/include|g' $(DESTDIR)$(LIBDIR)/pkgconfig/mseed.pc
-	sed -i 's|@PACKAGE_NAME@|libmseed|g' $(DESTDIR)$(LIBDIR)/pkgconfig/mseed.pc
-	sed -i 's|@PACKAGE_URL@|http://ds.iris.edu/ds/nodes/dmc/software/downloads/libmseed/|g' $(DESTDIR)$(LIBDIR)/pkgconfig/mseed.pc
-	sed -i 's|@VERSION@|$(CURRENT_VER)|g' $(DESTDIR)$(LIBDIR)/pkgconfig/mseed.pc
-	mkdir -p $(DESTDIR)$(DOCDIR)/example
-	cp -r example/ $(DESTDIR)$(DOCDIR)/example
-	cp doc/libmseed-UsersGuide $(DESTDIR)$(DOCDIR)
-	mkdir -p $(DESTDIR)$(MAN3DIR)
-	cp -d doc/ms*.3 $(DESTDIR)$(MAN3DIR)
+install:
+	@echo
+	@echo "No install target, copy the library and header as needed"
+	@echo
+
 
 .SUFFIXES: .c .o .lo
 
 # Standard object building
 .c.o:
-	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
+	$(CC) $(CFLAGS) -c $< -o $@
 
 # Standard object building for dynamic library components using -fPIC
 .c.lo:
-	$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c $< -o $@
+	$(CC) $(CFLAGS) -fPIC -c $< -o $@
 
 FORCE:
diff --git a/libmseed.sym b/libmseed.sym
deleted file mode 100644
index d7ba10e..0000000
--- a/libmseed.sym
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-  global:
-      ms_*; msr_*; mst_*; mstl_*;
-
-  local:
-      *;
-};
-      
\ No newline at end of file
diff --git a/mseed.pc.in b/mseed.pc.in
deleted file mode 100644
index 7fcac74..0000000
--- a/mseed.pc.in
+++ /dev/null
@@ -1,12 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: @PACKAGE_NAME@
-Description: The Mini-SEED library provides a framework for manipulation of SEED
- (Standard for the Exchange of Earthquake Data) data records.
-URL: @PACKAGE_URL@
-Version: @VERSION@
-Cflags: -I${includedir}
-Libs: -L${libdir} -lmseed
diff --git a/test/Makefile b/test/Makefile
index 3c47e39..fe67726 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -26,8 +26,6 @@ FAILED := \033[0;31mFAILED\033[0m
 
 TESTCOUNT := 0
 
-export LD_LIBRARY_PATH=..
-
 test all: $(BINS) $(TESTOUTS)
 	@printf '%d tests conducted\n' $(TESTCOUNT)
 
@@ -43,7 +41,7 @@ $(BINS) : % : %.c
 # Run test scripts, create %.test.out files and compare to %.test.ref references
 $(TESTOUTS) : %.test.out : %.test $(BINS) FORCE
 	@$(eval TESTCOUNT=$(shell echo $$(($(TESTCOUNT)+1))))
-	@$(shell LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$< > $@ 2>&1)
+	@$(shell ./$< > $@ 2>&1)
 	@diff $<.ref $@ >/dev/null; \
           if [ $$? -eq 0 ]; \
             then printf '$(PASSED) Test $<\n'; \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libmseed.git



More information about the debian-science-commits mailing list