editline/Makefile

31 lines
607 B
Makefile

.POSIX:
PREFIX = /usr
TARGETS = libeditline.so libeditline.so.1 libeditline.so.1.0.2 libeditline.a
all: dynamic static
install: all
install -Dm644 ${TARGETS} ${DESTDIR}/${PREFIX}/lib/
install -Dm644 editline.3 ${DESTDIR}/${PREFIX}/share/man/man3/
install -Dm644 libeditline.pc ${DESTDIR}/${PREFIX}/lib/pkgconfig/
dynamic: object
cc -o libeditline.so -shared *.o
ln -s libeditline.so libeditline.so.1
ln -s libeditline.so libeditline.so.1.0.2
static: object
ar -r *.o
mv a.out libeditline.a
object: complete.o editline.o sysunix.o
clean:
rm *.so* *.a *.o
.SUFFIX:
.c.o:
cc -c $<