# # Copyright (C) 2013, Northwestern University and Argonne National Laboratory # See COPYRIGHT notice in top-level directory. # # $Id: Makefile.in 2590 2016-10-31 21:37:02Z wkliao $ # # @configure_input@ srcdir = @srcdir@ VPATH = @srcdir@ include ../../macros.make INCLUDES = -I../../src/lib -I$(srcdir)/../common FPPFLAGS += -I../../src/libf @FC_MODINC@../../src/libf90 F90FLAGS += @FC_MODOUT@. LDFLAGS := $(LDFLAGS) -L../common LIBS := $(LIBRARY) -ltestutils $(LIBS) @LCOV_LIB@ C_SRCS = test_subfile.c CXX_SRCS = F77_SRCS = PROGS = $(C_SRCS:.c=) OBJS = $(C_SRCS:.c=.o) ifeq (@has_mpicxx@, yes) PROGS += $(CXX_SRCS:.cpp=) OBJS += $(CXX_SRCS:.cpp=.o) endif ifeq (@has_fortran@, yes) PROGS += $(F77_SRCS:.f=) OBJS += $(F77_SRCS:.f=.o) endif GARBAGE = $(PROGS) *.nc PACKING_LIST = $(C_SRCS) $(F77_SRCS) $(CXX_SRCS) Makefile.in depend README all: $(PROGS) $(C_SRCS:.c=.o) $(CXX_SRCS:.cpp=.o): $(srcdir)/../common/testutils.h $(PROGS): ../common/libtestutils.a ../common/libtestutils.a: set -e; cd ../common && $(MAKE) $(MFLAGS) all test_subfile: test_subfile.o $(LIBRARY) $(LINK.c) $< $(LDFLAGS) $(LIBS) testing check verbose_testing: TEST_MPIRUN_2 = $(subst NP,2,$(TEST_MPIRUN)) TEST_MPIRUN_4 = $(subst NP,4,$(TEST_MPIRUN)) ptest2: $(PROGS) @for i in $(PROGS); do ( \ $(TEST_MPIRUN_2) ./$$i -f $(TEST_OUTDIR)/testfile.nc -s 2 \ ; ) ; done ptest4: $(PROGS) @for i in $(PROGS); do ( \ $(TEST_MPIRUN_4) ./$$i -f $(TEST_OUTDIR)/testfile.nc -s 2 \ ; ) ; done ptest: ptest4 ptests: ptest2 ptest4 ptest6 ptest8 ptest10: include $(srcdir)/../../rules.make include $(srcdir)/depend $(LIBRARY): ;