1# 2# Copyright (C) 2003, Northwestern University and Argonne National Laboratory 3# See COPYRIGHT notice in top-level directory. 4# 5# $Id: Makefile.in 2590 2016-10-31 21:37:02Z wkliao $ 6# 7# @configure_input@ 8 9srcdir = @srcdir@ 10VPATH = @srcdir@ 11 12include ../../macros.make 13 14INCLUDES = -I../../src/lib -I$(srcdir)/../common 15LDFLAGS := $(LDFLAGS) -L../common 16LIBS := $(LIBRARY) -ltestutils $(LIBS) @LCOV_LIB@ 17 18SRCS = header_consistency.c 19 20OBJS = $(SRCS:.c=.o) 21PROGS = $(SRCS:.c=) 22 23GARBAGE = $(PROGS) *.nc 24PACKING_LIST = $(SRCS) Makefile.in 25 26all: $(PROGS) 27 28$(OBJS): $(srcdir)/../common/testutils.h 29 30$(PROGS): ../common/libtestutils.a 31 32../common/libtestutils.a: 33 set -e; cd ../common && $(MAKE) $(MFLAGS) all 34 35header_consistency: header_consistency.o $(LIBRARY) 36 $(LINK.c) $< $(LDFLAGS) $(LIBS) 37 38testing check verbose_testing: 39 40TEST_MPIRUN_2 = $(subst NP,2,$(TEST_MPIRUN)) 41TEST_MPIRUN_4 = $(subst NP,4,$(TEST_MPIRUN)) 42 43ptest2: $(PROGS) 44 @for i in $(PROGS); do ( \ 45 $(TEST_MPIRUN_2) ./$$i $(TEST_OUTDIR)/testfile.nc \ 46 ; ) ; done 47 48ptest4: $(PROGS) 49 @for i in $(PROGS); do ( \ 50 $(TEST_MPIRUN_4) ./$$i $(TEST_OUTDIR)/testfile.nc \ 51 ; ) ; done 52 53ptest: ptest4 54 55ptests: ptest2 ptest4 56ptest6 ptest8 ptest10: 57 58include $(srcdir)/../../rules.make 59 60$(LIBRARY): ; 61 62