summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>2012-10-24 08:18:01 +0100
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>2012-10-24 08:18:01 +0100
commitc2c2b9c4b0571f4e6050de78ae8fd813d1be7431 (patch)
tree12d9d04d58daec7558ab0ae63c7c52ac7d14642f /Makefile
downloadlibpam-radius-auth-c2c2b9c4b0571f4e6050de78ae8fd813d1be7431.tar.gz
libpam-radius-auth-c2c2b9c4b0571f4e6050de78ae8fd813d1be7431.zip
Commit of version 1.3.17
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile74
1 files changed, 74 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c050a2b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,74 @@
+######################################################################
+#
+# A minimal 'Makefile', by Alan DeKok <aland@freeradius.org>
+#
+# $Id: Makefile,v 1.13 2007/03/26 04:22:11 fcusack Exp $
+#
+#############################################################################
+
+VERSION=1.3.17
+
+######################################################################
+#
+# If we're really paranoid, use these flags
+#CFLAGS = -Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Waggregate-return
+#
+# If you're not using GCC, then you'll have to change the CFLAGS.
+#
+CFLAGS = -Wall -fPIC
+#
+# On Irix, use this with MIPSPRo C Compiler, and don't forget to export CC=cc
+# gcc on Irix does not work yet for pam_radius
+# Also, use gmake instead of make
+# Then copy pam_radius_auth.so to /usr/freeware/lib32/security (PAM dir)
+# CFLAGS =
+
+
+######################################################################
+#
+# The default rule to build everything.
+#
+all: pam_radius_auth.so
+
+######################################################################
+#
+# Build the object file from the C source.
+#
+pam_radius_auth.o: pam_radius_auth.c pam_radius_auth.h
+ $(CC) $(CFLAGS) -c pam_radius_auth.c -o pam_radius_auth.o
+#
+# This is what should work on Irix:
+#pam_radius_auth.so: pam_radius_auth.o md5.o
+# ld -shared pam_radius_auth.o md5.o -L/usr/freeware/lib32 -lpam -lc -o pam_radius_auth.so
+
+
+######################################################################
+#
+# Build the shared library.
+#
+# The -Bshareable flag *should* work on *most* operating systems.
+#
+# On Solaris, you might try using '-G', instead.
+#
+# On systems with a newer GCC, you will need to do:
+#
+# gcc -shared pam_radius_auth.o md5.o -lpam -lc -o pam_radius_auth.so
+#
+pam_radius_auth.so: pam_radius_auth.o md5.o
+ ld -Bshareable pam_radius_auth.o md5.o -lpam -o pam_radius_auth.so
+
+######################################################################
+#
+# Check a distribution out of the source tree, and make a tar file.
+#
+dist:
+ cvs export -D now -d pam_radius-${VERSION} pam_radius
+ tar -cf pam_radius-${VERSION}.tar pam_radius-${VERSION}
+ rm -rf pam_radius-${VERSION}
+
+######################################################################
+#
+# Clean up everything
+#
+clean:
+ @rm -f *~ *.so *.o