streamlet-examples/Makefile
author František Kučera <franta-hg@frantovo.cz>
Sat, 01 May 2021 18:18:01 +0200
branchv_0
changeset 92 cf4971342380
parent 89 25a11859975b
permissions -rw-r--r--
streamlet examples: QR: rename qr → barcode

#!/bin/bash

# Relational pipes
# Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

all: xpath pid barcode-reader jar_info zip_info
	
.PHONY: all clean

xpath: xpath.cpp streamlet-common.h
	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@) $(shell pkg-config --libs --cflags libxml++-2.6)

pid: pid.cpp streamlet-common.h
	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@)

barcode-reader: barcode-reader.cpp streamlet-common.h
	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@) $(shell pkg-config --libs --cflags relpipe-lib-xmlwriter.cpp zbar Magick++)

jar_info: JarInfo.java Streamlet.java
	javac $(<)
	jar cfe jar_info JarInfo Streamlet*.class JarInfo.class
	chmod +x $(@)

zip_info: jar_info
	ln -s jar_info $(@)

clean:
	rm -f xpath
	rm -f pid
	rm -f barcode-reader
	rm -f jar_info
	rm -f zip_info
	rm -f *.class