9 openocd_SOURCES = $(MAINFILE) openocd.c
11 # set the include path found by configure
12 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/helper \
13 -I$(top_srcdir)/src/jtag -I$(top_srcdir)/src/target -I$(top_srcdir)/src/xsvf -I$(top_srcdir)/src/svf \
14 -I$(top_srcdir)/src/server -I$(top_srcdir)/src/flash -I$(top_srcdir)/src/pld $(all_includes)
16 # pass path to prefix path
18 -DPKGLIBDIR=\"$(pkglibdir)\" \
19 -DPKGBLDDATE=\"`date +%F-%R`\"
22 openocd_CPPFLAGS += -DRELSTR=\"Release\" -DPKGBLDREV=\"\"
24 openocd_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh`\"
27 # add default CPPFLAGS
28 openocd_CPPFLAGS += @CPPFLAGS@
30 # the library search path.
31 openocd_LDFLAGS = $(all_libraries)
32 SUBDIRS = helper jtag xsvf svf target server flash pld
35 MINGWLDADD = -lwsock32
41 FTDI2232LIB = -lftdi -lusb
44 FTDI2232LIB = -lftdi -lusb
68 openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a $(top_builddir)/src/svf/libsvf.a \
69 $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
70 $(top_builddir)/src/helper/libhelper.a \
71 $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
72 $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
73 $(top_builddir)/src/pld/libpld.a \
74 $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
77 openocd_LDADD += -lmicrohttpd
80 nobase_dist_pkglib_DATA = \
82 tcl/chip/atmel/at91/aic.tcl \
83 tcl/chip/atmel/at91/at91sam7x128.tcl \
84 tcl/chip/atmel/at91/at91sam7x256.tcl \
85 tcl/chip/atmel/at91/pmc.tcl \
86 tcl/chip/atmel/at91/rtt.tcl \
87 tcl/chip/atmel/at91/usarts.tcl \
88 tcl/chip/st/stm32/stm32.tcl \
89 tcl/chip/st/stm32/stm32_rcc.tcl \
90 tcl/chip/st/stm32/stm32_regs.tcl \
91 tcl/cpu/arm/arm7tdmi.tcl \
92 tcl/cpu/arm/arm920.tcl \
93 tcl/cpu/arm/arm946.tcl \
94 tcl/cpu/arm/arm966.tcl \
95 tcl/cpu/arm/cortex_m3.tcl \
100 MAINTAINERCLEANFILES = Makefile.in