diff --git a/configure.in b/configure.in index fd2584bbf..d61e7fe51 100644 --- a/configure.in +++ b/configure.in @@ -65,6 +65,10 @@ case "${host_cpu}" in ;; esac +AC_ARG_ENABLE(ngw100, + AS_HELP_STRING([--enable-ngw100], [Enable building for NGW100 driver]), + [build_ngw100=$enableval], [build_ngw100=no]) + AC_ARG_ENABLE(gw16012, AS_HELP_STRING([--enable-gw16012], [Enable building support for the Gateworks GW16012 JTAG Programmer]), [build_gw16012=$enableval], [build_gw16012=no]) @@ -148,6 +152,13 @@ else AC_DEFINE(BUILD_AT91RM9200, 0, [0 if you don't want at91rm9200.]) fi +if test $build_ngw100 = yes; then + build_bitbang=yes + AC_DEFINE(BUILD_NGW100, 1, [1 if you want ngw100.]) +else + AC_DEFINE(BUILD_NGW100, 0, [0 if you don't want ngw100.]) +fi + if test $parport_use_ppdev = yes; then AC_DEFINE(PARPORT_USE_PPDEV, 1, [1 if you want parport to use ppdev.]) else @@ -229,6 +240,7 @@ AM_CONDITIONAL(PARPORT, test $build_parport = yes) AM_CONDITIONAL(GIVEIO, test $parport_use_giveio = yes) AM_CONDITIONAL(EP93XX, test $build_ep93xx = yes) AM_CONDITIONAL(AT91RM9200, test $build_at91rm9200 = yes) +AM_CONDITIONAL(NGW100, test $build_ngw100 = yes) AM_CONDITIONAL(BITBANG, test $build_bitbang = yes) AM_CONDITIONAL(FT2232_LIBFTDI, test $build_ft2232_libftdi = yes) AM_CONDITIONAL(FT2232_FTD2XX, test $build_ft2232_ftd2xx = yes) diff --git a/src/jtag/Makefile.am b/src/jtag/Makefile.am index a35e3f3f1..705f25a61 100644 --- a/src/jtag/Makefile.am +++ b/src/jtag/Makefile.am @@ -81,7 +81,13 @@ else USBPROGFILES = endif +if NGW100 +NGW100FILES = ngw100.c +else +NGW100FILES = +endif + libjtag_a_SOURCES = jtag.c $(BITBANGFILES) $(PARPORTFILES) $(FT2232FILES) $(AMTJTAGACCELFILES) $(EP93XXFILES) \ - $(AT91RM9200FILES) $(GW16012FILES) $(BITQFILES) $(PRESTOFILES) $(USBPROGFILES) + $(AT91RM9200FILES) $(GW16012FILES) $(BITQFILES) $(PRESTOFILES) $(USBPROGFILES) $(NGW100FILES) noinst_HEADERS = bitbang.h jtag.h diff --git a/src/jtag/ngw100.c b/src/jtag/ngw100.c new file mode 100644 index 000000000..74abc0cce --- /dev/null +++ b/src/jtag/ngw100.c @@ -0,0 +1,28 @@ +/*************************************************************************** + * Copyright (C) 2008 by Michael Fischer * + * fischermi@t-online.de * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + + +/* EOF */ + + +