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 = \
|
2003-03-11 22:34:53 +00:00
|
|
|
ChangeLog-2001 \
|
|
|
|
ChangeLog-2002 \
|
2004-01-26 06:27:41 +00:00
|
|
|
ChangeLog-2003 \
|
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
|
|
|
|
|
2003-03-03 01:09:52 +00:00
|
|
|
SUBDIRS = doc @WINDOWS_DIRS@
|
|
|
|
DIST_SUBDIRS = doc windows
|
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)\"
|
|
|
|
|
|
|
|
avrdude_CFLAGS = @ENABLE_WARNINGS@
|
2003-02-14 20:34:03 +00:00
|
|
|
|
|
|
|
bin_PROGRAMS = avrdude
|
|
|
|
|
|
|
|
avrdude_SOURCES = \
|
|
|
|
config_gram.y \
|
|
|
|
lexer.l \
|
|
|
|
avr.c \
|
|
|
|
avr.h \
|
2003-03-13 03:52:19 +00:00
|
|
|
avr910.c \
|
|
|
|
avr910.h \
|
2003-11-30 16:42:10 +00:00
|
|
|
avrpart.c \
|
2003-02-14 20:34:03 +00:00
|
|
|
avrpart.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 \
|
2003-02-14 20:34:03 +00:00
|
|
|
fileio.c \
|
|
|
|
fileio.h \
|
|
|
|
linux_ppdev.h \
|
|
|
|
lists.c \
|
|
|
|
lists.h \
|
|
|
|
main.c \
|
|
|
|
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 \
|
|
|
|
ser_posix.c \
|
|
|
|
ser_win32.c \
|
2003-02-14 20:34:03 +00:00
|
|
|
stk500.c \
|
|
|
|
stk500.h \
|
|
|
|
stk500_private.h \
|
|
|
|
term.c \
|
|
|
|
term.h
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|