README* refactoring
[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_SOURCES = \
9         binarybuffer.c \
10         $(CONFIGFILES) \
11         configuration.c \
12         log.c \
13         command.c \
14         time_support.c \
15         replacements.c \
16         fileio.c \
17         util.c \
18         jim-nvp.c
19
20 if IOUTIL
21 libhelper_la_SOURCES += ioutil.c
22 else
23 libhelper_la_SOURCES += ioutil_stubs.c
24 endif
25
26 libhelper_la_CFLAGS =
27 if IS_MINGW
28 # FD_* macros are sloppy with their signs on MinGW32 platform
29 libhelper_la_CFLAGS += -Wno-sign-compare
30 endif
31
32 noinst_HEADERS = \
33         binarybuffer.h \
34         configuration.h \
35         ioutil.h \
36         list.h \
37         util.h \
38         types.h \
39         log.h \
40         command.h \
41         time_support.h \
42         replacements.h \
43         fileio.h \
44         system.h \
45         bin2char.c \
46         jim-nvp.h
47
48 EXTRA_DIST = startup.tcl
49
50 BIN2C = bin2char$(EXEEXT_FOR_BUILD)
51
52 BUILT_SOURCES = $(BIN2C)
53
54 $(BIN2C): bin2char.c
55         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
56
57 CLEANFILES = bin2char$(EXEEXT_FOR_BUILD)
58
59 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in