SUFFIXES:

# MAPDIR defines the place were utf2any will search for symbol maps
# This should be a directory, within double quotes, ending with a slash
# Or it can be NULL

MAPDIR = \"/usr/local/lib/utf/\"
#MAPDIR = NULL

mapdir:
       @echo
       @echo Edit Makefile to specify were utf2any should look for symbol maps
       @echo Current value is: ${MAPDIR}
       @echo When done, run: make all
       @echo
       @exit 1

all: utf2any utfcode

utf2any: utf2any.l
       flex -B -8 utf2any.l
       gcc -s -Wall -DMAPDIR=${MAPDIR} -o utf2any lex.yy.c -lfl
       rm lex.yy.c

utfcode: utfcode.c
       gcc -s -Wall -o utfcode utfcode.c