split startup.tcl file across modules
[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 DRIVERFILES =
9
10 if MINIDRIVER
11
12 if ZY1000
13 DRIVERFILES += zy1000/zy1000.c
14 AM_CPPFLAGS += -I$(srcdir)/zy1000
15 endif
16 if MINIDRIVER_DUMMY
17 DRIVERFILES += minidummy/minidummy.c commands.c
18 AM_CPPFLAGS += -I$(srcdir)/minidummy
19 endif
20
21 else
22
23 # Standard Driver: common files
24 DRIVERFILES += driver.c commands.c
25
26 if BITBANG
27 DRIVERFILES += bitbang.c
28 endif
29 if PARPORT
30 DRIVERFILES += parport.c
31 endif
32 if DUMMY
33 DRIVERFILES += dummy.c
34 endif
35 if FT2232_DRIVER
36 DRIVERFILES += ft2232.c
37 endif
38 if AMTJTAGACCEL
39 DRIVERFILES += amt_jtagaccel.c
40 endif
41 if EP93XX
42 DRIVERFILES += ep93xx.c
43 endif
44 if AT91RM9200
45 DRIVERFILES += at91rm9200.c
46 endif
47 if GW16012
48 DRIVERFILES += gw16012.c
49 endif
50 if BITQ
51 DRIVERFILES += bitq.c
52 endif
53 if PRESTO_DRIVER
54 DRIVERFILES += presto.c
55 endif
56 if USBPROG
57 DRIVERFILES += usbprog.c
58 endif
59 if JLINK
60 DRIVERFILES += jlink.c
61 endif
62 if RLINK
63 DRIVERFILES += rlink/rlink.c rlink/rlink_speed_table.c
64 endif
65 if VSLLINK
66 DRIVERFILES += vsllink.c
67 endif
68 if ARMJTAGEW
69 DRIVERFILES += arm-jtag-ew.c
70 endif
71
72 endif
73 # endif // MINIDRIVER
74
75
76 libjtag_la_SOURCES = \
77         core.c \
78         interface.c \
79         interfaces.c \
80         tcl.c \
81         $(DRIVERFILES)
82
83 noinst_HEADERS = \
84         interface.h \
85         interfaces.h \
86         commands.h \
87         minidriver.h \
88         bitbang.h \
89         jtag.h \
90         bitq.h \
91         rlink/dtc_cmd.h \
92         rlink/ep1_cmd.h \
93         rlink/rlink.h \
94         rlink/st7.h \
95         minidummy/jtag_minidriver.h
96
97 EXTRA_DIST = startup.tcl
98
99 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in