X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2FMakefile.am;h=aa7b19f24791d85465ca72aa0dd0342a72a69147;hb=a7d3a4a7f8a0def61ed3caa7fb461b82b2d6ade1;hp=512aade46026eca2dd39b8c06735970d837802d1;hpb=708535960c13fcb7bbd5d07abc871c5832f53aa2;p=openocd diff --git a/src/Makefile.am b/src/Makefile.am index 512aade4..aa7b19f2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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