summaryrefslogtreecommitdiff
path: root/support/utf2any/Makefile
blob: a7267fa418d09a2b3534c5bfee1dd2fd4ab7ab48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

.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