]> git.sur5r.net Git - openocd/blobdiff - src/helper/Makefile.am
move startup.c to libopenocd
[openocd] / src / helper / Makefile.am
index 93df6058147ccc47af0e5c2239647cb503b626e1..9557f5b2133f9836fbe4160e3b574ed3dc947a8e 100644 (file)
@@ -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,7 +23,7 @@ libhelper_la_SOURCES = \
        time_support.c \
        replacements.c \
        fileio.c \
-       startup_tcl.c
+       membuf.c
 
 if IOUTIL
 libhelper_la_SOURCES += ioutil.c
@@ -41,23 +41,22 @@ noinst_HEADERS = \
        types.h \
        log.h \
        command.h \
+       membuf.h \
        time_support.h \
        replacements.h \
        fileio.h \
        jim.h \
        jim-eventloop.h \
        system.h \
-       startup.tcl \
        bin2char.c
 
-bin2char$(EXEEXT_FOR_BUILD): bin2char.c
-       ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
+BIN2C = bin2char$(EXEEXT_FOR_BUILD)
+
+BUILT_SOURCES = $(BIN2C)
 
-# Convert .tcl to cfile
-startup_tcl.c: startup.tcl bin2char$(EXEEXT_FOR_BUILD)
-       ./bin2char$(EXEEXT_FOR_BUILD) startup_tcl < $(srcdir)/startup.tcl > $@
+$(BIN2C): bin2char.c
+       ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
 
-# add startup_tcl.c to make clean list
-CLEANFILES = startup_tcl.c bin2char$(EXEEXT_FOR_BUILD)
+CLEANFILES = bin2char$(EXEEXT_FOR_BUILD)
 
 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in