]> git.sur5r.net Git - openocd/blob - src/helper/Makefile.am
xscale: better fix for debug_handler.bin
[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 \
19         $(CONFIGFILES) \
20         configuration.c \
21         log.c \
22         command.c \
23         time_support.c \
24         replacements.c \
25         fileio.c \
26         membuf.c \
27         startup_tcl.c
28
29 if IOUTIL
30 libhelper_la_SOURCES += ioutil.c
31 endif
32
33 libhelper_la_CFLAGS =
34 if IS_MINGW
35 # FD_* macros are sloppy with their signs on MinGW32 platform
36 libhelper_la_CFLAGS += -Wno-sign-compare
37 endif
38
39 noinst_HEADERS = \
40         binarybuffer.h \
41         configuration.h \
42         types.h \
43         log.h \
44         command.h \
45         membuf.h \
46         time_support.h \
47         replacements.h \
48         fileio.h \
49         jim.h \
50         jim-eventloop.h \
51         system.h \
52         startup.tcl \
53         bin2char.c
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 # Convert .tcl to cfile
63 startup_tcl.c: startup.tcl $(BIN2C)
64         ./$(BIN2C) startup_tcl < $(srcdir)/startup.tcl > $@
65
66 # add startup_tcl.c to make clean list
67 CLEANFILES = startup_tcl.c bin2char$(EXEEXT_FOR_BUILD)
68
69 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in