Debian Codegraph @

examples/Makefile.am

raw
1 # $Id: Makefile.am,v 1.7 2015/01/21 03:00:42 sarrazip Exp $
2
3 check_PROGRAMS = example c-example non-string-nodes
4
5 example_SOURCES = example.cpp
6 example_CXXFLAGS = -I$(top_srcdir)/src
7 example_LDADD = -L../src/boolstuff -lboolstuff-$(API)
8
9 c_example_SOURCES = c-example.c
10 c_example_CFLAGS = -I$(top_srcdir)/src
11 c_example_LDADD = -L../src/boolstuff -lboolstuff-$(API)
12
13 non_string_nodes_SOURCES = non-string-nodes.cpp
14 non_string_nodes_CXXFLAGS = -I$(top_srcdir)/src
15 non_string_nodes_LDADD = -L../src/boolstuff -lboolstuff-$(API)
16
17 EXTRA_DIST = \
18 test-booldnf.pl
19
20 check:
21 test "`echo '!(a|b)' | ./example | grep ^Disj`" = \
22 "Disjunctive normal form : !a&!b"
23 test "`echo '!(a|b)' | ./c-example | grep ^Disj`" = \
24 "Disjunctive normal form : !a&!b"
25 $(PERL) -cw $(srcdir)/test-booldnf.pl
26 test "`echo a | $(PERL) $(srcdir)/test-booldnf.pl ../src/commands/booldnf`" = "Response: a"
27
28 MAINTAINERCLEANFILES = Makefile.in