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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
76
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     1
#!/bin/bash
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     2
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     3
# Relational pipes
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     4
# Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info)
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     5
#
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     6
# This program is free software: you can redistribute it and/or modify
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     7
# it under the terms of the GNU General Public License as published by
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     8
# the Free Software Foundation, version 3 of the License.
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
     9
#
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
    10
# This program is distributed in the hope that it will be useful,
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
    11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
    12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
    13
# GNU General Public License for more details.
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
    14
#
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
    15
# You should have received a copy of the GNU General Public License
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
    16
# along with this program. If not, see <http://www.gnu.org/licenses/>.
679f1e793ee3 streamlet examples: makefile license
František Kučera <franta-hg@frantovo.cz>
parents: 72
diff changeset
    17
92
cf4971342380 streamlet examples: QR: rename qr → barcode
František Kučera <franta-hg@frantovo.cz>
parents: 89
diff changeset
    18
all: xpath pid barcode-reader jar_info zip_info
63
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
	
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
.PHONY: all clean
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
89
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    22
xpath: xpath.cpp streamlet-common.h
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    23
	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@) $(shell pkg-config --libs --cflags libxml++-2.6)
63
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
89
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    25
pid: pid.cpp streamlet-common.h
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    26
	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@)
63
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
92
cf4971342380 streamlet examples: QR: rename qr → barcode
František Kučera <franta-hg@frantovo.cz>
parents: 89
diff changeset
    28
barcode-reader: barcode-reader.cpp streamlet-common.h
89
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    29
	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@) $(shell pkg-config --libs --cflags relpipe-lib-xmlwriter.cpp zbar Magick++)
86
3caa19520689 streamlet examples: QR: first version
František Kučera <franta-hg@frantovo.cz>
parents: 76
diff changeset
    30
89
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    31
jar_info: JarInfo.java Streamlet.java
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    32
	javac $(<)
72
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    33
	jar cfe jar_info JarInfo Streamlet*.class JarInfo.class
89
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    34
	chmod +x $(@)
72
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    35
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    36
zip_info: jar_info
89
25a11859975b streamlet examples: QR: rename qr to qr-decode + simplify Makefile
František Kučera <franta-hg@frantovo.cz>
parents: 86
diff changeset
    37
	ln -s jar_info $(@)
72
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    38
63
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
clean:
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
	rm -f xpath
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
	rm -f pid
92
cf4971342380 streamlet examples: QR: rename qr → barcode
František Kučera <franta-hg@frantovo.cz>
parents: 89
diff changeset
    42
	rm -f barcode-reader
72
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    43
	rm -f jar_info
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    44
	rm -f zip_info
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    45
	rm -f *.class