target: add deprecated target name support
[openocd.git] / src / jtag / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 METASOURCES = AUTO
4 noinst_LTLIBRARIES = libjtag.la
5
6 SUBDIRS =
7 DRIVERFILES =
8 libjtag_la_LIBADD =
9
10 CLEANFILES =
11
12 BUILT_SOURCES =
13
14 BUILT_SOURCES += minidriver_imp.h
15 CLEANFILES += minidriver_imp.h
16
17 if MINIDRIVER
18
19 if ZY1000
20 DRIVERFILES += zy1000/zy1000.c
21 JTAG_MINIDRIVER_DIR = $(srcdir)/zy1000
22 endif
23 if MINIDRIVER_DUMMY
24 DRIVERFILES += minidummy/minidummy.c commands.c
25 JTAG_MINIDRIVER_DIR = $(srcdir)/minidummy
26 endif
27
28 MINIDRIVER_IMP_DIR = $(srcdir)/minidriver
29
30 jtag_minidriver.h: $(JTAG_MINIDRIVER_DIR)/jtag_minidriver.h
31         cp $< $@
32
33 BUILT_SOURCES += jtag_minidriver.h
34
35 CLEANFILES += jtag_minidriver.h
36
37 else
38
39 MINIDRIVER_IMP_DIR = $(srcdir)/drivers
40 DRIVERFILES += commands.c
41
42 if HLADAPTER
43 SUBDIRS += hla
44 libjtag_la_LIBADD += $(top_builddir)/src/jtag/hla/libocdhla.la
45 endif
46
47 SUBDIRS += drivers
48 libjtag_la_LIBADD += $(top_builddir)/src/jtag/drivers/libocdjtagdrivers.la
49
50
51 endif
52
53 # endif // MINIDRIVER
54
55 minidriver_imp.h: $(MINIDRIVER_IMP_DIR)/minidriver_imp.h
56         cp $< $@
57
58
59 libjtag_la_SOURCES = \
60         adapter.c \
61         core.c \
62         interface.c \
63         interfaces.c \
64         tcl.c \
65         $(DRIVERFILES)
66
67 noinst_HEADERS = \
68         commands.h \
69         driver.h \
70         interface.h \
71         interfaces.h \
72         minidriver.h \
73         jtag.h \
74         minidriver/minidriver_imp.h \
75         minidummy/jtag_minidriver.h \
76         swd.h \
77         tcl.h
78
79 EXTRA_DIST = startup.tcl
80
81 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in