streamlet-examples/Makefile
author František Kučera <franta-hg@frantovo.cz>
Sat, 24 Apr 2021 20:03:39 +0200
branchv_0
changeset 86 3caa19520689
parent 76 679f1e793ee3
child 89 25a11859975b
permissions -rw-r--r--
streamlet examples: QR: first version
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
86
3caa19520689 streamlet examples: QR: first version
František Kučera <franta-hg@frantovo.cz>
parents: 76
diff changeset
    18
all: xpath pid qr 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
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
xpath: streamlet-common.h xpath.cpp
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
	g++ -g -fno-omit-frame-pointer -fsanitize=address xpath.cpp -o xpath $(shell pkg-config --libs --cflags libxml++-2.6)
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
pid: streamlet-common.h pid.cpp
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
	g++ -g -fno-omit-frame-pointer -fsanitize=address pid.cpp -o pid
8c6885543e2c streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
86
3caa19520689 streamlet examples: QR: first version
František Kučera <franta-hg@frantovo.cz>
parents: 76
diff changeset
    28
qr: streamlet-common.h qr.cpp
3caa19520689 streamlet examples: QR: first version
František Kučera <franta-hg@frantovo.cz>
parents: 76
diff changeset
    29
	g++ -g -fno-omit-frame-pointer -fsanitize=address qr.cpp -o qr $(shell pkg-config --libs --cflags relpipe-lib-xmlwriter.cpp zbar Magick++)
3caa19520689 streamlet examples: QR: first version
František Kučera <franta-hg@frantovo.cz>
parents: 76
diff changeset
    30
72
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    31
jar_info: Streamlet.java JarInfo.java
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    32
	javac JarInfo.java
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
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    34
	chmod +x 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
    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
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    37
	ln -s jar_info 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
    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
72
f7b9db6fc32b streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents: 63
diff changeset
    42
	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
    43
	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
    44
	rm -f *.class