libpsl/src/Makefile.am

40 lines
1022 B
Makefile
Raw Normal View History

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
lib_LTLIBRARIES = libpsl.la
2014-03-22 20:35:56 +01:00
libpsl_la_SOURCES = psl.c
libpsl_la_CPPFLAGS = -I$(top_srcdir)/include
2014-03-20 22:43:04 +01:00
# include ABI version information
libpsl_la_LDFLAGS = -version-info $(LIBPSL_SO_VERSION)
if WITH_LIBICU
libpsl_la_LDFLAGS += -licuuc
endif
if WITH_LIBIDN2
libpsl_la_LDFLAGS += -lidn2 -lunistring
endif
if WITH_LIBIDN
libpsl_la_LDFLAGS += -lidn -lunistring
endif
2014-03-20 22:43:04 +01:00
2014-03-22 20:35:56 +01:00
noinst_PROGRAMS = psl2c
psl2c_SOURCES = psl2c.c
2014-06-27 17:13:30 +02:00
psl2c_CPPFLAGS = -I$(top_srcdir)/include -D _GNU_SOURCE
if BUILTIN_GENERATOR_LIBICU
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
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
# Build rule for suffix.c
# PSL_FILE can be set by ./configure --with-psl-file=[PATH]
suffixes.c: $(PSL_FILE) psl2c$(EXEEXT)
./psl2c$(EXEEXT) "$(PSL_FILE)" suffixes.c