64caf98b7da817aed83f966bee441fd93cf04773
[openocd.git] / src / helper / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 METASOURCES = AUTO
4 noinst_LTLIBRARIES = libhelper.la
5
6 CONFIGFILES = options.c time_support_common.c
7
8 libhelper_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS)
9
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         jep106.c \
21         jim-nvp.c
22
23 if IOUTIL
24 libhelper_la_SOURCES += ioutil.c
25 else
26 libhelper_la_SOURCES += ioutil_stubs.c
27 endif
28
29 libhelper_la_CFLAGS =
30 if IS_MINGW
31 # FD_* macros are sloppy with their signs on MinGW32 platform
32 libhelper_la_CFLAGS += -Wno-sign-compare
33 endif
34
35 noinst_HEADERS = \
36         binarybuffer.h \
37         configuration.h \
38         ioutil.h \
39         list.h \
40         util.h \
41         types.h \
42         log.h \
43         command.h \
44         time_support.h \
45         replacements.h \
46         fileio.h \
47         system.h \
48         bin2char.sh \
49         jep106.h \
50         jep106.inc \
51         update_jep106.pl \
52         jim-nvp.h
53
54 EXTRA_DIST = startup.tcl
55
56 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in