aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-02-25 12:20:55 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-02-25 12:20:55 +0100
commit87ffef6e32856495b8175553dcfbeb288c30e56a (patch)
treea6bf002b770f6e066575e8d375d5df4c71deac2f
parentf5f01f3ff143edd87b7e36f1b3540cbc5d42c51f (diff)
downloadcqrlogo-87ffef6e32856495b8175553dcfbeb288c30e56a.tar.gz
cqrlogo-87ffef6e32856495b8175553dcfbeb288c30e56a.tar.zst
move SOVERSION to main Makefile, needed for install
-rw-r--r--Makefile4
-rw-r--r--lib/Makefile3
2 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f46bef1..ed5a186 100644
--- a/Makefile
+++ b/Makefile
@@ -23,11 +23,13 @@ CQRLOGO_FCGI += LD_LIBRARY_PATH=lib/ ./cqrlogo.fcgi
# this is just a fallback in case you do not use git but downloaded
# a release tarball...
VERSION := 0.4.0
+# library abi version
+SOVERSION := 0
all: libcqrlogo cqrlogo.cgi cqrlogo.fcgi README.html cqrlogo.png
libcqrlogo: lib/libcqrlogo.c lib/libcqrlogo.h config.h version.h
- $(MAKE) -C lib
+ SOVERSION=$(SOVERSION) $(MAKE) -C lib
cqrlogo.cgi: libcqrlogo cqrlogo.c cqrlogo.h config.h version.h
$(CC) -lcqrlogo -Llib/ -Ilib/ $(LDFLAGS) -DHAVE_FCGI=0 -o cqrlogo.cgi cqrlogo.c
diff --git a/lib/Makefile b/lib/Makefile
index 47f4db7..d6a33af 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -8,9 +8,6 @@ CFLAGS += $(shell pkg-config --cflags --libs libpng)
CFLAGS += $(shell pkg-config --cflags --libs zlib)
CFLAGS += $(shell pkg-config --cflags --libs libqrencode)
-# library abi version
-SOVERSION := 0
-
all: libcqrlogo
libcqrlogo: libcqrlogo.c libcqrlogo.h ../config.h ../version.h