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.

31 lines
607 B

PREFIX = /usr
TARGETS = 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 -shared *.o
ln -s
ln -s
static: object
ar -r *.o
mv a.out libeditline.a
object: complete.o editline.o sysunix.o
rm *.so* *.a *.o
cc -c $<