#
# This Makefile controls a build process of pam_keylogin module for
# Linux-PAM. You should not modify this Makefile (unless you know
# what you are doing!).
#
# Thorsten Kukuk
#

LIBSRC = pam_keylogin.c support.c
LIBOBJ = pam_keylogin.o support.o

CFLAGS = -fPIC -Wall -Wstrict-prototypes -Wwrite-strings -Winline -Wno-parentheses
####################### don't edit below #######################

all: pam_keylogin.so

pam_keylogin.so: $(LIBOBJ)
#	gcc -shared -Wl,-soname,$@ -o $@ $(LIBOBJ) -lc
	$(LD) -x --shared -soname $@ -o $@ $(LIBOBJ) -lc

clean:
	rm -f $(LIBOBJ) core *~ pam_keylogin.so
