X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2FMakefile.am;h=25585a4896468309717118949694c1ac6a06bbbe;hp=1f3d76b6ec76d35d14fdd645daeffd1c702b1dc7;hb=33a17fd35995a7f679f92600055a8f55ae380022;hpb=c5b718f5e85c7a884f7610fea46ceea2c3fbd4a7 diff --git a/src/helper/Makefile.am b/src/helper/Makefile.am index 1f3d76b6ec..25585a4896 100644 --- a/src/helper/Makefile.am +++ b/src/helper/Makefile.am @@ -1,15 +1,62 @@ -INCLUDES = $(all_includes) +include $(top_srcdir)/common.mk + METASOURCES = AUTO -AM_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" -DPKGLIBDIR=\"$(pkglibdir)\" @CPPFLAGS@ -noinst_LIBRARIES = libhelper.a +noinst_LTLIBRARIES = libhelper.la if ECOSBOARD -CONFIGFILES = +CONFIGFILES = time_support_ecos.c +else +CONFIGFILES = options.c time_support_common.c +endif + + + +libhelper_la_SOURCES = \ + binarybuffer.c \ + $(CONFIGFILES) \ + configuration.c \ + log.c \ + command.c \ + time_support.c \ + replacements.c \ + fileio.c \ + util.c + +if IOUTIL +libhelper_la_SOURCES += ioutil.c else -CONFIGFILES = options.c +libhelper_la_SOURCES += ioutil_stubs.c endif -libhelper_a_SOURCES = binarybuffer.c $(CONFIGFILES) configuration.c log.c command.c time_support.c \ - replacements.c fileio.c -noinst_HEADERS = binarybuffer.h configuration.h types.h log.h command.h \ - time_support.h replacements.h fileio.h +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 \ + util.h \ + types.h \ + log.h \ + command.h \ + time_support.h \ + replacements.h \ + fileio.h \ + system.h \ + bin2char.c + +EXTRA_DIST = startup.tcl + +BIN2C = bin2char$(EXEEXT_FOR_BUILD) + +BUILT_SOURCES = $(BIN2C) + +$(BIN2C): bin2char.c + ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@ + +CLEANFILES = bin2char$(EXEEXT_FOR_BUILD) + +MAINTAINERCLEANFILES = $(srcdir)/Makefile.in