streamlet-examples/Makefile
author František Kučera <franta-hg@frantovo.cz>
Sun, 25 Apr 2021 18:47:57 +0200
branchv_0
changeset 89 25a11859975b
parent 86 3caa19520689
child 92 cf4971342380
permissions -rw-r--r--
streamlet examples: QR: rename qr to qr-decode + simplify Makefile

#!/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 qr-decode 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 $(@)

qr-decode: qr-decode.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 jar_info
	rm -f zip_info
	rm -f *.class