summaryrefslogtreecommitdiffstats
path: root/src/pdf-stock/Makefile
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2015-03-08 16:10:59 +0100
committerSebastian Reichel <sre@ring0.de>2015-03-08 16:10:59 +0100
commitb87976793e0f45328d563eb80c4001a717a49563 (patch)
treeff1e60515dcea7b1e9b9cc05e7241e016e23f1e9 /src/pdf-stock/Makefile
parent0585c78a6edc9b1fcc7c1bbbd66097d5a50016f7 (diff)
downloadserial-barcode-scanner-b87976793e0f45328d563eb80c4001a717a49563.tar.bz2
pdf-stock: new tool for stocktaking
Diffstat (limited to 'src/pdf-stock/Makefile')
-rw-r--r--src/pdf-stock/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/pdf-stock/Makefile b/src/pdf-stock/Makefile
new file mode 100644
index 0000000..e0e190e
--- /dev/null
+++ b/src/pdf-stock/Makefile
@@ -0,0 +1,19 @@
+include ../../config.mk
+
+LIBCAIROBARCODE=-X -I../../libcairobarcode -X -L../../libcairobarcode -X -lcairobarcode
+
+all: pdf-stock
+
+pdf-stock: main.vala pdf-stock.vala ../database/db-interface.vala ../price.vapi ../../libcairobarcode/libcairobarcode.vapi
+ ${VALAC} -X -w ${LIBCAIROBARCODE} -o $@ --pkg cairo --pkg pangocairo --pkg gio-2.0 --pkg posix $^
+
+test: test.vala pdf-stock-interface.vala
+ ${VALAC} -X -w -o $@ --pkg gio-2.0 $^
+
+run: pdf-stock
+ LD_LIBRARY_PATH=../../libcairobarcode ./pdf-stock
+
+clean:
+ rm -rf pdf-stock test
+
+.PHONY: all clean run