remove tertiary include paths
[openocd.git] / src / helper / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src \
3         -DPKGDATADIR=\"$(pkgdatadir)\"
4
5 METASOURCES = AUTO
6 noinst_LTLIBRARIES = libhelper.la
7
8 if ECOSBOARD
9 CONFIGFILES =
10 else
11 CONFIGFILES = options.c jim.c jim-eventloop.c
12 endif
13
14
15
16 libhelper_la_SOURCES = \
17         binarybuffer.c \
18         $(CONFIGFILES) \
19         configuration.c \
20         log.c \
21         command.c \
22         time_support.c \
23         replacements.c \
24         fileio.c \
25         membuf.c
26
27 if IOUTIL
28 libhelper_la_SOURCES += ioutil.c
29 else
30 libhelper_la_SOURCES += ioutil_stubs.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         ioutil.h \
43         types.h \
44         log.h \
45         command.h \
46         membuf.h \
47         time_support.h \
48         replacements.h \
49         fileio.h \
50         jim.h \
51         jim-eventloop.h \
52         system.h \
53         bin2char.c
54
55 EXTRA_DIST = startup.tcl
56
57 BIN2C = bin2char$(EXEEXT_FOR_BUILD)
58
59 BUILT_SOURCES = $(BIN2C)
60
61 $(BIN2C): bin2char.c
62         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
63
64 CLEANFILES = bin2char$(EXEEXT_FOR_BUILD)
65
66 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in