streamlet-examples/Makefile
author František Kučera <franta-hg@frantovo.cz>
Thu, 30 Jan 2020 14:40:52 +0100
branchv_0
changeset 76 679f1e793ee3
parent 72 f7b9db6fc32b
child 86 3caa19520689
permissions -rw-r--r--
streamlet examples: makefile license

#!/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 jar_info zip_info
	
.PHONY: all clean

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

pid: streamlet-common.h pid.cpp
	g++ -g -fno-omit-frame-pointer -fsanitize=address pid.cpp -o pid

jar_info: Streamlet.java JarInfo.java
	javac JarInfo.java
	jar cfe jar_info JarInfo Streamlet*.class JarInfo.class
	chmod +x jar_info

zip_info: jar_info
	ln -s jar_info zip_info

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