The program was getting too large for a single file. Split it up into

more modular pieces.

Also, accept command abbreviations as long as they are not ambiguous.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@38 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
bsd
2001-01-19 02:46:50 +00:00
parent ea1ecceabe
commit b211c95bfe
11 changed files with 2865 additions and 2467 deletions

View File

@@ -2,8 +2,7 @@
#
# $Id$
#
# Makefile
#
TARGET = avrprog
@@ -12,20 +11,31 @@ BINDIR = ${PREFIX}/bin
INSTALL = /usr/bin/install -c -o root -g wheel
CFLAGS += -Wall --pedantic
CFLAGS += -Wall --pedantic
LDFLAGS =
INSTALL_PROGRAM = ${INSTALL} -m 555 -s
INSTALL_DATA = ${INSTALL} -m 444
INSTALL_MANUAL = ${INSTALL_DATA}
OBJS = avr.o fileio.o main.o ppi.o term.o
LIBS = -lreadline
all : $(TARGET)
$(TARGET) : avrprog.c
$(CC) $(CFLAGS) -o $(TARGET) $< -lreadline
$(TARGET) : $(OBJS)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
main.o : avr.h fileio.h ppi.h term.h
avr.o : avr.h ppi.h
fileio.o : fileio.h avr.h
ppi.o : ppi.h
term.o : term.h avr.h
clean :
rm -f *~ *.core $(TARGET)
rm -f *~ *.core $(TARGET) *.o
install : ${BINDIR}/$(TARGET)