diff options
Diffstat (limited to 'make/libtool.mk')
-rw-r--r-- | make/libtool.mk | 13 |
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 |