# Makefile for libiconv/install-tests

#### Start of system configuration section. ####

# Directories used by "make":
srcdir = @srcdir@
top_srcdir = @top_srcdir@

# Directories used by "make install":
prefix = @prefix@
local_prefix = /usr/local
includedir = @includedir@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@

# Programs used by "make installcheck":
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
EXEEXT = @EXEEXT@
RM = rm -f
@SET_MAKE@

#### End of system configuration section. ####

SHELL = @SHELL@

all :

mostlyclean : clean

clean : force
	$(RM) test-version test-version$(EXEEXT) test-api test-api$(EXEEXT)

distclean : clean
	$(RM) Makefile

maintainer-clean : distclean

installcheck :
	$(CC) -I$(includedir) -L$(libdir) \
	      $(CPPFLAGS) \
	      $(CFLAGS) $(LDFLAGS) \
	      -o test-version $(srcdir)/test-version.c -liconv
	@AUGMENT_SHLIBPATH@ ./test-version
	rm -rf test-version test-version$(EXEEXT)
	$(CC) -I$(includedir) -L$(libdir) \
	      $(CPPFLAGS) \
	      $(CFLAGS) $(LDFLAGS) \
	      -o test-api $(srcdir)/test-api.c -liconv
	@AUGMENT_SHLIBPATH@ ./test-api
	rm -rf test-api test-api$(EXEEXT)
	PATH='$(bindir)'@PATH_SEPARATOR@"$$PATH"; iconv --version | grep 'GNU libiconv' > /dev/null

# List of source files.
SOURCE_FILES = \
  Makefile.in \
  test-version.c \
  test-api.c
# List of distributed files imported from other packages.
IMPORTED_FILES =
# List of distributed files generated by autotools or Makefile.devel.
GENERATED_FILES =
# List of distributed files generated by "make".
DISTRIBUTED_BUILT_FILES =
# List of distributed files.
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)

distdir : $(DISTFILES)
	for file in $(DISTFILES); do \
	  if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
	  cp -p "$$dir/$$file" '$(distdir)'/$$file || exit 1; \
	done

force :

