streamlet-examples/Makefile
branchv_0
changeset 89 25a11859975b
parent 86 3caa19520689
child 92 cf4971342380
equal deleted inserted replaced
88:8eb799bf1d39 89:25a11859975b
    13 # GNU General Public License for more details.
    13 # GNU General Public License for more details.
    14 #
    14 #
    15 # You should have received a copy of the GNU General Public License
    15 # You should have received a copy of the GNU General Public License
    16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
    16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
    17 
    17 
    18 all: xpath pid qr jar_info zip_info
    18 all: xpath pid qr-decode jar_info zip_info
    19 	
    19 	
    20 .PHONY: all clean
    20 .PHONY: all clean
    21 
    21 
    22 xpath: streamlet-common.h xpath.cpp
    22 xpath: xpath.cpp streamlet-common.h
    23 	g++ -g -fno-omit-frame-pointer -fsanitize=address xpath.cpp -o xpath $(shell pkg-config --libs --cflags libxml++-2.6)
    23 	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@) $(shell pkg-config --libs --cflags libxml++-2.6)
    24 
    24 
    25 pid: streamlet-common.h pid.cpp
    25 pid: pid.cpp streamlet-common.h
    26 	g++ -g -fno-omit-frame-pointer -fsanitize=address pid.cpp -o pid
    26 	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@)
    27 
    27 
    28 qr: streamlet-common.h qr.cpp
    28 qr-decode: qr-decode.cpp streamlet-common.h
    29 	g++ -g -fno-omit-frame-pointer -fsanitize=address qr.cpp -o qr $(shell pkg-config --libs --cflags relpipe-lib-xmlwriter.cpp zbar Magick++)
    29 	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@) $(shell pkg-config --libs --cflags relpipe-lib-xmlwriter.cpp zbar Magick++)
    30 
    30 
    31 jar_info: Streamlet.java JarInfo.java
    31 jar_info: JarInfo.java Streamlet.java
    32 	javac JarInfo.java
    32 	javac $(<)
    33 	jar cfe jar_info JarInfo Streamlet*.class JarInfo.class
    33 	jar cfe jar_info JarInfo Streamlet*.class JarInfo.class
    34 	chmod +x jar_info
    34 	chmod +x $(@)
    35 
    35 
    36 zip_info: jar_info
    36 zip_info: jar_info
    37 	ln -s jar_info zip_info
    37 	ln -s jar_info $(@)
    38 
    38 
    39 clean:
    39 clean:
    40 	rm -f xpath
    40 	rm -f xpath
    41 	rm -f pid
    41 	rm -f pid
    42 	rm -f jar_info
    42 	rm -f jar_info