diff --git a/avrdude/Makefile b/avrdude/Makefile index bb47b0f9..a3592405 100644 --- a/avrdude/Makefile +++ b/avrdude/Makefile @@ -1,5 +1,5 @@ # -# avrdude - A Uploader/Downloader for AVR device programmers +# avrdude - A Downloader/Uploader for AVR device programmers # Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean # # This program is free software; you can redistribute it and/or modify @@ -22,7 +22,7 @@ # -TARGET = avrdude +TARGET = avrdude PREFIX ?= /usr/local BINDIR = ${PREFIX}/bin @@ -49,6 +49,8 @@ LIBS = -lreadline YYDEF = -DYYSTYPE="struct token_t *" +SRCS = avr.c config.c fileio.c lists.c main.c pgm.c ppi.c stk500.c term.c + OBJS = config_gram.o avr.o config.o fileio.o lexer.o lists.o main.o pgm.o \ ppi.o stk500.o term.o @@ -68,28 +70,24 @@ install : dirs \ ${CONFIGDIR}/avrdude.conf.sample \ ${CONFIGDIR}/avrdude.conf -config_gram.o : avr.h config.h lists.h pindefs.h +# these dependencies are manual +config_gram.o : config.h lists.h pindefs.h ppi.h pgm.h stk500.h avr.h +lexer.o : config.h y.tab.h lists.h +# these dependencie are generated using 'make depend' avr.o: avr.c avr.h avrpart.h lists.h pgm.h pindefs.h config.h ppi.h - -config.o: config.c avr.h avrpart.h lists.h pgm.h pindefs.h config.h - +config.o: config.c avr.h avrpart.h lists.h pgm.h pindefs.h config.h \ + y.tab.h fileio.o: fileio.c avr.h avrpart.h lists.h pgm.h pindefs.h fileio.h - lists.o: lists.c lists.h - main.o: main.c avr.h avrpart.h lists.h pgm.h pindefs.h config.h fileio.h \ - ppi.h term.h - + ppi.h term.h pgm.o: pgm.c pgm.h avrpart.h lists.h pindefs.h - ppi.o: ppi.c avr.h avrpart.h lists.h pgm.h pindefs.h ppi.h config.h - -stk500.o: stk500.c stk500.h avr.h avrpart.h lists.h pgm.h pindefs.h stk500_private.h - +stk500.o: stk500.c avr.h avrpart.h lists.h pgm.h pindefs.h \ + stk500_private.h term.o: term.c avr.h avrpart.h lists.h pgm.h pindefs.h config.h ppi.h - dirs : @for dir in ${DIRS}; do \ if [ ! -d $$dir ]; then \ @@ -118,3 +116,8 @@ ${CONFIGDIR}/avrdude.conf : avrdude.conf.sample fi ${INSTALL_DATA} avrdude.conf.sample $@ +depend : + @echo Dependency List: + @if [ ! -f y.tab.h ]; then touch y.tab.h; fi + @avr-gcc ${CFLAGS} -MM ${SRCS} + diff --git a/avrdude/avr.c b/avrdude/avr.c index 61603a01..20df82a6 100644 --- a/avrdude/avr.c +++ b/avrdude/avr.c @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/avr.h b/avrdude/avr.h index 8c7f8887..ecd39e64 100644 --- a/avrdude/avr.h +++ b/avrdude/avr.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/avrdude.1 b/avrdude/avrdude.1 index f94ae1c5..842bc7f7 100644 --- a/avrdude/avrdude.1 +++ b/avrdude/avrdude.1 @@ -1,5 +1,5 @@ .\" -.\" avrdude - A Uploader/Downloader for AVR device programmers +.\" avrdude - A Downloader/Uploader for AVR device programmers .\" Copyright (C) 2001, 2002, 2003 Joerg Wunsch .\" .\" This program is free software; you can redistribute it and/or modify diff --git a/avrdude/avrpart.h b/avrdude/avrpart.h index a277b843..c53ee598 100644 --- a/avrdude/avrpart.h +++ b/avrdude/avrpart.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/config.c b/avrdude/config.c index 0943ce06..0d643754 100644 --- a/avrdude/config.c +++ b/avrdude/config.c @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/config.h b/avrdude/config.h index 5ceb0a6a..590ada5e 100644 --- a/avrdude/config.h +++ b/avrdude/config.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/config_gram.y b/avrdude/config_gram.y index 86e9bec7..46399564 100644 --- a/avrdude/config_gram.y +++ b/avrdude/config_gram.y @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/fileio.c b/avrdude/fileio.c index 6014b237..cf991cfc 100644 --- a/avrdude/fileio.c +++ b/avrdude/fileio.c @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/fileio.h b/avrdude/fileio.h index 2753780d..9f020b87 100644 --- a/avrdude/fileio.h +++ b/avrdude/fileio.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/lexer.l b/avrdude/lexer.l index 6c4b75d4..14de582c 100644 --- a/avrdude/lexer.l +++ b/avrdude/lexer.l @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/lists.c b/avrdude/lists.c index 071bfcee..e2f0592a 100644 --- a/avrdude/lists.c +++ b/avrdude/lists.c @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, * 1998, 1999, 2000, 2001, 2002, 2003 Brian S. Dean * diff --git a/avrdude/lists.h b/avrdude/lists.h index 57fddf01..20be40d1 100644 --- a/avrdude/lists.h +++ b/avrdude/lists.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, * 1998, 1999, 2000, 2001, 2002, 2003 Brian S. Dean * diff --git a/avrdude/main.c b/avrdude/main.c index 19c0ad54..bf132778 100644 --- a/avrdude/main.c +++ b/avrdude/main.c @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/pgm.c b/avrdude/pgm.c index 3b2bcf08..7fcf706b 100644 --- a/avrdude/pgm.c +++ b/avrdude/pgm.c @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/pgm.h b/avrdude/pgm.h index 4d0a7c97..ea47f5e3 100644 --- a/avrdude/pgm.h +++ b/avrdude/pgm.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/pindefs.h b/avrdude/pindefs.h index 689a777d..40307089 100644 --- a/avrdude/pindefs.h +++ b/avrdude/pindefs.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/ppi.c b/avrdude/ppi.c index 96c7ed19..7d93d874 100644 --- a/avrdude/ppi.c +++ b/avrdude/ppi.c @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/ppi.h b/avrdude/ppi.h index da9385ed..7b0571c0 100644 --- a/avrdude/ppi.h +++ b/avrdude/ppi.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/stk500.c b/avrdude/stk500.c index beb0faab..07ac91f6 100644 --- a/avrdude/stk500.c +++ b/avrdude/stk500.c @@ -1,6 +1,6 @@ /* + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2002, 2003 Brian S. Dean - * avrdude - A Uploader/Downloader for AVR device programmers * * 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 diff --git a/avrdude/stk500.h b/avrdude/stk500.h index 5d1dc5b6..222fe666 100644 --- a/avrdude/stk500.h +++ b/avrdude/stk500.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/term.c b/avrdude/term.c index 2eb5ca14..bb4110ca 100644 --- a/avrdude/term.c +++ b/avrdude/term.c @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify diff --git a/avrdude/term.h b/avrdude/term.h index 3cc04685..6148635a 100644 --- a/avrdude/term.h +++ b/avrdude/term.h @@ -1,5 +1,5 @@ /* - * avrdude - A Uploader/Downloader for AVR device programmers + * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean * * This program is free software; you can redistribute it and/or modify