2b3523f7ac1d00bdd69c5e5a0039bf3d73841e13
[fw/openocd] / 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%/bits.h \
20         %D%/configuration.h \
21         %D%/ioutil.h \
22         %D%/list.h \
23         %D%/util.h \
24         %D%/types.h \
25         %D%/log.h \
26         %D%/command.h \
27         %D%/time_support.h \
28         %D%/replacements.h \
29         %D%/fileio.h \
30         %D%/system.h \
31         %D%/jep106.h \
32         %D%/jep106.inc \
33         %D%/jim-nvp.h
34
35 if IOUTIL
36 %C%_libhelper_la_SOURCES += %D%/ioutil.c
37 else
38 %C%_libhelper_la_SOURCES += %D%/ioutil_stubs.c
39 endif
40
41 %C%_libhelper_la_CFLAGS = $(AM_CFLAGS)
42 if IS_MINGW
43 # FD_* macros are sloppy with their signs on MinGW32 platform
44 %C%_libhelper_la_CFLAGS += -Wno-sign-compare
45 endif
46
47 STARTUP_TCL_SRCS += %D%/startup.tcl
48 EXTRA_DIST += \
49         %D%/bin2char.sh \
50         %D%/update_jep106.pl