- prepare OpenOCD for branching, created ./trunk/
[fw/openocd] / src / Makefile.am
1 bin_PROGRAMS = openocd
2 openocd_SOURCES = openocd.c
3
4 # set the include path found by configure
5 INCLUDES = -I$(top_srcdir)/src/helper \
6         -I$(top_srcdir)/src/jtag -I$(top_srcdir)/src/target -I$(top_srcdir)/src/xsvf -I$(top_srcdir)/src/server \
7         -I$(top_srcdir)/src/flash $(all_includes)
8
9 # the library search path.
10 openocd_LDFLAGS = $(all_libraries) 
11 SUBDIRS = helper jtag xsvf target server flash
12
13 if FTDI2232
14 FTDI2232LIB = -lftdi
15 else
16 FTDI2232LIB =
17 endif
18
19 if IS_CYGWIN
20 if FTD2XXDIR
21 FTD2XXLDADD = @WITH_FTD2XX@/FTD2XX.lib
22 else
23 FTD2XXLDADD = -lftd2xx
24 endif
25 else
26 FTD2XXLDADD = -lftd2xx 
27 endif
28   
29 if FTD2XX
30 FTD2XXLIB = $(FTD2XXLDADD)
31 else
32 FTD2XXLIB =
33 endif
34
35 openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a \
36         $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
37         $(top_builddir)/src/helper/libhelper.a \
38         $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
39         $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
40         $(FTDI2232LIB) $(FTD2XXLIB)