diff options
Diffstat (limited to 'helper/Makefile.am')
-rw-r--r-- | helper/Makefile.am | 93 |
1 files changed, 58 insertions, 35 deletions
diff --git a/helper/Makefile.am b/helper/Makefile.am index 2c5452dcc..a732509df 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -1,63 +1,86 @@ -include $(top_srcdir)/platform/@with_platform@/Makefile.inc +include $(top_srcdir)/Makefile.inc pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = $(top_builddir)/pkgconfig/libodphelper.pc +pkgconfig_DATA = libodphelper.pc -LIB = $(top_builddir)/lib -AM_CFLAGS += -I$(srcdir)/include -AM_CFLAGS += -I$(top_srcdir)/platform/@with_platform@/include -AM_CFLAGS += -I$(top_srcdir)/include -AM_CFLAGS += -I$(top_srcdir)/include/odp/arch/@ARCH_ABI@ -AM_CFLAGS += -I$(top_builddir)/platform/@with_platform@/include -AM_CFLAGS += -I$(top_builddir)/include +AM_CPPFLAGS = \ + $(ODP_INCLUDES) \ + $(HELPER_INCLUDES) \ + $(LIBCLI_CPPFLAGS) +AM_CFLAGS += $(PTHREAD_CFLAGS) AM_LDFLAGS += -version-number '$(ODPHELPER_LIBSO_VERSION)' helperincludedir = $(includedir)/odp/helper/ helperinclude_HEADERS = \ - $(srcdir)/include/odp/helper/chksum.h\ - $(srcdir)/include/odp/helper/eth.h\ - $(srcdir)/include/odp/helper/icmp.h\ - $(srcdir)/include/odp/helper/ip.h\ - $(srcdir)/include/odp/helper/ipsec.h\ - $(srcdir)/include/odp/helper/odph_api.h\ - $(srcdir)/include/odp/helper/odph_cuckootable.h\ - $(srcdir)/include/odp/helper/odph_hashtable.h\ - $(srcdir)/include/odp/helper/odph_iplookuptable.h\ - $(srcdir)/include/odp/helper/odph_lineartable.h\ - $(srcdir)/include/odp/helper/strong_types.h\ - $(srcdir)/include/odp/helper/tcp.h\ - $(srcdir)/include/odp/helper/table.h\ - $(srcdir)/include/odp/helper/threads.h \ - $(srcdir)/include/odp/helper/udp.h + include/odp/helper/autoheader_external.h\ + include/odp/helper/deprecated.h\ + include/odp/helper/chksum.h\ + include/odp/helper/debug.h \ + include/odp/helper/eth.h\ + include/odp/helper/gtp.h\ + include/odp/helper/icmp.h\ + include/odp/helper/igmp.h\ + include/odp/helper/ip.h\ + include/odp/helper/ipsec.h\ + include/odp/helper/macros.h\ + include/odp/helper/odph_api.h\ + include/odp/helper/sctp.h \ + include/odp/helper/stress.h\ + include/odp/helper/string.h\ + include/odp/helper/strong_types.h\ + include/odp/helper/tcp.h\ + include/odp/helper/threads.h \ + include/odp/helper/udp.h \ + include/odp/helper/version.h if helper_linux helperinclude_HEADERS += \ - $(srcdir)/include/odp/helper/linux.h + include/odp/helper/linux.h helperlinuxincludedir = $(includedir)/odp/helper/linux helperlinuxinclude_HEADERS = \ - $(srcdir)/include/odp/helper/linux/pthread.h \ - $(srcdir)/include/odp/helper/linux/process.h + include/odp/helper/linux/pthread.h \ + include/odp/helper/linux/process.h endif -noinst_HEADERS = \ - $(srcdir)/odph_debug.h \ - $(srcdir)/odph_list_internal.h +if helper_cli +helperinclude_HEADERS += \ + include/odp/helper/cli.h +endif __LIB__libodphelper_la_SOURCES = \ eth.c \ ip.c \ chksum.c \ - hashtable.c \ - lineartable.c \ - cuckootable.c \ - iplookuptable.c \ - threads.c + ipsec.c \ + threads.c \ + version.c if helper_linux __LIB__libodphelper_la_SOURCES += \ linux/thread.c endif +if helper_cli +__LIB__libodphelper_la_SOURCES += \ + cli.c +endif + +__LIB__libodphelper_la_LIBADD = $(PTHREAD_LIBS) +__LIB__libodphelper_la_LIBADD += $(LIBCLI_LIBS) + lib_LTLIBRARIES = $(LIB)/libodphelper.la + +CHECK_GLOBALS_REGEX = " (odph_|_deprecated_odph_|__odr_asan)" + +TESTS_ENVIRONMENT = \ + LIBTOOL="$(LIBTOOL)" \ + NM="$(NM)" \ + LIB="$(LIB)" \ + lib_LTLIBRARIES="$(lib_LTLIBRARIES)" \ + CHECK_GLOBALS_REGEX=$(CHECK_GLOBALS_REGEX) + +dist_check_SCRIPTS = check-globals.sh + +TESTS = $(dist_check_SCRIPTS) |