diff options
author | Christian Hesse <mail@eworm.de> | 2014-02-25 12:12:30 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-02-25 12:12:30 +0100 |
commit | f5f01f3ff143edd87b7e36f1b3540cbc5d42c51f (patch) | |
tree | 5c2b6f5dbbb342ccc5ba770fd4bb4f73c151c246 /lib/Makefile | |
parent | 0f32341ead4f1534270a82c4372d84a1aaa9b0cd (diff) | |
download | cqrlogo-f5f01f3ff143edd87b7e36f1b3540cbc5d42c51f.tar.gz cqrlogo-f5f01f3ff143edd87b7e36f1b3540cbc5d42c51f.tar.zst |
build a shared library and rework parts of the code
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile new file mode 100644 index 0000000..47f4db7 --- /dev/null +++ b/lib/Makefile @@ -0,0 +1,21 @@ +# cqrlogo - CGI QR-Code logo for web services + +CC := gcc +LN := ln +CFLAGS += -O2 -Wall -Werror +CFLAGS += -liniparser +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 + $(CC) $(CFLAGS) $(LDFLAGS) -shared -fPIC -Wl,-soname,libcqrlogo.so.$(SOVERSION) -o libcqrlogo.so.$(SOVERSION) libcqrlogo.c + $(LN) -sf libcqrlogo.so.$(SOVERSION) libcqrlogo.so + +clean: + $(RM) -f *.o *~ libcqrlogo.so libcqrlogo.so.* |