2001-01-15 02:28:46 +00:00
|
|
|
#------------------------------------------------------------------------
|
2000-08-05 05:12:50 +00:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
2001-01-15 02:28:46 +00:00
|
|
|
# Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
TARGET = avrprog
|
|
|
|
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
BINDIR = ${PREFIX}/bin
|
|
|
|
|
|
|
|
INSTALL = /usr/bin/install -c -o root -g wheel
|
2000-08-05 05:12:50 +00:00
|
|
|
|
2001-01-15 02:28:46 +00:00
|
|
|
CFLAGS += -Wall --pedantic
|
2000-08-05 05:12:50 +00:00
|
|
|
|
2001-01-15 02:28:46 +00:00
|
|
|
INSTALL_PROGRAM = ${INSTALL} -m 555 -s
|
|
|
|
INSTALL_DATA = ${INSTALL} -m 444
|
|
|
|
INSTALL_MANUAL = ${INSTALL_DATA}
|
2000-08-06 03:53:06 +00:00
|
|
|
|
2000-08-05 05:12:50 +00:00
|
|
|
|
2001-01-15 02:28:46 +00:00
|
|
|
all : $(TARGET)
|
2000-08-05 05:12:50 +00:00
|
|
|
|
2001-01-15 02:28:46 +00:00
|
|
|
$(TARGET) : avrprog.c
|
2001-01-18 03:25:03 +00:00
|
|
|
$(CC) $(CFLAGS) -o $(TARGET) $< -lreadline
|
2000-08-05 05:12:50 +00:00
|
|
|
|
|
|
|
clean :
|
2001-01-15 02:28:46 +00:00
|
|
|
rm -f *~ *.core $(TARGET)
|
2000-08-05 05:12:50 +00:00
|
|
|
|
2001-01-15 02:28:46 +00:00
|
|
|
install : ${BINDIR}/$(TARGET)
|
2000-08-06 03:53:06 +00:00
|
|
|
|
2001-01-15 02:28:46 +00:00
|
|
|
${BINDIR}/$(TARGET) : $(TARGET)
|
|
|
|
${INSTALL_PROGRAM} $(TARGET) ${BINDIR}
|
2000-08-06 03:53:06 +00:00
|
|
|
|