Charles Hardin <ckhardin@gmail.com> move jim into helper
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 17 Jul 2008 17:34:53 +0000 (17:34 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 17 Jul 2008 17:34:53 +0000 (17:34 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@822 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/Makefile.am
src/flash/flash.c
src/helper/Makefile.am
src/helper/bin2char.c [moved from src/bin2char.c with 100% similarity]
src/helper/jim.c [moved from src/jim.c with 100% similarity]
src/helper/jim.h [moved from src/jim.h with 100% similarity]
src/helper/startup.tcl [moved from src/startup.tcl with 100% similarity]
src/server/tcl_server.c

index 75239fc..793d020 100644 (file)
@@ -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
index 900fdbf..01bc6e7 100644 (file)
@@ -41,8 +41,7 @@
 #include <errno.h>
 #include <inttypes.h>
 
-#include "../jim.h"
-
+#include "jim.h"
 extern Jim_Interp *interp;
 
 
index 8a2d472..2ba0a56 100644 (file)
@@ -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
similarity index 100%
rename from src/bin2char.c
rename to src/helper/bin2char.c
similarity index 100%
rename from src/jim.c
rename to src/helper/jim.c
similarity index 100%
rename from src/jim.h
rename to src/helper/jim.h
similarity index 100%
rename from src/startup.tcl
rename to src/helper/startup.tcl
index 2771254..a12442e 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdarg.h>
 #include "tcl_server.h"
 
-#include "../jim.h"
+#include "jim.h"
 #include "log.h"
 #include "command.h"