A mirror of editline, modified to use plain Make.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
607 B

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
rm *.so* *.a *.o
cc -c $<