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.
 
 
 
editline/Makefile

30 lines
607 B

.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 $<