6 MAINFILE = main.c jim.c
10 openocd_SOURCES = $(MAINFILE) openocd.c startup.c
12 # set the include path found by configure
13 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/helper \
14 -I$(top_srcdir)/src/jtag -I$(top_srcdir)/src/target -I$(top_srcdir)/src/xsvf -I$(top_srcdir)/src/server \
15 -I$(top_srcdir)/src/flash -I$(top_srcdir)/src/pld $(all_includes)
17 # pass path to prefix path
19 -DPKGLIBDIR=\"$(pkglibdir)\" \
20 -DPKGBLDDATE=\"`date +%F-%R`\" \
21 -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh`\" \
24 # the library search path.
25 openocd_LDFLAGS = $(all_libraries)
26 SUBDIRS = helper jtag xsvf target server flash pld
29 MINGWLDADD = -lwsock32
35 FTDI2232LIB = -lftdi -lusb
38 FTDI2232LIB = -lftdi -lusb
56 FTD2XXLDADD = @WITH_FTD2XX@/FTD2XX.lib
58 FTD2XXLDADD = -lftd2xx
61 FTD2XXLDADD = -lftd2xx
65 FTD2XXLIB = $(FTD2XXLDADD)
68 FTD2XXLIB = $(FTD2XXLDADD)
74 openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a \
75 $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
76 $(top_builddir)/src/helper/libhelper.a \
77 $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
78 $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
79 $(top_builddir)/src/pld/libpld.a \
80 $(FTDI2232LIB) $(FTD2XXLIB) $(MINGWLDADD) $(LIBUSB)
84 nobase_dist_pkglib_DATA = \
86 tcl/chip/atmel/at91/aic.tcl \
87 tcl/chip/atmel/at91/at91sam7x128.tcl \
88 tcl/chip/atmel/at91/at91sam7x256.tcl \
89 tcl/chip/atmel/at91/pmc.tcl \
90 tcl/chip/atmel/at91/rtt.tcl \
91 tcl/chip/atmel/at91/usarts.tcl \
92 tcl/cpu/arm/arm7tdmi.tcl \
93 tcl/cpu/arm/arm920.tcl \
94 tcl/cpu/arm/arm946.tcl \
95 tcl/cpu/arm/arm966.tcl \
100 # Convert .tcl to .c file
101 startup.c: $(top_srcdir)/src/startup.tcl Makefile $(top_srcdir)/src/file2c.tcl
102 tclsh $(top_srcdir)/src/file2c.tcl $(top_srcdir)/src/startup.tcl startup.c