build: remove src file execute permission
[fw/openocd] / 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         util.h \
37         types.h \
38         log.h \
39         command.h \
40         time_support.h \
41         replacements.h \
42         fileio.h \
43         system.h \
44         bin2char.c \
45         jim-nvp.h
46
47 EXTRA_DIST = startup.tcl
48
49 BIN2C = bin2char$(EXEEXT_FOR_BUILD)
50
51 BUILT_SOURCES = $(BIN2C)
52
53 $(BIN2C): bin2char.c
54         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
55
56 CLEANFILES = bin2char$(EXEEXT_FOR_BUILD)
57
58 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in