summaryrefslogtreecommitdiff
path: root/debian/Makefile
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2012-06-22 10:35:36 +0200
committerTimo Weingärtner <timo@tiwe.de>2012-11-08 08:21:50 +0100
commit09cf8097c6bdf0011cf78c6000c6dcbdb7618cf0 (patch)
tree9771fc04b4222e83699a672cf08031cb5f3a0f59 /debian/Makefile
parent65b4c91edbadc3e63bea9c5e6fb91e28aa2fe663 (diff)
downloadlibpam-pwdfile-debian/0.99-5.tar.gz
Imported Debian patch 0.99-5debian/0.99-5
Diffstat (limited to 'debian/Makefile')
-rw-r--r--debian/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/Makefile b/debian/Makefile
new file mode 100644
index 0000000..965cf9d
--- /dev/null
+++ b/debian/Makefile
@@ -0,0 +1,39 @@
+# Modified Makefile to allow for building of the standalone module
+
+TITLE=pam_pwdfile
+
+CC = gcc
+LD = gcc
+CFLAGS += -fPIC -c -g -Wall -Wformat-security -fvisibility=hidden
+LDFLAGS += -Wl,-x --shared
+LDLIBS = -lcrypt -lpam
+LIBOBJ = $(TITLE).o md5_good.o md5_broken.o md5_crypt_good.o md5_crypt_broken.o bigcrypt.o
+LIBSHARED = $(TITLE).so
+
+all: $(LIBSHARED)
+
+md5_good.o: md5.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -DHIGHFIRST -D'MD5Name(x)=Good##x' \
+ $(TARGET_ARCH) $< -o $@
+
+md5_broken.o: md5.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \
+ $(TARGET_ARCH) $< -o $@
+
+md5_crypt_good.o: md5_crypt.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Good##x' \
+ $(TARGET_ARCH) $< -o $@
+
+md5_crypt_broken.o: md5_crypt.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \
+ $(TARGET_ARCH) $< -o $@
+
+$(LIBSHARED): $(LIBOBJ)
+ $(LD) $(LDFLAGS) -o $@ $(LIBOBJ) $(LDLIBS)
+
+clean:
+ rm -f $(LIBOBJS) $(LIBSHARED) core *~
+
+extraclean: clean
+ rm -f *.a *.o *.so *.bak
+