Files
avrdude/Makefile
bsd b211c95bfe 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
2001-01-19 02:46:50 +00:00

45 lines
801 B
Makefile

#------------------------------------------------------------------------
#
# $Id$
#
TARGET = avrprog
PREFIX ?= /usr/local
BINDIR = ${PREFIX}/bin
INSTALL = /usr/bin/install -c -o root -g wheel
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) : $(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) *.o
install : ${BINDIR}/$(TARGET)
${BINDIR}/$(TARGET) : $(TARGET)
${INSTALL_PROGRAM} $(TARGET) ${BINDIR}