libusb: idProduct of USB device may be zero
[openocd.git] / src / helper / Makefile.am
blob9e27d051ef7d38a861fcd021c1f966903ac07e2c
1 include $(top_srcdir)/common.mk
3 METASOURCES = AUTO
4 noinst_LTLIBRARIES = libhelper.la
6 CONFIGFILES = options.c time_support_common.c
8 libhelper_la_SOURCES = \
9         binarybuffer.c \
10         $(CONFIGFILES) \
11         configuration.c \
12         log.c \
13         command.c \
14         time_support.c \
15         replacements.c \
16         fileio.c \
17         util.c \
18         jim-nvp.c
20 if IOUTIL
21 libhelper_la_SOURCES += ioutil.c
22 else
23 libhelper_la_SOURCES += ioutil_stubs.c
24 endif
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
32 noinst_HEADERS = \
33         binarybuffer.h \
34         configuration.h \
35         ioutil.h \
36         list.h \
37         util.h \
38         types.h \
39         log.h \
40         command.h \
41         time_support.h \
42         replacements.h \
43         fileio.h \
44         system.h \
45         bin2char.c \
46         jim-nvp.h
48 EXTRA_DIST = startup.tcl
50 BIN2C = bin2char$(EXEEXT_FOR_BUILD)
52 BUILT_SOURCES = $(BIN2C)
54 $(BIN2C): bin2char.c
55         ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
57 CLEANFILES = bin2char$(EXEEXT_FOR_BUILD)
59 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in