cortex_m: set fpb_enabled on enabling fpb
[openocd.git] / src / helper / Makefile.am
blob215bbaed5fbe72bc4efe0d7dcb6d59b791f5d835
1 include $(top_srcdir)/common.mk
3 METASOURCES = AUTO
4 noinst_LTLIBRARIES = libhelper.la
6 CONFIGFILES = options.c time_support_common.c
8 libhelper_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS)
10 libhelper_la_SOURCES = \
11         binarybuffer.c \
12         $(CONFIGFILES) \
13         configuration.c \
14         log.c \
15         command.c \
16         time_support.c \
17         replacements.c \
18         fileio.c \
19         util.c \
20         jim-nvp.c
22 if IOUTIL
23 libhelper_la_SOURCES += ioutil.c
24 else
25 libhelper_la_SOURCES += ioutil_stubs.c
26 endif
28 libhelper_la_CFLAGS =
29 if IS_MINGW
30 # FD_* macros are sloppy with their signs on MinGW32 platform
31 libhelper_la_CFLAGS += -Wno-sign-compare
32 endif
34 noinst_HEADERS = \
35         binarybuffer.h \
36         configuration.h \
37         ioutil.h \
38         list.h \
39         util.h \
40         types.h \
41         log.h \
42         command.h \
43         time_support.h \
44         replacements.h \
45         fileio.h \
46         system.h \
47         bin2char.c \
48         jim-nvp.h
50 EXTRA_DIST = startup.tcl
52 BIN2C = bin2char$(EXEEXT_FOR_BUILD)
54 BUILT_SOURCES = $(BIN2C)
56 $(BIN2C): bin2char.c
57         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
59 CLEANFILES = bin2char$(EXEEXT_FOR_BUILD)
61 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in