2014-03-22 20:35:56 +01:00
|
|
|
# suffixes.c must be created before psl.c is compiled
|
2015-12-09 09:35:04 +01:00
|
|
|
BUILT_SOURCES = suffixes_dafsa.c
|
2014-03-22 20:35:56 +01:00
|
|
|
|
|
|
|
# suffixes.c is a built source that must be cleaned
|
2015-12-09 09:35:04 +01:00
|
|
|
CLEANFILES = suffixes_dafsa.c
|
2014-03-20 22:43:04 +01:00
|
|
|
|
2014-05-31 18:56:07 +02:00
|
|
|
lib_LTLIBRARIES = libpsl.la
|
2014-03-22 20:35:56 +01:00
|
|
|
|
2015-12-09 09:35:04 +01:00
|
|
|
libpsl_la_SOURCES = psl.c lookup_string_in_fixed_set.c
|
2014-05-31 18:56:07 +02:00
|
|
|
libpsl_la_CPPFLAGS = -I$(top_srcdir)/include
|
2014-03-20 22:43:04 +01:00
|
|
|
# include ABI version information
|
2014-05-31 18:56:07 +02:00
|
|
|
libpsl_la_LDFLAGS = -version-info $(LIBPSL_SO_VERSION)
|
2014-06-29 22:56:33 +02:00
|
|
|
if WITH_LIBICU
|
|
|
|
libpsl_la_LDFLAGS += -licuuc
|
|
|
|
endif
|
|
|
|
if WITH_LIBIDN2
|
2014-06-30 13:21:16 +02:00
|
|
|
libpsl_la_LDFLAGS += -lidn2 -lunistring
|
2014-06-29 22:56:33 +02:00
|
|
|
endif
|
|
|
|
if WITH_LIBIDN
|
2014-06-30 13:21:16 +02:00
|
|
|
libpsl_la_LDFLAGS += -lidn -lunistring
|
2014-06-29 22:56:33 +02:00
|
|
|
endif
|
2014-03-20 22:43:04 +01:00
|
|
|
|
2014-03-22 20:35:56 +01:00
|
|
|
noinst_PROGRAMS = psl2c
|
2015-12-09 09:35:04 +01:00
|
|
|
psl2c_SOURCES = psl2c.c lookup_string_in_fixed_set.c
|
2016-07-14 11:52:56 +02:00
|
|
|
psl2c_CPPFLAGS = -I$(top_srcdir)/include -DMAKE_DAFSA=\"$(top_srcdir)/src/psl-make-dafsa\"
|
2014-06-27 17:13:30 +02:00
|
|
|
if BUILTIN_GENERATOR_LIBICU
|
2014-06-29 22:56:33 +02:00
|
|
|
psl2c_LDADD = -licuuc
|
2014-06-27 17:13:30 +02:00
|
|
|
endif
|
|
|
|
if BUILTIN_GENERATOR_LIBIDN2
|
2015-01-23 16:13:19 +01:00
|
|
|
psl2c_LDADD = @LTLIBICONV@ -lidn2 -lunistring
|
2014-06-29 22:56:33 +02:00
|
|
|
endif
|
|
|
|
if BUILTIN_GENERATOR_LIBIDN
|
2015-01-23 16:13:19 +01:00
|
|
|
psl2c_LDADD = @LTLIBICONV@ -lidn -lunistring
|
2014-06-27 17:13:30 +02:00
|
|
|
endif
|
2014-03-22 20:35:56 +01:00
|
|
|
|
2015-12-09 09:35:04 +01:00
|
|
|
# Build rule for suffix_dafsa.c
|
2014-04-13 16:35:28 +02:00
|
|
|
# PSL_FILE can be set by ./configure --with-psl-file=[PATH]
|
2015-12-09 09:35:04 +01:00
|
|
|
suffixes_dafsa.c: $(PSL_FILE) psl2c$(EXEEXT)
|
|
|
|
./psl2c$(EXEEXT) "$(PSL_FILE)" suffixes_dafsa.c
|
|
|
|
|
2016-07-14 11:52:56 +02:00
|
|
|
EXTRA_DIST = psl-make-dafsa LICENSE.chromium
|