- startup.c manually added to clean deps
git-svn-id: svn://svn.berlios.de/openocd/trunk@796
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
AC_LANG_C
AC_PROG_CC
AC_PROG_RANLIB
+AC_PATH_PROG(TCLSH, tclsh)
+
+# quit if we have no tclsh
+if test "x${TCLSH}" = "x"; then
+ AC_MSG_ERROR([no working tclsh found])
+fi
AC_SUBST(WITH_FTD2XX, $with_ftd2xx)
MAINFILE = main.c jim.c
endif
-
openocd_SOURCES = $(MAINFILE) openocd.c startup.c
# set the include path found by configure
# Convert .tcl to .c file
startup.c: $(top_srcdir)/src/startup.tcl Makefile $(top_srcdir)/src/file2c.tcl
- tclsh $(top_srcdir)/src/file2c.tcl $(top_srcdir)/src/startup.tcl startup.c
\ No newline at end of file
+ ${TCLSH} $(top_srcdir)/src/file2c.tcl $(top_srcdir)/src/startup.tcl startup.c
+
+# add startup.c to make clean list
+CLEANFILES = startup.c