2014-03-22 20:35:56 +01:00
|
|
|
#EXTRA_DIST = $(top_srcdir)/data/effective_tld_names.dat
|
2014-03-20 22:43:04 +01:00
|
|
|
|
2014-03-22 20:35:56 +01:00
|
|
|
# suffixes.c must be created before psl.c is compiled
|
|
|
|
BUILT_SOURCES = suffixes.c
|
|
|
|
|
|
|
|
# suffixes.c is a built source that must be cleaned
|
|
|
|
CLEANFILES = suffixes.c
|
2014-03-20 22:43:04 +01:00
|
|
|
|
2014-03-22 20:35:56 +01:00
|
|
|
# build two libraries, 'inline' version with PSL entries compiled in
|
|
|
|
lib_LTLIBRARIES = libpsl-@LIBPSL_API_VERSION@.la libpsl-inline-@LIBPSL_API_VERSION@.la
|
|
|
|
|
|
|
|
libpsl_@LIBPSL_API_VERSION@_la_SOURCES = psl.c
|
|
|
|
libpsl_@LIBPSL_API_VERSION@_la_CPPFLAGS = -I$(top_srcdir)/include
|
2014-03-20 22:43:04 +01:00
|
|
|
# include ABI version information
|
|
|
|
libpsl_@LIBPSL_API_VERSION@_la_LDFLAGS = -version-info $(LIBPSL_SO_VERSION)
|
|
|
|
|
2014-03-22 20:35:56 +01:00
|
|
|
libpsl_inline_@LIBPSL_API_VERSION@_la_SOURCES = psl-inline.c
|
|
|
|
libpsl_inline_@LIBPSL_API_VERSION@_la_CPPFLAGS = -I$(top_srcdir)/include
|
|
|
|
# include ABI version information
|
|
|
|
libpsl_inline_@LIBPSL_API_VERSION@_la_LDFLAGS = -version-info $(LIBPSL_SO_VERSION)
|
|
|
|
|
|
|
|
noinst_PROGRAMS = psl2c
|
|
|
|
psl2c_SOURCES = psl2c.c
|
2014-03-22 22:55:34 +01:00
|
|
|
psl2c_CPPFLAGS = -I$(top_srcdir)/include -D _GNU_SOURCE
|
|
|
|
psl2c_LDADD = -lidn2
|
2014-03-22 20:35:56 +01:00
|
|
|
#psl2c_LDFLAGS = -static
|
|
|
|
|
|
|
|
# Build rule for suffix.c
|
|
|
|
suffixes.c: $(top_srcdir)/data/effective_tld_names.dat psl2c$(EXEEXT)
|
|
|
|
./psl2c$(EXEEXT) <$(top_srcdir)/data/effective_tld_names.dat >suffixes.c
|