]> git.gag.com Git - fw/openocd/blob - src/helper/Makefile.am
at91rm9200: use register_commands()
[fw/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
28 if IOUTIL
29 libhelper_la_SOURCES += ioutil.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         types.h \
42         log.h \
43         command.h \
44         membuf.h \
45         time_support.h \
46         replacements.h \
47         fileio.h \
48         jim.h \
49         jim-eventloop.h \
50         system.h \
51         bin2char.c
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