NOR/ADUC702X: review scope of data
[openocd/dnglaze.git] / src / jtag / Makefile.am
blob875fbcb67d2303712e037bf55852925e6fc61898
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src \
3         -I$(top_builddir)/src
5 METASOURCES = AUTO
6 noinst_LTLIBRARIES = libjtag.la
8 SUBDIRS =
9 DRIVERFILES =
10 libjtag_la_LIBADD =
12 CLEANFILES =
14 BUILT_SOURCES =
16 BUILT_SOURCES += minidriver_imp.h
17 CLEANFILES += minidriver_imp.h
19 if MINIDRIVER
21 if ZY1000
22 DRIVERFILES += zy1000/zy1000.c
23 JTAG_MINIDRIVER_DIR = $(srcdir)/zy1000
24 endif
25 if MINIDRIVER_DUMMY
26 DRIVERFILES += minidummy/minidummy.c commands.c
27 JTAG_MINIDRIVER_DIR = $(srcdir)/minidummy
28 endif
30 MINIDRIVER_IMP_DIR = $(srcdir)/minidriver
32 jtag_minidriver.h: $(JTAG_MINIDRIVER_DIR)/jtag_minidriver.h
33         cp $< $@
35 BUILT_SOURCES += jtag_minidriver.h
37 CLEANFILES += jtag_minidriver.h
39 else
41 MINIDRIVER_IMP_DIR = $(srcdir)/drivers
42 DRIVERFILES += commands.c
44 SUBDIRS += drivers
45 libjtag_la_LIBADD += $(top_builddir)/src/jtag/drivers/libocdjtagdrivers.la
47 endif
49 # endif // MINIDRIVER
51 minidriver_imp.h: $(MINIDRIVER_IMP_DIR)/minidriver_imp.h
52         cp $< $@
55 libjtag_la_SOURCES = \
56         adapter.c \
57         core.c \
58         interface.c \
59         interfaces.c \
60         tcl.c \
61         $(DRIVERFILES)
63 noinst_HEADERS = \
64         commands.h \
65         interface.h \
66         interfaces.h \
67         minidriver.h \
68         jtag.h \
69         minidriver/minidriver_imp.h \
70         minidummy/jtag_minidriver.h
72 EXTRA_DIST = startup.tcl
74 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in