TCL/SPEAr: move DDR activation in common code
[openocd/dsp568013.git] / src / helper / Makefile.am
blobc9479b43edb18aba62a6f098f952e75d63059262
1 include $(top_srcdir)/common.mk
3 METASOURCES = AUTO
4 noinst_LTLIBRARIES = libhelper.la
6 if ECOSBOARD
7 CONFIGFILES = time_support_ecos.c
8 else
9 CONFIGFILES = options.c time_support_common.c
10 endif
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
26 if IOUTIL
27 libhelper_la_SOURCES += ioutil.c
28 else
29 libhelper_la_SOURCES += ioutil_stubs.c
30 endif
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
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
53 EXTRA_DIST = startup.tcl
55 BIN2C = bin2char$(EXEEXT_FOR_BUILD)
57 BUILT_SOURCES = $(BIN2C)
59 $(BIN2C): bin2char.c
60         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
62 CLEANFILES = bin2char$(EXEEXT_FOR_BUILD)
64 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in