2003-02-14 20:34:03 +00:00
|
|
|
#
|
|
|
|
# avrdude - A Downloader/Uploader for AVR device programmers
|
2004-01-26 06:27:41 +00:00
|
|
|
# Copyright (C) 2003, 2004 Theodore A. Roth <troth@openavr.org>
|
2003-02-14 20:34:03 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2003-02-27 06:56:03 +00:00
|
|
|
EXTRA_DIST = \
|
2006-01-12 23:13:50 +00:00
|
|
|
ChangeLog \
|
2003-03-11 22:34:53 +00:00
|
|
|
ChangeLog-2001 \
|
|
|
|
ChangeLog-2002 \
|
2004-01-26 06:27:41 +00:00
|
|
|
ChangeLog-2003 \
|
2007-06-27 20:44:25 +00:00
|
|
|
ChangeLog-2004-2006 \
|
2010-02-11 16:15:56 +00:00
|
|
|
ChangeLog-2007 \
|
|
|
|
ChangeLog-2008 \
|
|
|
|
ChangeLog-2009 \
|
2003-02-27 06:56:03 +00:00
|
|
|
avrdude.1 \
|
|
|
|
avrdude.spec \
|
|
|
|
bootstrap
|
2003-02-14 22:19:42 +00:00
|
|
|
|
2003-03-12 02:09:57 +00:00
|
|
|
CLEANFILES = \
|
|
|
|
config_gram.c \
|
|
|
|
config_gram.h \
|
|
|
|
lexer.c
|
|
|
|
|
2005-02-10 14:54:57 +00:00
|
|
|
#SUBDIRS = doc @WINDOWS_DIRS@
|
|
|
|
#DIST_SUBDIRS = doc windows
|
|
|
|
|
|
|
|
SUBDIRS = @SUBDIRS_AC@
|
2008-07-25 21:06:55 +00:00
|
|
|
SUBDIRS += @WINDOWS_DIRS@
|
2005-02-10 14:54:57 +00:00
|
|
|
DIST_SUBDIRS = @DIST_SUBDIRS_AC@
|
2003-02-26 00:14:54 +00:00
|
|
|
|
2003-02-14 20:34:03 +00:00
|
|
|
AM_YFLAGS = -d
|
|
|
|
|
2003-09-05 04:23:27 +00:00
|
|
|
avrdude_CPPFLAGS = -DCONFIG_DIR=\"$(sysconfdir)\"
|
|
|
|
|
2007-01-25 20:51:11 +00:00
|
|
|
libavrdude_a_CPPFLAGS = -DCONFIG_DIR=\"$(sysconfdir)\"
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2007-01-25 20:51:11 +00:00
|
|
|
avrdude_CFLAGS = @ENABLE_WARNINGS@
|
|
|
|
|
2009-11-04 23:42:16 +00:00
|
|
|
libavrdude_a_CFLAGS = @ENABLE_WARNINGS@
|
2007-01-25 20:51:11 +00:00
|
|
|
|
2010-02-11 16:15:56 +00:00
|
|
|
avrdude_LDADD = $(top_builddir)/$(noinst_LIBRARIES) @LIBUSB@ @LIBFTDI@ @LIBHID@ -lm
|
2006-08-11 16:00:12 +00:00
|
|
|
|
2003-02-14 20:34:03 +00:00
|
|
|
bin_PROGRAMS = avrdude
|
|
|
|
|
2007-01-25 20:51:11 +00:00
|
|
|
noinst_LIBRARIES = libavrdude.a
|
|
|
|
|
2006-08-18 20:10:20 +00:00
|
|
|
# automake thinks these generated files should be in the distribution,
|
|
|
|
# but this might cause trouble for some users, so we rather don't want
|
|
|
|
# to have them there.
|
|
|
|
#
|
|
|
|
# See
|
|
|
|
#
|
|
|
|
# https://savannah.nongnu.org/bugs/index.php?func=detailitem&item_id=15536
|
|
|
|
#
|
|
|
|
# for why we don't want to have them.
|
|
|
|
dist-hook:
|
|
|
|
rm -f \
|
|
|
|
$(distdir)/lexer.c \
|
|
|
|
$(distdir)/config_gram.c \
|
|
|
|
$(distdir)/config_gram.h
|
|
|
|
|
2007-01-25 20:51:11 +00:00
|
|
|
libavrdude_a_SOURCES = \
|
2003-02-14 20:34:03 +00:00
|
|
|
config_gram.y \
|
|
|
|
lexer.l \
|
2009-02-25 09:39:04 +00:00
|
|
|
arduino.h \
|
|
|
|
arduino.c \
|
2003-02-14 20:34:03 +00:00
|
|
|
avr.c \
|
|
|
|
avr.h \
|
2003-03-13 03:52:19 +00:00
|
|
|
avr910.c \
|
|
|
|
avr910.h \
|
2007-01-24 21:07:54 +00:00
|
|
|
avrdude.h \
|
2010-02-11 16:15:56 +00:00
|
|
|
avrftdi.c \
|
|
|
|
avrftdi.h \
|
2003-11-30 16:42:10 +00:00
|
|
|
avrpart.c \
|
2003-02-14 20:34:03 +00:00
|
|
|
avrpart.h \
|
2005-09-18 20:12:23 +00:00
|
|
|
bitbang.c \
|
|
|
|
bitbang.h \
|
2009-10-08 02:05:03 +00:00
|
|
|
buspirate.c \
|
|
|
|
buspirate.h \
|
2003-11-30 15:16:48 +00:00
|
|
|
butterfly.c \
|
|
|
|
butterfly.h \
|
2003-02-14 20:34:03 +00:00
|
|
|
config.c \
|
|
|
|
config.h \
|
2003-02-24 23:13:55 +00:00
|
|
|
confwin.c \
|
|
|
|
confwin.h \
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
crc16.c \
|
|
|
|
crc16.h \
|
2003-02-14 20:34:03 +00:00
|
|
|
fileio.c \
|
|
|
|
fileio.h \
|
2006-01-12 23:13:50 +00:00
|
|
|
freebsd_ppi.h \
|
2005-11-25 06:14:06 +00:00
|
|
|
jtagmkI.c \
|
|
|
|
jtagmkI.h \
|
|
|
|
jtagmkI_private.h \
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
jtagmkII.c \
|
|
|
|
jtagmkII.h \
|
|
|
|
jtagmkII_private.h \
|
2003-02-14 20:34:03 +00:00
|
|
|
linux_ppdev.h \
|
|
|
|
lists.c \
|
|
|
|
lists.h \
|
2006-12-20 23:43:34 +00:00
|
|
|
my_ddk_hidsdi.h \
|
2003-02-14 20:34:03 +00:00
|
|
|
par.c \
|
|
|
|
par.h \
|
|
|
|
pgm.c \
|
|
|
|
pgm.h \
|
|
|
|
pindefs.h \
|
|
|
|
ppi.c \
|
|
|
|
ppi.h \
|
2003-02-20 18:18:39 +00:00
|
|
|
ppiwin.c \
|
2005-01-24 21:26:12 +00:00
|
|
|
safemode.c \
|
|
|
|
safemode.h \
|
2003-03-13 03:52:19 +00:00
|
|
|
serial.h \
|
2005-09-18 20:12:23 +00:00
|
|
|
serbb.h \
|
|
|
|
serbb_posix.c \
|
|
|
|
serbb_win32.c \
|
2006-12-20 23:43:34 +00:00
|
|
|
ser_avrdoper.c \
|
2003-03-13 03:52:19 +00:00
|
|
|
ser_posix.c \
|
|
|
|
ser_win32.c \
|
2006-01-12 23:13:50 +00:00
|
|
|
solaris_ecpp.h \
|
2003-02-14 20:34:03 +00:00
|
|
|
stk500.c \
|
|
|
|
stk500.h \
|
|
|
|
stk500_private.h \
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
stk500v2.c \
|
|
|
|
stk500v2.h \
|
|
|
|
stk500v2_private.h \
|
2006-09-19 22:27:30 +00:00
|
|
|
stk500generic.c \
|
|
|
|
stk500generic.h \
|
2006-09-10 20:41:00 +00:00
|
|
|
usbasp.c \
|
|
|
|
usbasp.h \
|
2006-01-12 23:13:50 +00:00
|
|
|
usbdevs.h \
|
2007-01-24 22:43:46 +00:00
|
|
|
usb_libusb.c \
|
2007-10-29 18:03:02 +00:00
|
|
|
usbtiny.h \
|
|
|
|
usbtiny.c \
|
2007-01-24 22:43:46 +00:00
|
|
|
update.h \
|
|
|
|
update.c
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2007-01-25 20:51:11 +00:00
|
|
|
avrdude_SOURCES = \
|
2009-02-25 08:00:14 +00:00
|
|
|
main.c \
|
|
|
|
term.c \
|
|
|
|
term.h
|
2007-01-25 20:51:11 +00:00
|
|
|
|
2003-02-14 20:34:03 +00:00
|
|
|
man_MANS = avrdude.1
|
|
|
|
|
|
|
|
sysconf_DATA = avrdude.conf
|
|
|
|
|
2003-02-25 00:57:27 +00:00
|
|
|
install-exec-local: backup-avrdude-conf
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2005-11-01 23:02:06 +00:00
|
|
|
distclean-local:
|
|
|
|
rm -f avrdude.conf
|
|
|
|
|
2003-02-25 00:57:27 +00:00
|
|
|
# This will get run before the config file is installed.
|
|
|
|
backup-avrdude-conf:
|
|
|
|
@echo "Backing up avrdude.conf in ${DESTDIR}${sysconfdir}"
|
|
|
|
@if test -e ${DESTDIR}${sysconfdir}/avrdude.conf; then \
|
|
|
|
cp -pR ${DESTDIR}${sysconfdir}/avrdude.conf \
|
|
|
|
${DESTDIR}${sysconfdir}/avrdude.conf.bak; \
|
|
|
|
fi
|