More robust handling of unknown target state for step/continue packet.
[fw/openocd] / src / Makefile.am
index 6e72a61228462f1cc7f6a36f66b76c3c25ac1f6f..aa7b19f24791d85465ca72aa0dd0342a72a69147 100644 (file)
@@ -1,11 +1,26 @@
 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 \
        -I$(top_srcdir)/src/jtag -I$(top_srcdir)/src/target -I$(top_srcdir)/src/xsvf -I$(top_srcdir)/src/server \
        -I$(top_srcdir)/src/flash -I$(top_srcdir)/src/pld $(all_includes)
 
+# pass path to prefix path
+openocd_CPPFLAGS = \
+ -DPKGLIBDIR=\"$(pkglibdir)\" \
+ -DPKGBLDDATE=\"`date +%F-%R`\" \
+ -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh`\" \
+ @CPPFLAGS@
+
 # the library search path.
 openocd_LDFLAGS = $(all_libraries) 
 SUBDIRS = helper jtag xsvf target server flash pld
@@ -21,9 +36,10 @@ FTDI2232LIB = -lftdi
 else
 if PRESTO_LIBFTDI
 FTDI2232LIB = -lftdi
-endif
+else
 FTDI2232LIB =
 endif
+endif
 
 if USBPROG
 LIBUSB = -lusb