X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2FMakefile.am;h=64caf98b7da817aed83f966bee441fd93cf04773;hb=063253fa89b2d48104b43783c03ff7161c5d1a5a;hp=5720b9d79a896969b8d44377bc2871b8345e7bf2;hpb=82d2633b5f550115e9e7c7d0520babb6680aa38f;p=openocd.git diff --git a/src/helper/Makefile.am b/src/helper/Makefile.am index 5720b9d79a..64caf98b7d 100644 --- a/src/helper/Makefile.am +++ b/src/helper/Makefile.am @@ -1,6 +1,56 @@ -INCLUDES = $(all_includes) +include $(top_srcdir)/common.mk + METASOURCES = AUTO -noinst_LIBRARIES = libhelper.a -libhelper_a_SOURCES = binarybuffer.c configuration.c log.c interpreter.c command.c time_support.c replacements.c -noinst_HEADERS = binarybuffer.h configuration.h types.h log.h command.h \ - interpreter.h time_support.h replacements.h +noinst_LTLIBRARIES = libhelper.la + +CONFIGFILES = options.c time_support_common.c + +libhelper_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS) + +libhelper_la_SOURCES = \ + binarybuffer.c \ + $(CONFIGFILES) \ + configuration.c \ + log.c \ + command.c \ + time_support.c \ + replacements.c \ + fileio.c \ + util.c \ + jep106.c \ + jim-nvp.c + +if IOUTIL +libhelper_la_SOURCES += ioutil.c +else +libhelper_la_SOURCES += ioutil_stubs.c +endif + +libhelper_la_CFLAGS = +if IS_MINGW +# FD_* macros are sloppy with their signs on MinGW32 platform +libhelper_la_CFLAGS += -Wno-sign-compare +endif + +noinst_HEADERS = \ + binarybuffer.h \ + configuration.h \ + ioutil.h \ + list.h \ + util.h \ + types.h \ + log.h \ + command.h \ + time_support.h \ + replacements.h \ + fileio.h \ + system.h \ + bin2char.sh \ + jep106.h \ + jep106.inc \ + update_jep106.pl \ + jim-nvp.h + +EXTRA_DIST = startup.tcl + +MAINTAINERCLEANFILES = $(srcdir)/Makefile.in