From e7d0019bf48ac6b554d46a545242515db9d72644 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 11 Aug 2017 04:56:22 -0400 Subject: Generate libqpdf.map from autoconf Rather than checking consistency of libqpdf.map, generate it. --- libqpdf/build.mk | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'libqpdf/build.mk') diff --git a/libqpdf/build.mk b/libqpdf/build.mk index e8561128..b8cf1dbc 100644 --- a/libqpdf/build.mk +++ b/libqpdf/build.mk @@ -81,36 +81,5 @@ $(CCOBJS_libqpdf): libqpdf/$(OUTPUT_DIR)/%.$(LOBJ): libqpdf/%.cc $(COBJS_libqpdf): libqpdf/$(OUTPUT_DIR)/%.$(LOBJ): libqpdf/%.c $(call c_libcompile,$<,$(INCLUDES_libqpdf)) -# Last three arguments to makelib are CURRENT,REVISION,AGE. -# -# * If any interfaces have been removed or changed, we are not binary -# compatible. Increment CURRENT, and set AGE and REVISION to 0. -# Also update libqpdf.map, changing the numeric portion to match -# CURRENT. -# -# * Otherwise, if any interfaces have been added since the last -# public release, then increment CURRENT and AGE, and set REVISION -# to 0. -# -# * Otherwise, increment REVISION - -CURRENT := 17 -REVISION := 0 -AGE := 0 -$(TARGETS_libqpdf): $(OBJS_libqpdf) libqpdf/$(OUTPUT_DIR)/checkmap_libqpdf-$(CURRENT).stamp - $(call makelib,$(OBJS_libqpdf),$@,$(LDFLAGS),$(LIBS),$(CURRENT),$(REVISION),$(AGE)) - -libqpdf/$(OUTPUT_DIR)/checkmap_libqpdf-$(CURRENT).stamp: libqpdf.map - @if [ $$(head -1 libqpdf.map | awk '{print $$1}') = LIBQPDF_$(CURRENT) ]; then \ - touch $@; \ - else \ - echo ''; \ - echo '****'; \ - echo libqpdf.map is out of date; \ - echo first line should contain LIBQPDF_$(CURRENT); \ - echo '****'; \ - echo ''; \ - rm -f $@; \ - false; \ - fi - +$(TARGETS_libqpdf): $(OBJS_libqpdf) + $(call makelib,$(OBJS_libqpdf),$@,$(LDFLAGS),$(LIBS),$(LT_CURRENT),$(LT_REVISION),$(LT_AGE)) -- cgit v1.2.3-54-g00ecf