X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fhelper%2FMakefile.am;h=67250a18d288aab5aac0108f7576336be82f6c3f;hb=82fc2f9628e0f1dbd9010e0146ff63832e4a77a1;hp=15a27c3af27746380698d432b918923d51c5f193;hpb=e8e0af395649b4b74786653256d5272f4689bc16;p=openocd.git diff --git a/src/helper/Makefile.am b/src/helper/Makefile.am index 15a27c3af2..67250a18d2 100644 --- a/src/helper/Makefile.am +++ b/src/helper/Makefile.am @@ -7,9 +7,9 @@ METASOURCES = AUTO noinst_LTLIBRARIES = libhelper.la if ECOSBOARD -CONFIGFILES = +CONFIGFILES = else -CONFIGFILES = options.c jim.c jim-eventloop.c +CONFIGFILES = options.c jim.c jim-eventloop.c endif @@ -23,6 +23,7 @@ libhelper_la_SOURCES = \ time_support.c \ replacements.c \ fileio.c \ + membuf.c \ startup_tcl.c if IOUTIL @@ -41,6 +42,7 @@ noinst_HEADERS = \ types.h \ log.h \ command.h \ + membuf.h \ time_support.h \ replacements.h \ fileio.h \ @@ -50,14 +52,18 @@ noinst_HEADERS = \ startup.tcl \ bin2char.c -bin2char$(EXEEXT_FOR_BUILD): bin2char.c +BIN2C = bin2char$(EXEEXT_FOR_BUILD) + +BUILT_SOURCES = $(BIN2C) + +$(BIN2C): bin2char.c ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@ # Convert .tcl to cfile -startup_tcl.c: startup.tcl bin2char$(EXEEXT_FOR_BUILD) - ./bin2char$(EXEEXT_FOR_BUILD) startup_tcl < $(srcdir)/startup.tcl > $@ +startup_tcl.c: startup.tcl $(BIN2C) + ./$(BIN2C) startup_tcl < $(srcdir)/startup.tcl > $@ # add startup_tcl.c to make clean list CLEANFILES = startup_tcl.c bin2char$(EXEEXT_FOR_BUILD) -MAINTAINERCLEANFILES = Makefile.in +MAINTAINERCLEANFILES = $(srcdir)/Makefile.in