AM_CPPFLAGS = $(all_includes)
AM_CPPFLAGS += -I$(top_builddir)/src/public -I$(top_srcdir)/src -I$(top_srcdir)/src/public $(TIMER_CPPFLAGS)

AUTOMAKE_OPTIONS = no-dependencies

all-local:
	test "$(srcdir)" = "$(builddir)" || cp $(srcdir)/*.xml $(builddir)

noinst_PROGRAMS = adios_global adios_read_subv adios_read_points adios_read_wb_subpg

adios_global_SOURCES = adios_global.c
adios_global_LDADD = $(top_builddir)/src/libadios.a 
adios_global_LDFLAGS = $(ADIOSLIB_LDFLAGS) $(ADIOSLIB_EXTRA_LDFLAGS)
adios_global_LDADD += $(ADIOSLIB_LDADD)

adios_read_subv_SOURCES = adios_read_subv.c
adios_read_subv_LDADD = $(top_builddir)/src/libadiosread.a 
adios_read_subv_LDFLAGS = $(ADIOSREADLIB_LDFLAGS)
adios_read_subv_LDADD += $(ADIOSREADLIB_LDADD)

adios_read_points_SOURCES = adios_read_points.c
adios_read_points_LDADD = $(top_builddir)/src/libadiosread.a 
adios_read_points_LDFLAGS = $(ADIOSLIB_LDFLAGS) $(ADIOSLIB_EXTRA_LDFLAGS) 
adios_read_points_LDADD += $(ADIOSLIB_LDADD)

adios_read_wb_subpg_SOURCES = adios_read_wb_subpg.c
adios_read_wb_subpg_LDADD = $(top_builddir)/src/libadiosread.a 
adios_read_wb_subpg_LDFLAGS = $(ADIOSREADLIB_LDFLAGS)
adios_read_wb_subpg_LDADD += $(ADIOSREADLIB_LDADD)

CLEANFILES = *.bp
CC=$(MPICC)
EXTRA_DIST = adios_global.xml gread_temperature.ch gwrite_temperature.ch
