Makefile: include a target to automatically generate the dependency

list.

All others


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@177 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean 2003-02-08 04:17:25 +00:00
parent 571abe6351
commit ee8bf2d5fc
23 changed files with 40 additions and 37 deletions

View File

@ -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 <bsd@bsdhome.com> # Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
@ -49,6 +49,8 @@ LIBS = -lreadline
YYDEF = -DYYSTYPE="struct token_t *" 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 \ OBJS = config_gram.o avr.o config.o fileio.o lexer.o lists.o main.o pgm.o \
ppi.o stk500.o term.o ppi.o stk500.o term.o
@ -68,28 +70,24 @@ install : dirs \
${CONFIGDIR}/avrdude.conf.sample \ ${CONFIGDIR}/avrdude.conf.sample \
${CONFIGDIR}/avrdude.conf ${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 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 fileio.o: fileio.c avr.h avrpart.h lists.h pgm.h pindefs.h fileio.h
lists.o: lists.c lists.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 \ 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 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 ppi.o: ppi.c avr.h avrpart.h lists.h pgm.h pindefs.h ppi.h config.h
stk500.o: stk500.c avr.h avrpart.h lists.h pgm.h pindefs.h \
stk500.o: stk500.c stk500.h avr.h avrpart.h lists.h pgm.h pindefs.h stk500_private.h stk500_private.h
term.o: term.c avr.h avrpart.h lists.h pgm.h pindefs.h config.h ppi.h term.o: term.c avr.h avrpart.h lists.h pgm.h pindefs.h config.h ppi.h
dirs : dirs :
@for dir in ${DIRS}; do \ @for dir in ${DIRS}; do \
if [ ! -d $$dir ]; then \ if [ ! -d $$dir ]; then \
@ -118,3 +116,8 @@ ${CONFIGDIR}/avrdude.conf : avrdude.conf.sample
fi fi
${INSTALL_DATA} avrdude.conf.sample $@ ${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}

2
avr.c
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

2
avr.h
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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 .\" Copyright (C) 2001, 2002, 2003 Joerg Wunsch
.\" .\"
.\" This program is free software; you can redistribute it and/or modify .\" This program is free software; you can redistribute it and/or modify

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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, * Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
* 1998, 1999, 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com> * 1998, 1999, 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *

View File

@ -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, * Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
* 1998, 1999, 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com> * 1998, 1999, 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *

2
main.c
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

2
pgm.c
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

2
pgm.h
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

2
ppi.c
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

2
ppi.h
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* /*
* avrdude - A Downloader/Uploader for AVR device programmers
* Copyright (C) 2002, 2003 Brian S. Dean <bsd@bsdhome.com> * Copyright (C) 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* avrdude - A Uploader/Downloader for AVR device programmers
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by

View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

2
term.c
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify

2
term.h
View File

@ -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 <bsd@bsdhome.com> * Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify