aboutsummaryrefslogtreecommitdiffstats
path: root/make/libtool.mk
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2009-10-10 19:03:52 +0200
committerJay Berkenbilt <ejb@ql.org>2009-10-10 19:03:52 +0200
commitec20e494503d08aeccc13f2e3e5aead08092b33d (patch)
treed8d094877af241b7adbc78494f0bfc5dbdad59c0 /make/libtool.mk
parent7884e9b55f32ad819161a454c479bf0c94611bd7 (diff)
downloadqpdf-ec20e494503d08aeccc13f2e3e5aead08092b33d.tar.zst
build fixes
git-svn-id: svn+q:///qpdf/trunk@763 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'make/libtool.mk')
-rw-r--r--make/libtool.mk13
1 files changed, 12 insertions, 1 deletions
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