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