2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-03 07:12:28 +00:00

build fixes

git-svn-id: svn+q:///qpdf/trunk@763 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
Jay Berkenbilt 2009-10-10 17:03:52 +00:00
parent 7884e9b55f
commit ec20e49450
3 changed files with 16 additions and 5 deletions

View File

@ -35,15 +35,15 @@ endef
define libcompile
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -fpic \
$(call depflags,$(basename $(call src_to_obj,$(1)))) \
$(call depflags,$(basename $(call src_to_lobj,$(1)))) \
$(foreach I,$(2),-I$(I)) \
-c $(1) -o $(call src_to_obj,$(1))
-c $(1) -o $(call src_to_lobj,$(1))
endef
define c_libcompile
$(CC) $(CPPFLAGS) $(CXXFLAGS) -fpic \
$(call depflags,$(basename $(call c_src_to_lobj,$(1)))) \
$(foreach I,$(2),-I$(I)) \
-c $(1) -o $(call c_src_to_obj,$(1))
-c $(1) -o $(call c_src_to_lobj,$(1))
endef

View File

@ -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

View File

@ -10,7 +10,7 @@ endef
# Usage: $(call binname,base)
define binname
$(1)
$(1).exe
endef
# --- Required rule definitions ---