1EXTRA_DIST = linux/se_gemalto.h 2CLEANFILES = *.gcov *.gcda *.gcno 3 4HAVE_LINK_VERSION_SCRIPT=@HAVE_LINK_VERSION_SCRIPT@ 5 6AM_CPPFLAGS = \ 7 -include $(top_builddir)/config.h \ 8 -DSYSCONFDIR=\""$(sysconfdir)"\" \ 9 -DLIBEXECDIR=\""$(libexecdir)"\" 10 11AM_CFLAGS = ${my_CFLAGS} \ 12 -fvisibility=hidden \ 13 -ffunction-sections \ 14 -fdata-sections 15 16LIBSE_GTO_CURRENT=2 17LIBSE_GTO_REVISION=0 18LIBSE_GTO_AGE=2 19 20pkginclude_HEADERS = se-gto/libse-gto.h 21lib_LTLIBRARIES = libse-gto.la 22 23libse_gto_la_SOURCES = \ 24 libse-gto.c \ 25 libse-gto-private.h \ 26 iso7816_t1.c \ 27 iso7816_t1.h \ 28 checksum.c \ 29 checksum.h \ 30 transport.c \ 31 transport.h \ 32 spi.c \ 33 spi.h \ 34 log.c \ 35 log.h \ 36 compiler.h 37 38libse_gto_la_LDFLAGS = $(AM_LDFLAGS) \ 39 -version-info $(LIBSE_GTO_CURRENT):$(LIBSE_GTO_REVISION):$(LIBSE_GTO_AGE) 40 41if HAVE_LINK_VERSION_SCRIPT 42# Deactivate usage of symbols version until Linux port further need it 43# EXTRA_DIST += libse-gto.sym 44# libse_gto_la_LDFLAGS += -Wl,--version-script=libse-gto.sym 45# libse_gto_la_DEPENDENCIES = libse-gto.sym 46endif 47 48SED_PROCESS = \ 49 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \ 50 -e 's,@VERSION\@,$(VERSION),g' \ 51 -e 's,@prefix\@,$(prefix),g' \ 52 -e 's,@exec_prefix\@,$(exec_prefix),g' \ 53 -e 's,@libdir\@,$(libdir),g' \ 54 -e 's,@includedir\@,$(includedir),g' \ 55 < $< > $@ || rm $@ 56 57%.pc: %.pc.in Makefile 58 $(SED_PROCESS) 59 60pkgconfigdir = $(libdir)/pkgconfig 61pkgconfig_DATA = libse-gto.pc 62EXTRA_DIST += libse-gto.pc.in 63CLEANFILES += libse-gto.pc 64