]> git.sur5r.net Git - openocd/blob - src/helper/Makefile.am
e0686401e58445e608aebc20a1bc303d75ed0abd
[openocd] / src / helper / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/server \
3         -I$(top_srcdir)/src/target \
4         -DPKGDATADIR=\"$(pkgdatadir)\" \
5         -DPKGLIBDIR=\"$(pkglibdir)\"
6
7 METASOURCES = AUTO
8 noinst_LIBRARIES = libhelper.a
9
10 if ECOSBOARD
11 CONFIGFILES = 
12 else
13 CONFIGFILES = options.c jim.c jim-eventloop.c 
14 endif
15
16
17
18 libhelper_a_SOURCES = binarybuffer.c $(CONFIGFILES) configuration.c log.c command.c time_support.c \
19         replacements.c fileio.c startup_tcl.c
20
21 if IOUTIL
22 libhelper_a_SOURCES += ioutil.c
23 endif
24
25 libhelper_a_CFLAGS =
26 if IS_MINGW
27 # FD_* macros are sloppy with their signs on MinGW32 platform
28 libhelper_a_CFLAGS += -Wno-sign-compare
29 endif
30
31 noinst_HEADERS = binarybuffer.h configuration.h types.h log.h command.h \
32         time_support.h replacements.h fileio.h jim.h jim-eventloop.h \
33         startup.tcl bin2char.c
34
35 bin2char$(EXEEXT_FOR_BUILD): bin2char.c
36         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
37
38 # Convert .tcl to cfile
39 startup_tcl.c: startup.tcl bin2char$(EXEEXT_FOR_BUILD)
40         ./bin2char$(EXEEXT_FOR_BUILD) startup_tcl < $(srcdir)/startup.tcl > $@
41
42 # add startup_tcl.c to make clean list
43 CLEANFILES = startup_tcl.c bin2char$(EXEEXT_FOR_BUILD)
44
45 MAINTAINERCLEANFILES = Makefile.in