362389436c07cea1a17d5c69c034a3a591d23c93
[openocd.git] / src / helper / Makefile.am
1 noinst_LTLIBRARIES += %D%/libhelper.la
2
3 %C%_libhelper_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS)
4
5 %C%_libhelper_la_SOURCES = \
6         %D%/binarybuffer.c \
7         %D%/options.c \
8         %D%/time_support_common.c \
9         %D%/configuration.c \
10         %D%/log.c \
11         %D%/command.c \
12         %D%/time_support.c \
13         %D%/replacements.c \
14         %D%/fileio.c \
15         %D%/util.c \
16         %D%/jep106.c \
17         %D%/jim-nvp.c \
18         %D%/binarybuffer.h \
19         %D%/configuration.h \
20         %D%/ioutil.h \
21         %D%/list.h \
22         %D%/util.h \
23         %D%/types.h \
24         %D%/log.h \
25         %D%/command.h \
26         %D%/time_support.h \
27         %D%/replacements.h \
28         %D%/fileio.h \
29         %D%/system.h \
30         %D%/jep106.h \
31         %D%/jep106.inc \
32         %D%/jim-nvp.h
33
34 if IOUTIL
35 %C%_libhelper_la_SOURCES += %D%/ioutil.c
36 else
37 %C%_libhelper_la_SOURCES += %D%/ioutil_stubs.c
38 endif
39
40 %C%_libhelper_la_CFLAGS =
41 if IS_MINGW
42 # FD_* macros are sloppy with their signs on MinGW32 platform
43 %C%_libhelper_la_CFLAGS += -Wno-sign-compare
44 endif
45
46 STARTUP_TCL_SRCS += %D%/startup.tcl
47 EXTRA_DIST += \
48         %D%/bin2char.sh \
49         %D%/update_jep106.pl