Makefile.am 2.13 KB
Newer Older
1
2
3
AM_CPPFLAGS = \
	-I$(top_srcdir)/src/helper \
	-I$(top_srcdir)/src/target
4
5

METASOURCES = AUTO
6
noinst_LTLIBRARIES = libjtag.la
7
8
9
10
11
12
13
14
15
16
17
18
19

if BITBANG
BITBANGFILES = bitbang.c
else
BITBANGFILES =
endif

if PARPORT
PARPORTFILES = parport.c
else
PARPORTFILES =
endif

20
21
22
23
24
25
if DUMMY
DUMMYFILES = dummy.c
else
DUMMYFILES =
endif

26
27
if FT2232_LIBFTDI
FT2232FILES = ft2232.c
28
else
29
30
if FT2232_FTD2XX
FT2232FILES = ft2232.c
31
else
32
FT2232FILES =
33
endif
34
endif
35
36
37
38
39
40
41
42
43
44
45
46
47

if AMTJTAGACCEL
AMTJTAGACCELFILES = amt_jtagaccel.c
else
AMTJTAGACCELFILES =
endif

if EP93XX
EP93XXFILES = ep93xx.c
else
EP93XXFILES =
endif

48
if ECOSBOARD
49
50
ECOSBOARDFILES = zy1000/zy1000.c
AM_CPPFLAGS += -I$(srcdir)/zy1000
51
52
53
54
else
ECOSBOARDFILES =
endif

55
if MINIDRIVER_DUMMY
56
MINIDUMMYFILES = minidummy/minidummy.c commands.c
57
AM_CPPFLAGS += -I$(srcdir)/minidummy
58
59
60
61
else
MINIDUMMYFILES =
endif

62
if MINIDRIVER
63
DRIVERFILES = $(MINIDUMMYFILES)
64
else
65
DRIVERFILES = jtag_driver.c commands.c
66
67
endif

68
69
70
71
72
73
if AT91RM9200
AT91RM9200FILES = at91rm9200.c
else
AT91RM9200FILES =
endif

74
75
76
77
78
79
if GW16012
GW16012FILES = gw16012.c
else
GW16012FILES =
endif

80
81
82
83
84
85
if BITQ
BITQFILES = bitq.c
else
BITQFILES =
endif

86
if PRESTO_LIBFTDI
87
88
PRESTOFILES = presto.c
else
89
90
if PRESTO_FTD2XX
PRESTOFILES = presto.c
drath's avatar
drath committed
91
else
92
93
PRESTOFILES =
endif
drath's avatar
drath committed
94
endif
95
96
97
98
99
100
101

if USBPROG
USBPROGFILES = usbprog.c
else
USBPROGFILES =
endif

102
103
104
105
106
107
if JLINK
JLINKFILES = jlink.c
else
JLINKFILES =
endif

108
109
110
111
112
113
if RLINK
RLINKFILES = rlink/rlink.c rlink/rlink_speed_table.c
else
RLINKFILES =
endif

duane's avatar
duane committed
114
115
116
117
118
119
if VSLLINK
VSLLINKFILES = vsllink.c
else
VSLLINKFILES =
endif

120
121
122
123
124
125
if ARMJTAGEW
ARMJTAGEWFILES = arm-jtag-ew.c
else
ARMJTAGEWFILES =
endif

126
libjtag_la_SOURCES = \
127
128
	core.c \
	tcl.c \
129
	interface.c \
130
	$(DRIVERFILES) \
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
	$(BITBANGFILES) \
	$(PARPORTFILES) \
	$(DUMMYFILES) \
	$(FT2232FILES) \
	$(AMTJTAGACCELFILES) \
	$(EP93XXFILES) \
	$(AT91RM9200FILES) \
	$(GW16012FILES) \
	$(BITQFILES) \
	$(PRESTOFILES) \
	$(USBPROGFILES) \
	$(ECOSBOARDFILES) \
	$(JLINKFILES) \
	$(RLINKFILES) \
	$(VSLLINKFILES) \
	$(ARMJTAGEWFILES)

noinst_HEADERS = \
149
	interface.h \
150
	commands.h \
zwelch's avatar
zwelch committed
151
	minidriver.h \
152
153
154
155
156
157
	bitbang.h \
	jtag.h \
	bitq.h \
	rlink/dtc_cmd.h \
	rlink/ep1_cmd.h \
	rlink/rlink.h \
158
159
	rlink/st7.h \
	minidummy/jtag_minidriver.h
160

161
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in