summaryrefslogtreecommitdiff
path: root/preppie/Makefile.am
blob: a3431b6044b4d8e99c699547dee062294875c432 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
lib_LTLIBRARIES = libpreppie.la

libpreppie_la_SOURCES = \
	sprep.c \
	builtin-tables.h \
	internal.h

BUILT_TABLE_SOURCES = \
	built/maps.c \
	built/unassigned-unicode-3.2.c \
	built/bidi-rtl.c \
	built/bidi-ltr.c

nodist_libpreppie_la_SOURCES = $(BUILT_TABLE_SOURCES)

preppie_includedir = \
	$(includedir)/preppie-$(PREPPIE_API_VERSION)/preppie

preppie_include_HEADERS = \
	sprep.h

noinst_HEADERS = \
	profile-format.h

EXTRA_DIST = preppie.pc.in

pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA = preppie.pc

libpreppie_la_LIBADD = $(GLIB_LIBS)

AM_CPPFLAGS = $(GLIB_CFLAGS) -DSPREP_PROFILE_DIR=\"$(PREPPIE_PROFILE_DIR)\"

CLEANFILES = $(BUILT_TABLE_SOURCES)

GEN_MAPS = $(top_builddir)/gen/srcgen-maps
GEN_CSET = $(top_builddir)/gen/srcgen-cset

built/maps.c: $(top_srcdir)/data/B.1 $(top_srcdir)/data/B.2 $(top_srcdir)/data/B.3 $(GEN_MAPS)
	$(GEN_MAPS) --name-prefix=_sprep_map \
		    --input-b1=$(top_srcdir)/data/B.1 \
		    --input-b2=$(top_srcdir)/data/B.2 \
		    --input-b3=$(top_srcdir)/data/B.3 \
		> $@

built/unassigned-unicode-3.2.c: $(top_srcdir)/data/A.1 $(GEN_CSET)
	$(GEN_CSET) --table-name=_sprep_unassigned_set_unicode_3_2_base $< > $@

built/bidi-rtl.c: $(top_srcdir)/data/D.1 $(GEN_CSET)
	$(GEN_CSET) --table-name=_sprep_bidi_set_r_or_al_base $< > $@

built/bidi-ltr.c: $(top_srcdir)/data/D.2 $(GEN_CSET)
	$(GEN_CSET) --table-name=_sprep_bidi_set_l_base $< > $@

.DELETE_ON_ERROR: $(BUILT_TABLE_SOURCES)