minidriver: fix inline capability of minidriver
[openocd.git] / src / jtag / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src \
3         -I$(top_builddir)/src
4
5 METASOURCES = AUTO
6 noinst_LTLIBRARIES = libjtag.la
7
8 SUBDIRS =
9 DRIVERFILES =
10 libjtag_la_LIBADD =
11
12 CLEANFILES =
13
14 BUILT_SOURCES =
15
16 BUILT_SOURCES += minidriver_imp.h
17 CLEANFILES += minidriver_imp.h
18
19 if MINIDRIVER
20
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
29
30 MINIDRIVER_IMP_DIR = $(srcdir)/minidriver
31
32 jtag_minidriver.h: $(JTAG_MINIDRIVER_DIR)/jtag_minidriver.h
33         cp $< $@
34
35 BUILT_SOURCES += jtag_minidriver.h
36
37 CLEANFILES += jtag_minidriver.h
38
39 else
40
41 MINIDRIVER_IMP_DIR = $(srcdir)/drivers
42 DRIVERFILES += commands.c
43
44 SUBDIRS += drivers
45 libjtag_la_LIBADD += $(top_builddir)/src/jtag/drivers/libocdjtagdrivers.la
46
47 endif
48
49 # endif // MINIDRIVER
50
51 minidriver_imp.h: $(MINIDRIVER_IMP_DIR)/minidriver_imp.h
52         cp $< $@
53
54
55 libjtag_la_SOURCES = \
56         core.c \
57         interface.c \
58         interfaces.c \
59         tcl.c \
60         $(DRIVERFILES)
61
62 noinst_HEADERS = \
63         commands.h \
64         interface.h \
65         interfaces.h \
66         minidriver.h \
67         jtag.h \
68         minidriver/minidriver_imp.h \
69         minidummy/jtag_minidriver.h
70
71 EXTRA_DIST = startup.tcl
72
73 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in