jim-nvp is moving from jimtcl to openocd
[openocd.git] / src / helper / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 METASOURCES = AUTO
4 noinst_LTLIBRARIES = libhelper.la
5
6 if ECOSBOARD
7 CONFIGFILES = time_support_ecos.c
8 else
9 CONFIGFILES = options.c time_support_common.c
10 endif
11
12
13
14 libhelper_la_SOURCES = \
15         binarybuffer.c \
16         $(CONFIGFILES) \
17         configuration.c \
18         log.c \
19         command.c \
20         time_support.c \
21         replacements.c \
22         fileio.c \
23         util.c \
24         jim-nvp.c
25
26 if IOUTIL
27 libhelper_la_SOURCES += ioutil.c
28 else
29 libhelper_la_SOURCES += ioutil_stubs.c
30 endif
31
32 libhelper_la_CFLAGS =
33 if IS_MINGW
34 # FD_* macros are sloppy with their signs on MinGW32 platform
35 libhelper_la_CFLAGS += -Wno-sign-compare
36 endif
37
38 noinst_HEADERS = \
39         binarybuffer.h \
40         configuration.h \
41         ioutil.h \
42         util.h \
43         types.h \
44         log.h \
45         command.h \
46         time_support.h \
47         replacements.h \
48         fileio.h \
49         system.h \
50         bin2char.c \
51         jim-nvp.h
52
53 EXTRA_DIST = startup.tcl
54
55 BIN2C = bin2char$(EXEEXT_FOR_BUILD)
56
57 BUILT_SOURCES = $(BIN2C)
58
59 $(BIN2C): bin2char.c
60         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
61
62 CLEANFILES = bin2char$(EXEEXT_FOR_BUILD)
63
64 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in