#
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
#    W   W    A    RRRR   N   N   III  N   N  III  N   N   GGG
#    W   W   A A   R   R  NN  N    I   NN  N   I   NN  N  G   G
#    W   W  A   A  RRRR   N N N    I   N N N   I   N N N  G
#    W W W  AAAAA  R R    N  NN    I   N  NN   I   N  NN  G  GG
#    W W W  A   A  R  R   N   N    I   N   N   I   N   N  G   G
#     W W   A   A  R   R  N   N   III  N   N  III  N   N   GGG
#
# Warning: DO NOT send patches which fix this file. IT IS NOT the original
# source file. This file is GENERATED from the Aegis repository file manifest.
# If you find a bug in this file, it could well be an Aegis bug.
#
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
# @configure_input@
#
# The configure script generates 2 files:
#	1. This Makefile
#	2. lib/config.h
# If you change this Makefile, you may also need to change these files. To see
# what is configured by the configure script, search for @ in the Makefile.in
# file.
#
# If you wish to reconfigure the installations directories it is RECOMMENDED
# that you re-run the configure script.
#
# Use ``./configure --help'' for a list of options.
#

#
# directory containing the source
#
srcdir = @srcdir@
VPATH = @srcdir@

#
# the name of the install program to use
#
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@

#
# the name of the compiler to use
#
CC = @CC@

#
# The compiler flags to use
#
CFLAGS = @CFLAGS@

#
# The preprocessor flags to use
#
CPPFLAGS = @CPPFLAGS@

#
# The linker flags to use
#
LDFLAGS = @LDFLAGS@

#
# prefix for installation path
#
prefix = @prefix@
exec_prefix = @exec_prefix@

#
# Where to put the executables.
#
# On a network, this would only be shared between machines of identical
# cpu-hw-os flavour. It can be read-only.
#
# The $(DESTDIR) is for packaging.
#
bindir = $(DESTDIR)@bindir@

#
# Where to put the manuals.
#
# On a network, this would be shared between all machines on the network. It can
# be read-only.
#
# The $(DESTDIR) is for packaging.
#
mandir = $(DESTDIR)@mandir@

# define this to silence ./configure warning
datarootdir = $(DESTDIR)@datarootdir@

#
# Where to put the supplementary package executables.
#
# On a network, this would be shared between all machines of identical
# architecture. It can be read-only.
#
# The $(DESTDIR) is for packaging.
#
libdir = $(DESTDIR)@libdir@

#
# Where to put the pkg-config(1) data files.
#
pkgconfigdir = $(libdir)/pkgconfig

#
# Where to put the include files for the library.
#
# On a network, this would be shared between all machines of identical
# architecture. It can be read-only.
#
# The $(DESTDIR) is for packaging.
#
includedir = $(DESTDIR)@includedir@

#
# The name of the GNU Libtool command.
#
LIBTOOL = @LIBTOOL@

#
# extra linker options
#
LDFLAGS = @LDFLAGS@

#
# extra libraries required for your system
#
LIBS = @LIBS@

#
# shell to use to run tests and commands
#
SH = @SH@

#
# command file name extension (typically "" or ".exe")
#
EXEEXT = @EXEEXT@

#
# Set GROFF to the name of the roff command on your system, usually "groff" or
# "troff" or "nroff"
#
GROFF = @GROFF@

#
# Set SOELIM to the name of the roff proprocessor command on your system,
# usually "soelim" or "gsoelim"
#
SOELIM = @SOELIM@

# ---------------------------------------------------------
# You should not need to change anything below this line.

#
# The default target
#
the-default-target: all

etc/building.ps: etc/building.man etc/version.so man/man1/z_copyright.so
	$(GROFF) -s -I. -t -man etc/building.man > $@

etc/readme.ps: etc/readme.man etc/new.0.1.so etc/new.0.2.so etc/new.0.3.so \
		etc/new.0.4.so etc/new.so etc/version.so man/man1/z_copyright.so
	$(GROFF) -s -I. -t -man etc/readme.man > $@

etc/reference.ps: etc/reference.man etc/building.man etc/new.0.1.so \
		etc/new.0.2.so etc/new.0.3.so etc/new.0.4.so etc/new.so \
		etc/readme.man etc/ref-parts.so etc/ref-toc.so etc/version.so \
		man/man1/fstrcmp.1 man/man1/fstrcmp_license.1 \
		man/man1/z_copyright.so man/man3/fmemcmp.3 man/man3/fmemcmpi.3 \
		man/man3/fstrcasecmp.3 man/man3/fstrcasecmpi.3 \
		man/man3/fstrcmp.3 man/man3/fstrcmpi.3 man/man3/fstrcoll.3 \
		man/man3/fstrcolli.3 man/man3/fwcscmp.3 man/man3/fwcscmpi.3
	$(GROFF) -s -I. -t -man etc/reference.man > $@

fstrcmp/main.lo: fstrcmp/main.c lib/ac/fcntl.h lib/ac/getopt.h lib/ac/stddef.h \
		lib/ac/stdio.h lib/ac/stdlib.h lib/ac/string.h lib/ac/sys/stat.h \
		lib/ac/sys/time.h lib/ac/sys/types.h lib/ac/unistd.h \
		lib/config.h lib/config.messy.h lib/fstrcmp.h lib/program_name.h \
		lib/version_print.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		fstrcmp/main.c -o fstrcmp/main.lo

lib/ac/string.lo: lib/ac/string.c lib/ac/stddef.h lib/ac/stdio.h lib/ac/stdlib.h \
		lib/ac/string.h lib/config.h lib/config.messy.h \
		lib/gcc_attributes.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/ac/string.c -o lib/ac/string.lo

lib/downcase.lo: lib/downcase.c lib/ac/ctype.h lib/ac/stdlib.h lib/ac/string.h \
		lib/config.h lib/config.messy.h lib/downcase.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/downcase.c -o lib/downcase.lo

lib/fmemcmp.lo: lib/fmemcmp.c lib/ac/stddef.h lib/ac/stdio.h lib/ac/stdlib.h \
		lib/ac/string.h lib/config.h lib/config.messy.h lib/diffseq.h \
		lib/fstrcmp.h lib/minmax.h lib/nmalloc.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fmemcmp.c -o lib/fmemcmp.lo

lib/fmemcmpi.lo: lib/fmemcmpi.c lib/ac/stddef.h lib/ac/stdio.h lib/ac/stdlib.h \
		lib/ac/string.h lib/config.h lib/config.messy.h lib/diffseq.h \
		lib/fstrcmp.h lib/minmax.h lib/nmalloc.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fmemcmpi.c -o lib/fmemcmpi.lo

lib/fstrcasecmp.lo: lib/fstrcasecmp.c lib/ac/stdlib.h lib/config.h \
		lib/config.messy.h lib/downcase.h lib/fstrcmp.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fstrcasecmp.c -o lib/fstrcasecmp.lo

lib/fstrcasecmpi.lo: lib/fstrcasecmpi.c lib/ac/stdlib.h lib/config.h \
		lib/config.messy.h lib/downcase.h lib/fstrcmp.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fstrcasecmpi.c -o lib/fstrcasecmpi.lo

lib/fstrcmp.lo: lib/fstrcmp.c lib/ac/string.h lib/config.h lib/config.messy.h \
		lib/fstrcmp.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fstrcmp.c -o lib/fstrcmp.lo

lib/.incl:
	-$(INSTALL) -m 0755 -d $(includedir)
	@-test -d $(includedir) && touch $@
	@sleep 1

$(includedir)/fstrcmp.h: lib/fstrcmp.h lib/.incl
	$(INSTALL_DATA) lib/fstrcmp.h $@

lib/fstrcmpi.lo: lib/fstrcmpi.c lib/ac/string.h lib/config.h lib/config.messy.h \
		lib/fstrcmp.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fstrcmpi.c -o lib/fstrcmpi.lo

lib/fstrcoll.lo: lib/fstrcoll.c lib/ac/stddef.h lib/ac/stdlib.h lib/ac/string.h \
		lib/config.h lib/config.messy.h lib/fstrcmp.h lib/mbs_to_wcs.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fstrcoll.c -o lib/fstrcoll.lo

lib/fstrcolli.lo: lib/fstrcolli.c lib/ac/stddef.h lib/ac/stdlib.h \
		lib/ac/string.h lib/config.h lib/config.messy.h lib/fstrcmp.h \
		lib/mbs_to_wcs.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fstrcolli.c -o lib/fstrcolli.lo

lib/fwcscmp.lo: lib/fwcscmp.c lib/ac/stddef.h lib/ac/stdio.h lib/ac/stdlib.h \
		lib/ac/string.h lib/ac/wchar.h lib/config.h lib/config.messy.h \
		lib/diffseq.h lib/fstrcmp.h lib/minmax.h lib/nmalloc.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fwcscmp.c -o lib/fwcscmp.lo

lib/fwcscmpi.lo: lib/fwcscmpi.c lib/ac/stddef.h lib/ac/stdio.h lib/ac/stdlib.h \
		lib/ac/string.h lib/ac/wchar.h lib/config.h lib/config.messy.h \
		lib/diffseq.h lib/fstrcmp.h lib/minmax.h lib/nmalloc.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/fwcscmpi.c -o lib/fwcscmpi.lo

lib/mbs_to_wcs.lo: lib/mbs_to_wcs.c lib/ac/stddef.h lib/ac/stdlib.h \
		lib/ac/string.h lib/config.h lib/config.messy.h lib/mbs_to_wcs.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/mbs_to_wcs.c -o lib/mbs_to_wcs.lo

lib/nmalloc.lo: lib/nmalloc.c lib/ac/stddef.h lib/ac/stdlib.h lib/config.h \
		lib/config.messy.h lib/nmalloc.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/nmalloc.c -o lib/nmalloc.lo

lib/program_name.lo: lib/program_name.c lib/ac/assert.h lib/ac/stddef.h \
		lib/ac/stdlib.h lib/ac/string.h lib/ac/sys/types.h \
		lib/ac/unistd.h lib/config.h lib/config.messy.h \
		lib/program_name.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/program_name.c -o lib/program_name.lo

lib/version.lo: lib/version.c lib/patchlevel.h lib/version.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/version.c -o lib/version.lo

lib/version_print.lo: lib/version_print.c lib/ac/stdio.h lib/config.h \
		lib/config.messy.h lib/version.h lib/version_print.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		lib/version_print.c -o lib/version_print.lo

libdir/pkgconfig/fstrcmp.pc: libdir/pkgconfig/fstrcmp.pc.in ./config.status
	CONFIG_FILES=$@:libdir/pkgconfig/fstrcmp.pc.in CONFIG_HEADERS= $(SH) \
		./config.status

libdir/pkgconfig/.pkgconfigdir:
	-$(INSTALL) -m 0755 -d $(pkgconfigdir)
	@-test -d $(pkgconfigdir) && touch $@
	@sleep 1

$(pkgconfigdir)/fstrcmp.pc: libdir/pkgconfig/fstrcmp.pc \
		libdir/pkgconfig/.pkgconfigdir
	$(INSTALL_DATA) libdir/pkgconfig/fstrcmp.pc $@

man/man1/.mandir: man/.mandir
	-$(INSTALL) -m 0755 -d $(mandir)/man1
	@-test -d $(mandir)/man1 && touch $@
	@sleep 1

man/.mandir:
	-$(INSTALL) -m 0755 -d $(mandir)
	@-test -d $(mandir) && touch $@
	@sleep 1

$(mandir)/man1/fstrcmp.1: man/man1/fstrcmp.1 etc/version.so \
		man/man1/z_copyright.so man/man1/.mandir
	$(SOELIM) -I. -Iman/man1 man/man1/fstrcmp.1 > man/man1/fstrcmp.1.tmp
	$(INSTALL_DATA) man/man1/fstrcmp.1.tmp $@
	@rm -f man/man1/fstrcmp.1.tmp

$(mandir)/man1/fstrcmp_license.1: man/man1/fstrcmp_license.1 man/man1/.mandir
	$(SOELIM) -I. -Iman/man1 man/man1/fstrcmp_license.1 > \
		man/man1/fstrcmp_license.1.tmp
	$(INSTALL_DATA) man/man1/fstrcmp_license.1.tmp $@
	@rm -f man/man1/fstrcmp_license.1.tmp

man/man3/.mandir: man/.mandir
	-$(INSTALL) -m 0755 -d $(mandir)/man3
	@-test -d $(mandir)/man3 && touch $@
	@sleep 1

$(mandir)/man3/fmemcmp.3: man/man3/fmemcmp.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fmemcmp.3 > man/man3/fmemcmp.3.tmp
	$(INSTALL_DATA) man/man3/fmemcmp.3.tmp $@
	@rm -f man/man3/fmemcmp.3.tmp

$(mandir)/man3/fmemcmpi.3: man/man3/fmemcmpi.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fmemcmpi.3 > man/man3/fmemcmpi.3.tmp
	$(INSTALL_DATA) man/man3/fmemcmpi.3.tmp $@
	@rm -f man/man3/fmemcmpi.3.tmp

$(mandir)/man3/fstrcasecmp.3: man/man3/fstrcasecmp.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fstrcasecmp.3 > \
		man/man3/fstrcasecmp.3.tmp
	$(INSTALL_DATA) man/man3/fstrcasecmp.3.tmp $@
	@rm -f man/man3/fstrcasecmp.3.tmp

$(mandir)/man3/fstrcasecmpi.3: man/man3/fstrcasecmpi.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fstrcasecmpi.3 > \
		man/man3/fstrcasecmpi.3.tmp
	$(INSTALL_DATA) man/man3/fstrcasecmpi.3.tmp $@
	@rm -f man/man3/fstrcasecmpi.3.tmp

$(mandir)/man3/fstrcmp.3: man/man3/fstrcmp.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fstrcmp.3 > man/man3/fstrcmp.3.tmp
	$(INSTALL_DATA) man/man3/fstrcmp.3.tmp $@
	@rm -f man/man3/fstrcmp.3.tmp

$(mandir)/man3/fstrcmpi.3: man/man3/fstrcmpi.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fstrcmpi.3 > man/man3/fstrcmpi.3.tmp
	$(INSTALL_DATA) man/man3/fstrcmpi.3.tmp $@
	@rm -f man/man3/fstrcmpi.3.tmp

$(mandir)/man3/fstrcoll.3: man/man3/fstrcoll.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fstrcoll.3 > man/man3/fstrcoll.3.tmp
	$(INSTALL_DATA) man/man3/fstrcoll.3.tmp $@
	@rm -f man/man3/fstrcoll.3.tmp

$(mandir)/man3/fstrcolli.3: man/man3/fstrcolli.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fstrcolli.3 > man/man3/fstrcolli.3.tmp
	$(INSTALL_DATA) man/man3/fstrcolli.3.tmp $@
	@rm -f man/man3/fstrcolli.3.tmp

$(mandir)/man3/fwcscmp.3: man/man3/fwcscmp.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fwcscmp.3 > man/man3/fwcscmp.3.tmp
	$(INSTALL_DATA) man/man3/fwcscmp.3.tmp $@
	@rm -f man/man3/fwcscmp.3.tmp

$(mandir)/man3/fwcscmpi.3: man/man3/fwcscmpi.3 etc/version.so \
		man/man1/z_copyright.so man/man3/.mandir
	$(SOELIM) -I. -Iman/man3 man/man3/fwcscmpi.3 > man/man3/fwcscmpi.3.tmp
	$(INSTALL_DATA) man/man3/fwcscmpi.3.tmp $@
	@rm -f man/man3/fwcscmpi.3.tmp

script/test_prelude: script/test_prelude.in ./config.status
	CONFIG_FILES=$@:script/test_prelude.in CONFIG_HEADERS= $(SH) \
		./config.status

bin/test_prelude$(EXEEXT): script/test_prelude .bin
	cp script/test_prelude $@
	chmod a+rx $@

t0001a: test/00/t0001a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0001a.sh

t0002a: test/00/t0002a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0002a.sh

t0003a: test/00/t0003a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0003a.sh

t0004a: test/00/t0004a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0004a.sh

t0005a: test/00/t0005a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0005a.sh

t0006a: test/00/t0006a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0006a.sh

t0007a: test/00/t0007a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0007a.sh

t0008a: test/00/t0008a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0008a.sh

t0009a: test/00/t0009a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0009a.sh

t0010a: test/00/t0010a.sh all
	PATH=`pwd`/bin:$$PATH $(SH) test/00/t0010a.sh

test_user/main.lo: test_user/main.c lib/ac/pwd.h lib/ac/stddef.h lib/ac/stdio.h \
		lib/ac/sys/types.h lib/ac/unistd.h lib/config.h \
		lib/config.messy.h
	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c \
		test_user/main.c -o test_user/main.lo

web-src/icon1.png: web-src/icon1.png.uue
	uudecode -o web-src/icon1.png web-src/icon1.png.uue

web-src/icon2.png: web-src/icon2.png.uue
	uudecode -o web-src/icon2.png web-src/icon2.png.uue

lib_obj = lib/ac/string.lo lib/downcase.lo lib/fmemcmp.lo lib/fmemcmpi.lo \
		lib/fstrcasecmp.lo lib/fstrcasecmpi.lo lib/fstrcmp.lo \
		lib/fstrcmpi.lo lib/fstrcoll.lo lib/fstrcolli.lo lib/fwcscmp.lo \
		lib/fwcscmpi.lo lib/mbs_to_wcs.lo lib/nmalloc.lo \
		lib/program_name.lo lib/version.lo lib/version_print.lo

lib/.libdir:
	-$(INSTALL) -m 0755 -d $(libdir)
	@-test -d $(libdir) && touch $@
	@sleep 1

lib/libfstrcmp.la: $(lib_obj)
	rm -f $@
	$(LIBTOOL) --mode=link --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ \
		$(lib_obj) $(LDFLAGS) $(LIBS) -rpath $(libdir) -version-info \
		3:0:3

$(libdir)/libfstrcmp.la: lib/libfstrcmp.la lib/.libdir
	$(LIBTOOL) --mode=install $(INSTALL_DATA) lib/libfstrcmp.la $@

fstrcmp_obj = fstrcmp/main.lo

bin/fstrcmp$(EXEEXT): $(fstrcmp_obj) lib/libfstrcmp.la .bin
	$(LIBTOOL) --mode=link --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ \
		$(fstrcmp_obj) lib/libfstrcmp.la $(LDFLAGS) $(LIBS)

$(bindir)/fstrcmp$(EXEEXT): bin/fstrcmp$(EXEEXT) .bindir
	$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) bin/fstrcmp$(EXEEXT) $@

test_user_obj = test_user/main.lo

bin/test_user$(EXEEXT): $(test_user_obj) lib/libfstrcmp.la .bin
	$(LIBTOOL) --mode=link --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ \
		$(test_user_obj) lib/libfstrcmp.la $(LDFLAGS) $(LIBS)

all: all-bin all-doc
all-bin: bin/fstrcmp$(EXEEXT) bin/test_prelude$(EXEEXT) bin/test_user$(EXEEXT)
all-doc: etc/building.ps etc/readme.ps etc/reference.ps

.bin:
	-mkdir bin
	-chmod 0755 bin
	@-test -d bin && touch $@
	@sleep 1

.bindir:
	-$(INSTALL) -m 0755 -d $(bindir)
	@-test -d $(bindir) && touch $@
	@sleep 1

check: sure

sure: t0001a t0002a t0003a t0004a t0005a t0006a t0007a t0008a t0009a t0010a
	@echo Passed All Tests

clean-obj:
	rm -f .bin .bindir 'bin/test_prelude$(EXEEXT)' core fstrcmp/main.lo
	rm -f fstrcmp/main.o lib/.incl lib/.libdir lib/ac/string.lo
	rm -f lib/ac/string.o lib/downcase.lo lib/downcase.o lib/fmemcmp.lo
	rm -f lib/fmemcmp.o lib/fmemcmpi.lo lib/fmemcmpi.o lib/fstrcasecmp.lo
	rm -f lib/fstrcasecmp.o lib/fstrcasecmpi.lo lib/fstrcasecmpi.o
	rm -f lib/fstrcmp.lo lib/fstrcmp.o lib/fstrcmpi.lo lib/fstrcmpi.o
	rm -f lib/fstrcoll.lo lib/fstrcoll.o lib/fstrcolli.lo lib/fstrcolli.o
	rm -f lib/fwcscmp.lo lib/fwcscmp.o lib/fwcscmpi.lo lib/fwcscmpi.o
	rm -f lib/libfstrcmp.la lib/mbs_to_wcs.lo lib/mbs_to_wcs.o
	rm -f lib/nmalloc.lo lib/nmalloc.o lib/program_name.lo
	rm -f lib/program_name.o lib/version.lo lib/version.o
	rm -f lib/version_print.lo lib/version_print.o
	rm -f libdir/pkgconfig/.pkgconfigdir man/.mandir man/man1/.mandir
	rm -f man/man3/.mandir test_user/main.lo test_user/main.o y.output
	rm -f y.tab.c y.tab.h

clean: clean-obj
	rm -f 'bin/fstrcmp$(EXEEXT)' 'bin/test_prelude$(EXEEXT)'
	rm -f 'bin/test_user$(EXEEXT)' etc/building.ps etc/readme.ps
	rm -f etc/reference.ps

distclean: clean
	rm -f Makefile config.cache config.log config.status lib/config.h
	rm -f libdir/pkgconfig/fstrcmp.pc script/test_prelude web-src/icon1.png
	rm -f web-src/icon2.png
	rm -rf bin fstrcmp/.libs lib/ac/.libs lib/.libs test_user/.libs

install-bin: $(bindir)/fstrcmp

install-man: $(mandir)/man1/fstrcmp.1 $(mandir)/man1/fstrcmp_license.1 \
		$(mandir)/man3/fmemcmp.3 $(mandir)/man3/fmemcmpi.3 \
		$(mandir)/man3/fstrcasecmp.3 $(mandir)/man3/fstrcasecmpi.3 \
		$(mandir)/man3/fstrcmp.3 $(mandir)/man3/fstrcmpi.3 \
		$(mandir)/man3/fstrcoll.3 $(mandir)/man3/fstrcolli.3 \
		$(mandir)/man3/fwcscmp.3 $(mandir)/man3/fwcscmpi.3

install-libdir: $(libdir)/libfstrcmp.la $(pkgconfigdir)/fstrcmp.pc

install-include: $(includedir)/fstrcmp.h

install: install-bin install-man install-libdir install-include
#
# fstrcmp - fuzzy string compare library
# Copyright (C) 2009 Peter Miller
# Written by Peter Miller <pmiller@opensource.org.au>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
