summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharl Botha <cpbotha@cpbotha.net>2001-04-17 21:16:12 +0000
committerCharl Botha <cpbotha@cpbotha.net>2001-04-17 21:16:12 +0000
commite7bcbd45289f6a0e7fd5445c928f72162f5749d3 (patch)
treecd95a2524b136dee3ebd8b26fac6b75227b5d017 /Makefile
parentf750816ad6e6645c4fb0e1458a5afe5806192eaa (diff)
downloadlibpam-pwdfile-e7bcbd45289f6a0e7fd5445c928f72162f5749d3.tar.gz
Updated for Linux-PAM-0.75. Released 0.7.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile82
1 files changed, 5 insertions, 77 deletions
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