Browse Source

Charles Hardin <ckhardin@gmail.com> move jim into helper

git-svn-id: svn://svn.berlios.de/openocd/trunk@822 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.1.0
oharboe 16 years ago
parent
commit
8a14a72f57
8 changed files with 20 additions and 17 deletions
  1. +2
    -12
      src/Makefile.am
  2. +1
    -2
      src/flash/flash.c
  3. +16
    -2
      src/helper/Makefile.am
  4. +0
    -0
      src/helper/bin2char.c
  5. +0
    -0
      src/helper/jim.c
  6. +0
    -0
      src/helper/jim.h
  7. +0
    -0
      src/helper/startup.tcl
  8. +1
    -1
      src/server/tcl_server.c

+ 2
- 12
src/Makefile.am View 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

+ 1
- 2
src/flash/flash.c View File

@@ -41,8 +41,7 @@
#include <errno.h>
#include <inttypes.h>

#include "../jim.h"

#include "jim.h"
extern Jim_Interp *interp;




+ 16
- 2
src/helper/Makefile.am View 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

src/bin2char.c → src/helper/bin2char.c View File


src/jim.c → src/helper/jim.c View File


src/jim.h → src/helper/jim.h View File


src/startup.tcl → src/helper/startup.tcl View File


+ 1
- 1
src/server/tcl_server.c View File

@@ -24,7 +24,7 @@
#include <stdarg.h>
#include "tcl_server.h"

#include "../jim.h"
#include "jim.h"
#include "log.h"
#include "command.h"



Loading…
Cancel
Save