aboutsummaryrefslogtreecommitdiffstats
path: root/make/gcc-linux.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/gcc-linux.mk')
-rw-r--r--make/gcc-linux.mk17
1 files changed, 8 insertions, 9 deletions
diff --git a/make/gcc-linux.mk b/make/gcc-linux.mk
index f24013e8..6450ce75 100644
--- a/make/gcc-linux.mk
+++ b/make/gcc-linux.mk
@@ -62,22 +62,21 @@ define makeslib
$(RANLIB) $(2)
endef
-# 1 2 3 4 5
-# Usage: $(call makelib,objs,library,current,revision,age)
+# 1 2 3 4 5 6 7
+# Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age)
define makelib
$(RM) $(2) $(2).*
- major=$$(( $(3) - $(5))); \
- versuffix=$$major.$5.$4; \
+ major=$$(( $(5) - $(7))); \
+ versuffix=$$major.$(7).$(6); \
$(CXX) $(CXXFLAGS) -shared -o $(2).$$versuffix $(1) \
-Wl,--soname -Wl,`basename $(2)`.$$major \
- $(LDFLAGS) $(LIBS); \
+ $(3) $(4); \
ln -s `basename $(2)`.$$versuffix $(2); \
ln -s `basename $(2)`.$$versuffix $(2).$$major
endef
-# 1 2
-# Usage: $(call makebin,objs,binary)
+# 1 2 3 4
+# Usage: $(call makebin,objs,binary,ldflags,libs)
define makebin
- $(CXX) $(CXXFLAGS) $(1) -o $(2) $(LDFLAGS) \
- -Llibqpdf/$(OUTPUT_DIR) -lqpdf $(LIBS)
+ $(CXX) $(CXXFLAGS) $(1) -o $(2) $(LDFLAGS) $(3) $(4)
endef