From ec20e494503d08aeccc13f2e3e5aead08092b33d Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 10 Oct 2009 17:03:52 +0000 Subject: build fixes git-svn-id: svn+q:///qpdf/trunk@763 71b93d88-0707-0410-a8cf-f5a4172ac649 --- make/libtool.mk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'make/libtool.mk') diff --git a/make/libtool.mk b/make/libtool.mk index c0e6e52b..bc4ec120 100644 --- a/make/libtool.mk +++ b/make/libtool.mk @@ -41,7 +41,7 @@ endef # Usage: $(call c_compile,src,includes) define c_compile $(CC) $(CPPFLAGS) $(CFLAGS) \ - $(call depflags,$(basename $(call src_to_obj,$(1)))) \ + $(call depflags,$(basename $(call c_src_to_obj,$(1)))) \ $(foreach I,$(2),-I$(I)) \ -c $(1) -o $(call c_src_to_obj,$(1)) endef @@ -57,6 +57,17 @@ define libcompile $(call fixdeps,$(basename $(call src_to_obj,$(1)))) endef +# 1 2 +# Usage: $(call libcompile,src,includes) +define c_libcompile + $(LIBTOOL) --quiet --mode=compile \ + $(CC) $(CPPFLAGS) $(CXXFLAGS) \ + $(call libdepflags,$(basename $(call c_src_to_obj,$(1)))) \ + $(foreach I,$(2),-I$(I)) \ + -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 -- cgit v1.2.3-54-g00ecf