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:
parent
4cfc877c63
commit
2c651eb7bf
29
Makefile
29
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 <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
2
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 <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
2
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 <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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
2
config.c
2
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 <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
config.h
2
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 <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
|
||||||
|
|
|
@ -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
fileio.c
2
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 <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
fileio.h
2
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 <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
lexer.l
2
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 <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
lists.c
2
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,
|
* 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
lists.h
2
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,
|
* 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
2
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 <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
2
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 <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
2
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 <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
|
||||||
|
|
|
@ -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
2
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 <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
2
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 <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
stk500.c
2
stk500.c
|
@ -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
|
||||||
|
|
2
stk500.h
2
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 <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
2
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 <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
2
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 <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
|
||||||
|
|
Loading…
Reference in New Issue