summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-09 17:47:37 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-09 17:47:37 +0200
commit34209651d4570cf717be4f9d7b28b22b06c2ded5 (patch)
tree92a04070f359067164ed5d194e0edb7c47efa38f /Makefile
parentddf2ff6ae6617609056680c91676322c70690716 (diff)
downloadcqrlogo-34209651d4570cf717be4f9d7b28b22b06c2ded5.tar.gz
cqrlogo-34209651d4570cf717be4f9d7b28b22b06c2ded5.tar.zst
replace gdk-pixbuf with plain libpng0.2.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 855cedb..1e3c2e2 100644
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,13 @@ INSTALL := install
CP := cp
RM := rm
CFLAGS += -O2 -Wall -Werror
-CFLAGS += $(shell pkg-config --cflags --libs gdk-pixbuf-2.0) \
+CFLAGS += $(shell pkg-config --cflags --libs libpng) \
$(shell pkg-config --cflags --libs libqrencode)
+VERSION = $(shell git describe --tags --long)
all: cqrlogo.c config.h
- $(CC) $(CFLAGS) -o cqrlogo cqrlogo.c
+ $(CC) $(CFLAGS) -o cqrlogo cqrlogo.c \
+ -DVERSION="\"$(VERSION)\""
config.h:
$(CP) config.def.h config.h