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