1 noinst_PROGRAMS = @examples@
2 EXTRA_PROGRAMS = example32 example64 exampleMP
4 example32_SOURCES = example.c
5 example32_CPPFLAGS = @DFLAGS32@ -I$(top_srcdir)/include
6 example32_LDADD = ../libpiplib32.la
7 example64_SOURCES = example.c
8 example64_CPPFLAGS = @DFLAGS64@ -I$(top_srcdir)/include
9 example64_LDADD = ../libpiplib64.la
10 exampleMP_SOURCES = example.c
11 exampleMP_CPPFLAGS = @MP_DFLAGS@ -I$(top_srcdir)/include
12 exampleMP_LDADD = ../libpiplibMP.la @EXTRA_LIBS@
37 for x in $(PIPTEST) ; do \
38 echo "Verify file $(srcdir)/$$x" ; \
39 ./$(EXAMPLE) < $(srcdir)/$$x.pip > xyz ;\
40 diff -w xyz $(srcdir)/$$x.ll ; \
42 if [ "$$result" -ne "0" ]; then \
43 echo "Error: $$x is not the same"; \
44 failedtest=`expr $$failedtest + 1`; \
50 if [ $$failedtest != 0 ]; then \
51 echo "$$failedtest tests failed"; \
53 echo "PIP works correctly :-)"; \