]> git.sur5r.net Git - openocd/blobdiff - src/Makefile.am
- fixed xsvf_add_statemove()
[openocd] / src / Makefile.am
index aa3155062173c0106897d21b0d3bd0c9c77eaec9..d575fbde0e896f49b69069eee7c70c7c87a1c0bc 100644 (file)
@@ -1,5 +1,13 @@
 bin_PROGRAMS = openocd
-openocd_SOURCES = openocd.c
+
+if ECOSBOARD
+MAINFILE = ecosboard.c
+else
+MAINFILE = openocd.c
+endif
+
+
+openocd_SOURCES = $(MAINFILE)
 
 # set the include path found by configure
 INCLUDES = -I$(top_srcdir)/src/helper \
@@ -24,10 +32,10 @@ MINGWLDADD =
 endif
 
 if FT2232_LIBFTDI
-FTDI2232LIB = -lftdi
+FTDI2232LIB = -lftdi -lusb
 else
 if PRESTO_LIBFTDI
-FTDI2232LIB = -lftdi
+FTDI2232LIB = -lftdi -lusb
 else
 FTDI2232LIB =
 endif