Date: Monday, December 5, 2005 @ 17:49:44
Author: marc
Path: /cvsroot/carob/carob
Modified: Makefile (1.21 -> 1.22)
Added target and variables for static libcarobcpp.a
----------+
Makefile | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
Index: carob/Makefile
diff -u carob/Makefile:1.21 carob/Makefile:1.22
--- carob/Makefile:1.21 Mon Dec 5 17:09:12 2005
+++ carob/Makefile Mon Dec 5 17:49:44 2005
@@ -54,10 +54,11 @@
${SRCDIR}/SQLDataSerialization.o
CXXFLAGS = -g3 -Wall -I${INCDIR}
LDFLAGS = -fPIC -shared -lpthread
+ARFLAGS = rcs
LIB_CAROB = carobcpp
LIB_CAROB_LIB_SHORT = lib${LIB_CAROB}.so
LIB_CAROB_LIB = ${LIB_CAROB_LIB_SHORT}.${LIB_MAJOR_VERSION}
-
+LIB_CAROB_STATIC = lib${LIB_CAROB}.a
#Doc
# DOC_DIR is duplicated in Doxyfile
@@ -66,8 +67,9 @@
DOXYFILE = ${DOC_DIR}/Doxyfile
DOC_HTML = ${DOC_OUT}/index.html
-all: lib
+all: lib static
lib: ${LIB_CAROB_LIB}
+static: ${LIB_CAROB_STATIC}
test: all
$(MAKE) -C test
@@ -76,6 +78,9 @@
${RM} ${LIB_CAROB_LIB_SHORT}
${LN} ${LIB_CAROB_LIB} ${LIB_CAROB_LIB_SHORT}
+${LIB_CAROB_STATIC}: ${OBJS}
+ ar ${ARFLAGS} ${LIB_CAROB_STATIC} ${OBJS}
+
clean: clean-lib clean-test clean-doc
clean-lib:
${RM} ${SRCDIR}/*.o ${LIB_CAROB_LIB} ${LIB_CAROB_LIB_SHORT}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits