mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 06:55:27 +00:00
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@38 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user