# test/Makefile. Generated from Makefile.in by configure. ### Path settings srcdir = . top_srcdir = .. PACKAGE_NAME = fget PACKAGE_VERSION = 1.3.3 ### Compiler and link options CC = cc CPPFLAGS = -I${srcdir} \ -I${top_srcdir}/lib \ CFLAGS = -fno-common LDFLAGS = LIBS = ### Makefile rules - no user-servicable parts below TEST_LIBS = ../lib/libfget.a TEST_HDRS = ${top_srcdir}/lib/libfget.h TEST_NAMES = \ test_url \ test_connect \ test_login \ test_opendir \ test_opendir_symlink \ test_opendir_file \ test_stat_file \ test_stat_file_is_symlink \ test_stat_file_via_symlink_path \ test_stat_dir \ test_stat_root \ test_stat_ENOENT \ test_lstat \ test_lstat_file \ test_lstat_ENOENT \ test_open \ test_read \ test_lseek \ test_close_early_short \ test_close_early_long \ test_abor_short \ test_abor_long all: .PHONY: test clean distclean install .c.o: ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $< ${TEST_NAME}: harness.c ${TEST_NAME}.c ${TEST_HDRS} ${TEST_LIBS} cat ${srcdir}/harness.c ${srcdir}/${TEST_NAME}.c > tmp.c ${CC} ${CFLAGS} ${CPPFLAGS} -DTEST=${TEST_NAME} -c -o ${TEST_NAME}.o tmp.c ${CC} ${CFLAGS} ${LDFLAGS} -o ${TEST_NAME} ${TEST_NAME}.o ${TEST_LIBS} ${LIBS} rm -f tmp.c ${TEST_NAME}.stamp: ${TEST_NAME} ./${TEST_NAME} ${TEST_URL} touch ${TEST_NAME}.stamp test: if test -z "${TEST_URL}"; then \ echo "TEST_URL must be set in order to run test suite"; \ exit 1; \ fi for n in ${TEST_NAMES}; do \ ${MAKE} ${MAKE_FLAGS} TEST_NAME="$$n" $${n}.stamp || exit 1; \ done clean: rm -f *~ *.o *.stamp tmp.c ${TEST_NAMES} core distclean: clean rm -f Makefile install: