]> git.sur5r.net Git - openocd/blob - src/helper/Makefile.am
Update build system to find moved scripts -- Step 3 of 2:
[openocd] / src / helper / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/server \
3         -I$(top_srcdir)/src/target \
4         -DPKGDATADIR=\"$(pkgdatadir)\"
5
6 METASOURCES = AUTO
7 noinst_LTLIBRARIES = libhelper.la
8
9 if ECOSBOARD
10 CONFIGFILES = 
11 else
12 CONFIGFILES = options.c jim.c jim-eventloop.c 
13 endif
14
15
16
17 libhelper_la_SOURCES = \
18         binarybuffer.c $(CONFIGFILES) configuration.c \
19         log.c command.c time_support.c \
20         replacements.c fileio.c startup_tcl.c
21
22 if IOUTIL
23 libhelper_la_SOURCES += ioutil.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 = binarybuffer.h configuration.h types.h log.h command.h \
33         time_support.h replacements.h fileio.h jim.h jim-eventloop.h \
34         system.h startup.tcl bin2char.c
35
36 bin2char$(EXEEXT_FOR_BUILD): bin2char.c
37         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
38
39 # Convert .tcl to cfile
40 startup_tcl.c: startup.tcl bin2char$(EXEEXT_FOR_BUILD)
41         ./bin2char$(EXEEXT_FOR_BUILD) startup_tcl < $(srcdir)/startup.tcl > $@
42
43 # add startup_tcl.c to make clean list
44 CLEANFILES = startup_tcl.c bin2char$(EXEEXT_FOR_BUILD)
45
46 MAINTAINERCLEANFILES = Makefile.in