aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2025-01-10 15:58:57 +0100
committerPřemysl Eric Janouch <p@janouch.name>2025-01-10 16:02:45 +0100
commit9319d14566e5d1bfec617c479b8543a9ee3ad4ea (patch)
treeb0130ae9e5ac2932c88ff99b83c83d23126d91bc /lpg/libqr/Makefile
parent147b8805247ca23fb96e51694f78439ab24f93a2 (diff)
parentab64314222aca47dd7e52eca2d54d2fad0a58f6c (diff)
downloadpdf-simple-sign-9319d14566e5d1bfec617c479b8543a9ee3ad4ea.tar.gz
pdf-simple-sign-9319d14566e5d1bfec617c479b8543a9ee3ad4ea.tar.xz
pdf-simple-sign-9319d14566e5d1bfec617c479b8543a9ee3ad4ea.zip
Merge remote-tracking branch 'libqr/master'
Diffstat (limited to 'lpg/libqr/Makefile')
-rw-r--r--lpg/libqr/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/lpg/libqr/Makefile b/lpg/libqr/Makefile
new file mode 100644
index 0000000..176c30c
--- /dev/null
+++ b/lpg/libqr/Makefile
@@ -0,0 +1,33 @@
+# XXX: This Makefile only works single-threaded, -j1 is required.
+OBJECTS := bitmap.o \
+ bitstream.o \
+ constants.o \
+ code-common.o \
+ code-create.o \
+ code-layout.o \
+ code-parse.o \
+ data-common.o \
+ data-create.o \
+ data-parse.o \
+ galois.o
+
+CFLAGS := -std=c89 -pedantic -I. -Wall
+CFLAGS += -g
+#CFLAGS += -O3 -DNDEBUG
+
+all : libqr qrgen qrparse
+
+$(OBJECTS) : $(wildcard *.h qr/*.h)
+
+libqr : libqr.a($(OBJECTS))
+
+qrgen : libqr qrgen.c
+ $(CC) $(CFLAGS) -o qrgen qrgen.c libqr.a $(shell pkg-config libpng --cflags --libs)
+
+qrparse : libqr qrparse.c
+ $(CC) $(CFLAGS) -o qrparse qrparse.c libqr.a
+
+.PHONY : clean
+clean:
+ $(RM) qr/*~ *~ *.o *.a *.so qrgen
+