author | František Kučera <franta-hg@frantovo.cz> |
Fri, 31 Jan 2020 23:34:50 +0100 | |
branch | v_0 |
changeset 79 | 288a7f075777 |
parent 76 | 679f1e793ee3 |
child 86 | 3caa19520689 |
permissions | -rw-r--r-- |
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 |
|
72
f7b9db6fc32b
streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents:
63
diff
changeset
|
18 |
all: xpath pid 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 |
|
72
f7b9db6fc32b
streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents:
63
diff
changeset
|
28 |
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
|
29 |
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
|
30 |
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
|
31 |
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
|
32 |
|
f7b9db6fc32b
streamlet examples: dirty implementation of Java helper classes + demo code
František Kučera <franta-hg@frantovo.cz>
parents:
63
diff
changeset
|
33 |
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
|
34 |
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
|
35 |
|
63
8c6885543e2c
streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
clean: |
8c6885543e2c
streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
37 |
rm -f xpath |
8c6885543e2c
streamlet examples: common functions in C/C++
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
38 |
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
|
39 |
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
|
40 |
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
|
41 |
rm -f *.class |