SHELL = /bin/sh SONAME = libmd5crypt.so.1 CC = gcc CFLAGS = -D__USE_GNU -fPIC -O2 -Wall DEST_DIR = /lib LIBOBJS = crypt.o crypt_md5.o md5.o all: $(SONAME) $(SONAME): $(LIBOBJS) $(CC) -shared -Wl,-soname,$(SONAME) $(LIBOBJS) -ldl -o $@ install: all install -s -m755 $(SONAME) $(DEST_DIR)/ @echo "Please add $(DEST_DIR)/$(SONAME) to /etc/ld.so.preload and run ldconfig." clean: -rm -f core libmd5crypt.so $(LIBOBJS)