2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00
qpdf/zlib-flate/build.mk
Ryan Schmidt df7ef11181
Ensure zlib-flate doesn't link with an old libqpdf
See: https://sourceforge.net/p/qpdf/bugs/17/

Parts of the fix for that bug report had previously been committed in
30dbf94f53 and
6299c64cf3.
2018-07-24 18:03:22 -05:00

23 lines
615 B
Makefile

TARGETS_zlib-flate = \
zlib-flate/$(OUTPUT_DIR)/$(call binname,zlib-flate)
$(TARGETS_zlib-flate): $(TARGETS_libqpdf)
INCLUDES_zlib-flate = include
SRCS_zlib-flate = zlib-flate/zlib-flate.cc
# -----
OBJS_zlib-flate = $(call src_to_obj,$(SRCS_zlib-flate))
ifeq ($(GENDEPS),1)
-include $(call obj_to_dep,$(OBJS_zlib-flate))
endif
$(OBJS_zlib-flate): zlib-flate/$(OUTPUT_DIR)/%.$(OBJ): zlib-flate/%.cc
$(call compile,$<,$(INCLUDES_zlib-flate))
zlib-flate/$(OUTPUT_DIR)/$(call binname,zlib-flate): $(OBJS_zlib-flate)
$(call makebin,$(OBJS_zlib-flate),$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS_libqpdf) $(LIBS))