c735897eb6888dcacbfd3579adad3cd400c19699
[openocd.git] / src / jtag / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/helper \
3         -I$(top_srcdir)/src/target
4
5 METASOURCES = AUTO
6 noinst_LTLIBRARIES = libjtag.la
7
8 SUBDIRS =
9 DRIVERFILES =
10 libjtag_la_LIBADD =
11
12 if MINIDRIVER
13
14 if ZY1000
15 DRIVERFILES += zy1000/zy1000.c
16 AM_CPPFLAGS += -I$(srcdir)/zy1000
17 endif
18 if MINIDRIVER_DUMMY
19 DRIVERFILES += minidummy/minidummy.c commands.c
20 AM_CPPFLAGS += -I$(srcdir)/minidummy
21 endif
22
23 else
24
25 DRIVERFILES += commands.c
26
27 SUBDIRS += drivers
28 libjtag_la_LIBADD += $(top_builddir)/src/jtag/drivers/libocdjtagdrivers.la
29
30 endif
31 # endif // MINIDRIVER
32
33 libjtag_la_SOURCES = \
34         core.c \
35         interface.c \
36         interfaces.c \
37         tcl.c \
38         $(DRIVERFILES)
39
40 noinst_HEADERS = \
41         commands.h \
42         interface.h \
43         interfaces.h \
44         minidriver.h \
45         jtag.h \
46         minidummy/jtag_minidriver.h
47
48 EXTRA_DIST = startup.tcl
49
50 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in