aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--lib/Makefile2
-rw-r--r--lib/libcqrlogo.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1013807..b1ca9e3 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ ZBARIMG := zbarimg
# flags
CFLAGS += -std=c11 -O2 -fPIC -Wall -Werror
CFLAGSSTATIC = $(CFLAGS)
-CFLAGSSTATIC += -liniparser
+CFLAGSSTATIC += $(shell pkg-config --cflags --libs iniparser)
CFLAGSSTATIC += $(shell pkg-config --cflags --libs libpng)
CFLAGSSTATIC += $(shell pkg-config --cflags --libs zlib)
CFLAGSSTATIC += $(shell pkg-config --cflags --libs libqrencode)
diff --git a/lib/Makefile b/lib/Makefile
index 068a482..952bdb4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -6,7 +6,7 @@ LN := ln
# flags
CFLAGS += -std=c11 -O2 -fPIC -Wall -Werror
-CFLAGS += -liniparser
+CFLAGS += $(shell pkg-config --cflags --libs iniparser)
CFLAGS += $(shell pkg-config --cflags --libs libpng)
CFLAGS += $(shell pkg-config --cflags --libs zlib)
CFLAGS += $(shell pkg-config --cflags --libs libqrencode)
diff --git a/lib/libcqrlogo.h b/lib/libcqrlogo.h
index 102975b..02ce0cf 100644
--- a/lib/libcqrlogo.h
+++ b/lib/libcqrlogo.h
@@ -30,7 +30,7 @@
#include <png.h>
#include <zlib.h>
#include <qrencode.h>
-#include <iniparser.h>
+#include <iniparser/iniparser.h>
/* a bitmap */
struct cqr_bitmap {