aboutsummaryrefslogtreecommitdiffstats
path: root/make/libtool.mk
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-03-12 15:25:29 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-03-19 00:53:18 +0100
commit70d0d0889b0c72bcdeb0658335094f61105f8b02 (patch)
tree52d274badef53895286fbcf9da57101667262a6f /make/libtool.mk
parent87db567e1f094cbc9118f7c8d215df157b1601b5 (diff)
downloadqpdf-70d0d0889b0c72bcdeb0658335094f61105f8b02.tar.zst
Remove old build files
Diffstat (limited to 'make/libtool.mk')
-rw-r--r--make/libtool.mk141
1 files changed, 0 insertions, 141 deletions
diff --git a/make/libtool.mk b/make/libtool.mk
deleted file mode 100644
index 6078d650..00000000
--- a/make/libtool.mk
+++ /dev/null
@@ -1,141 +0,0 @@
-# --- Required interface definitions ---
-
-# LIBTOOL needs bash
-SHELL=/bin/bash
-
-OBJ=o
-LOBJ=lo
-
-# Usage: $(call libname,base)
-define libname
-lib$(1).la
-endef
-
-# Usage: $(call binname,base)
-define binname
-$(1)
-endef
-
-# --- Private definitions ---
-
-ifeq ($(HAVE_LD_VERSION_SCRIPT), 1)
-LD_VERSION_FLAGS=-Wl,--version-script=libqpdf.map
-else
-LD_VERSION_FLAGS=
-endif
-
-# Usage: $(call libdepflags,$(basename obj))
-# Usage: $(call fixdeps,$(basename obj))
-ifeq ($(GENDEPS),1)
-libdepflags=-MD -MF $(1).tdep -MP
-fixdeps=sed -e 's/\.o:/.lo:/' < $(1).tdep > $(1).dep
-
-else
-libdepflags=
-fixdeps=
-endif
-
-# --- Required rule definitions ---
-
-# 1 2 3
-# Usage: $(call compile,src,includes,xflags)
-define compile
- $(CXX) $(CXXFLAGS) $(3) \
- $(call depflags,$(basename $(call src_to_obj,$(1)))) \
- $(foreach I,$(2),-I$(I)) \
- $(CPPFLAGS) \
- -c $(1) -o $(call src_to_obj,$(1))
-endef
-
-# 1 2 3
-# Usage: $(call c_compile,src,includes,xflags)
-define c_compile
- $(CC) $(CFLAGS) $(3) \
- $(call depflags,$(basename $(call c_src_to_obj,$(1)))) \
- $(foreach I,$(2),-I$(I)) \
- $(CPPFLAGS) \
- -c $(1) -o $(call c_src_to_obj,$(1))
-endef
-
-# 1 2
-# Usage: $(call libcompile,src,includes)
-define libcompile
- $(LIBTOOL) --quiet --mode=compile --tag=CXX \
- $(CXX) $(CXXFLAGS) \
- $(call libdepflags,$(basename $(call src_to_obj,$(1)))) \
- $(foreach I,$(2),-I$(I)) \
- $(CPPFLAGS) \
- -c $(1) -o $(call src_to_obj,$(1)); \
- $(call fixdeps,$(basename $(call src_to_obj,$(1))))
-endef
-
-# 1 2
-# Usage: $(call libcompile,src,includes)
-define c_libcompile
- $(LIBTOOL) --quiet --mode=compile --tag=CC \
- $(CC) $(CFLAGS) \
- $(call libdepflags,$(basename $(call c_src_to_obj,$(1)))) \
- $(foreach I,$(2),-I$(I)) \
- $(CPPFLAGS) \
- -c $(1) -o $(call c_src_to_obj,$(1)); \
- $(call fixdeps,$(basename $(call src_to_obj,$(1))))
-endef
-
-# 1 2
-# Usage: $(call makeslib,objs,library)
-define makeslib
- $(RM) $2
- $(AR) cru $(2) $(1)
- $(RANLIB) $(2)
-endef
-
-# 1 2 3 4 5 6 7
-# Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age)
-define makelib
- $(LIBTOOL) --mode=link --tag=CXX \
- $(CXX) $(CXXFLAGS) $(LD_VERSION_FLAGS) \
- -o $(2) $(1) $(3) $(4) \
- $(RPATH) -version-info $(5):$(6):$(7) -no-undefined
-endef
-
-# 1 2 3 4 5
-# Usage: $(call makebin,objs,binary,ldflags,libs,xlinkflags)
-define makebin
- $(LIBTOOL) --mode=link --tag=CXX \
- $(CXX) $(CXXFLAGS) $(5) $(1) -o $(2) $(3) $(4)
-endef
-
-install-libs: build_libqpdf
- ./mkinstalldirs -m 0755 $(DESTDIR)$(libdir)/pkgconfig
- ./mkinstalldirs -m 0755 $(DESTDIR)$(includedir)/qpdf
- $(LIBTOOL) --mode=install ./install-sh \
- libqpdf/$(OUTPUT_DIR)/libqpdf.la \
- $(DESTDIR)$(libdir)/libqpdf.la
- $(LIBTOOL) --finish $(DESTDIR)$(libdir)
- ./install-sh -m 0644 include/qpdf/*.h $(DESTDIR)$(includedir)/qpdf
- ./install-sh -m 0644 include/qpdf/*.hh $(DESTDIR)$(includedir)/qpdf
- ./install-sh -m 0644 libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig
-
-# Install target
-
-# NOTE: If installing any new executables, remember to update the
-# lambda layer code in build-scripts/build-appimage.
-
-# Ensure that installwin in make/installwin.mk is consistent with
-# this.
-
-install: all install-libs
- ./mkinstalldirs -m 0755 $(DESTDIR)$(bindir)
- ./mkinstalldirs -m 0755 $(DESTDIR)$(docdir)
- ./mkinstalldirs -m 0755 $(DESTDIR)$(mandir)/man1
- $(LIBTOOL) --mode=install ./install-sh \
- qpdf/$(OUTPUT_DIR)/qpdf \
- $(DESTDIR)$(bindir)/qpdf
- $(LIBTOOL) --mode=install ./install-sh \
- zlib-flate/$(OUTPUT_DIR)/zlib-flate \
- $(DESTDIR)$(bindir)/zlib-flate
- $(LIBTOOL) --mode=install ./install-sh \
- qpdf/$(OUTPUT_DIR)/fix-qdf \
- $(DESTDIR)$(bindir)/fix-qdf
- ./install-sh -m 0644 README-doc.txt $(DESTDIR)$(docdir); \
- ./install-sh -m 0644 manual/$(OUTPUT_DIR)/*.1 $(DESTDIR)$(mandir)/man1