summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am14
-rw-r--r--src/flash/flash.c3
-rw-r--r--src/helper/Makefile.am18
-rw-r--r--src/helper/bin2char.c (renamed from src/bin2char.c)0
-rw-r--r--src/helper/jim.c (renamed from src/jim.c)0
-rw-r--r--src/helper/jim.h (renamed from src/jim.h)0
-rw-r--r--src/helper/startup.tcl (renamed from src/startup.tcl)0
-rw-r--r--src/server/tcl_server.c2
8 files changed, 20 insertions, 17 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 75239fcc..793d020a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,10 +3,10 @@ bin_PROGRAMS = openocd
if ECOSBOARD
MAINFILE = ecosboard.c
else
-MAINFILE = main.c jim.c
+MAINFILE = main.c
endif
-openocd_SOURCES = $(MAINFILE) openocd.c startup_tcl.c
+openocd_SOURCES = $(MAINFILE) openocd.c
# set the include path found by configure
INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/helper \
@@ -94,13 +94,3 @@ nobase_dist_pkglib_DATA = \
tcl/mmr_helpers.tcl \
tcl/readable.tcl
-noinst_PROGRAMS = bin2char
-
-bin2char_SOURCES = bin2char.c
-
-# Convert .tcl to cfile
-startup_tcl.c: bin2char startup.tcl
- ./bin2char startup_tcl < $(srcdir)/startup.tcl > startup_tcl.c
-
-# add startup_tcl.c to make clean list
-CLEANFILES = startup_tcl.c
diff --git a/src/flash/flash.c b/src/flash/flash.c
index 900fdbf9..01bc6e70 100644
--- a/src/flash/flash.c
+++ b/src/flash/flash.c
@@ -41,8 +41,7 @@
#include <errno.h>
#include <inttypes.h>
-#include "../jim.h"
-
+#include "jim.h"
extern Jim_Interp *interp;
diff --git a/src/helper/Makefile.am b/src/helper/Makefile.am
index 8a2d472e..2ba0a563 100644
--- a/src/helper/Makefile.am
+++ b/src/helper/Makefile.am
@@ -6,10 +6,24 @@ noinst_LIBRARIES = libhelper.a
if ECOSBOARD
CONFIGFILES =
else
-CONFIGFILES = options.c
+CONFIGFILES = options.c jim.c
endif
libhelper_a_SOURCES = binarybuffer.c $(CONFIGFILES) configuration.c log.c command.c time_support.c \
replacements.c fileio.c
noinst_HEADERS = binarybuffer.h configuration.h types.h log.h command.h \
- time_support.h replacements.h fileio.h
+ time_support.h replacements.h fileio.h \
+ jim.h
+
+libhelper_a_SOURCES += startup_tcl.c
+
+noinst_PROGRAMS = bin2char
+
+bin2char_SOURCES = bin2char.c
+
+# Convert .tcl to cfile
+startup_tcl.c: bin2char startup.tcl
+ ./bin2char startup_tcl < $(srcdir)/startup.tcl > startup_tcl.c
+
+# add startup_tcl.c to make clean list
+CLEANFILES = startup_tcl.c
diff --git a/src/bin2char.c b/src/helper/bin2char.c
index f1c809c8..f1c809c8 100644
--- a/src/bin2char.c
+++ b/src/helper/bin2char.c
diff --git a/src/jim.c b/src/helper/jim.c
index c1434dbb..c1434dbb 100644
--- a/src/jim.c
+++ b/src/helper/jim.c
diff --git a/src/jim.h b/src/helper/jim.h
index 9e9c7dc5..9e9c7dc5 100644
--- a/src/jim.h
+++ b/src/helper/jim.h
diff --git a/src/startup.tcl b/src/helper/startup.tcl
index fc5f9e1a..fc5f9e1a 100644
--- a/src/startup.tcl
+++ b/src/helper/startup.tcl
diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c
index 2771254d..a12442ea 100644
--- a/src/server/tcl_server.c
+++ b/src/server/tcl_server.c
@@ -24,7 +24,7 @@
#include <stdarg.h>
#include "tcl_server.h"
-#include "../jim.h"
+#include "jim.h"
#include "log.h"
#include "command.h"