Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvysheng <vysheng@users.noreply.github.com>2015-01-12 21:10:51 +0300
committervysheng <vysheng@users.noreply.github.com>2015-01-12 21:10:51 +0300
commitc08fdbe28757811557782f4e0b57cd532dfc6584 (patch)
tree848027221d13b72f7497ac24c618cee32f8156ca
parent53feb23c27fb8084ef1d39fbd36546b002324d62 (diff)
parent65b1ee3209e7b85f883ea05e3a43803f9c1a47fa (diff)
Merge pull request #10 from gokceneraslan/patch-1
Generate dynamic library
-rw-r--r--Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index c10321b..28be0eb 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -17,7 +17,7 @@ LIB=libs
EXE=bin
DIR_LIST=${DEP} ${AUTO} ${EXE} ${OBJ} ${LIB} ${DEP}/auto ${OBJ}/auto
-LIB_LIST=${LIB}/libtgl.a
+LIB_LIST=${LIB}/libtgl.a ${LIB}/libtgl.so
TGL_OBJECTS=${OBJ}/mtproto-common.o ${OBJ}/mtproto-client.o ${OBJ}/mtproto-utils.o ${OBJ}/queries.o ${OBJ}/structures.o ${OBJ}/binlog.o ${OBJ}/auto/auto.o ${OBJ}/tgl.o ${OBJ}/updates.o ${OBJ}/tg-mime-types.o @EXTRA_OBJECTS@
TLD_OBJECTS=${OBJ}/dump-tl-file.o
@@ -55,6 +55,9 @@ ${OBJ_C}: ${OBJ}/%.o: ${srcdir}/%.c | create_dirs
${LIB}/libtgl.a: ${TGL_OBJECTS} ${COMMON_OBJECTS}
ar ruv $@ ${TGL_OBJECTS} ${COMMON_OBJECTS}
+${LIB}/libtgl.so: ${TGL_OBJECTS} ${COMMON_OBJECTS}
+ ${CC} -shared -o $@ ${TGL_OBJECTS} ${COMMON_OBJECTS} ${LINK_FLAGS}
+
${EXE}/generate: ${GENERATE_OBJECTS} ${COMMON_OBJECTS}
${CC} ${GENERATE_OBJECTS} ${COMMON_OBJECTS} ${LINK_FLAGS} -o $@