From e7bcbd45289f6a0e7fd5445c928f72162f5749d3 Mon Sep 17 00:00:00 2001 From: Charl Botha Date: Tue, 17 Apr 2001 21:16:12 +0000 Subject: Updated for Linux-PAM-0.75. Released 0.7. --- Makefile | 82 ++++------------------------------------------------------------ 1 file changed, 5 insertions(+), 77 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 735458d..c0e2805 100644 --- a/Makefile +++ b/Makefile @@ -1,86 +1,14 @@ -# $Id: Makefile,v 1.1.1.1 1999-08-05 13:09:07 cpbotha Exp $ +# $Id: Makefile,v 1.2 2001-04-17 21:16:12 cpbotha Exp $ # # This Makefile controls a build process of $(TITLE) module for # Linux-PAM. You should not modify this Makefile (unless you know # what you are doing!). # -TITLE=pam_pwdfile - -# - -LIBSRC = $(TITLE).c -LIBOBJ = $(TITLE).o -LDLIBS = -lcrypt -LIBOBJD = $(addprefix dynamic/,$(LIBOBJ)) -LIBOBJS = $(addprefix static/,$(LIBOBJ)) - -dynamic/%.o : %.c - $(CC) $(CFLAGS) $(DYNAMIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@ - -static/%.o : %.c - $(CC) $(CFLAGS) $(STATIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@ - - -ifdef DYNAMIC -LIBSHARED = $(TITLE).so -endif - -ifdef STATIC -LIBSTATIC = lib$(TITLE).o -endif - -####################### don't edit below ####################### - -dummy: - - @echo "**** This is not a top-level Makefile " - exit +include ../../Make.Rules -all: dirs $(LIBSHARED) $(LIBSTATIC) register - -dirs: -ifdef DYNAMIC - $(MKDIR) ./dynamic -endif -ifdef STATIC - $(MKDIR) ./static -endif - -register: -ifdef STATIC - ( cd .. ; ./register_static $(TITLE) $(TITLE)/$(LIBSTATIC) ) -endif - -ifdef DYNAMIC -$(LIBOBJD): $(LIBSRC) - -$(LIBSHARED): $(LIBOBJD) - $(LD_D) -o $@ $(LIBOBJD) $(LDLIBS) -endif - -ifdef STATIC -$(LIBOBJS): $(LIBSRC) - -$(LIBSTATIC): $(LIBOBJS) - $(LD) -r -o $@ $(LIBOBJS) $(LDLIBS) -endif - -install: all - $(MKDIR) $(FAKEROOT)$(SECUREDIR) -ifdef DYNAMIC - $(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR) -endif - -remove: - rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so - -clean: - rm -f $(LIBOBJD) $(LIBOBJS) core *~ - -extraclean: clean - rm -f *.a *.o *.so *.bak dynamic/* static/* +TITLE=pam_pwdfile -.c.o: - $(CC) $(CFLAGS) -c $< +MODULE_SIMPLE_EXTRALIBS = -lcrypt +include ../Simple.Rules -- cgit v1.2.3