summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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