All supported EAP authentication types
authorraghu <raghu>
Wed, 12 Dec 2001 02:00:01 +0000 (02:00 +0000)
committerraghu <raghu>
Wed, 12 Dec 2001 02:00:01 +0000 (02:00 +0000)
src/modules/rlm_eap/types/Makefile [new file with mode: 0644]
src/modules/rlm_eap/types/lib [new file with mode: 0644]
src/modules/rlm_eap/types/rules.mak [new file with mode: 0644]

diff --git a/src/modules/rlm_eap/types/Makefile b/src/modules/rlm_eap/types/Makefile
new file mode 100644 (file)
index 0000000..0b6a809
--- /dev/null
@@ -0,0 +1,25 @@
+TARGET_LIBS = static dynamic
+
+all:
+       $(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+static:
+       $(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+dynamic:
+       $(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+clean:
+       $(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+install:
+       $(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+common: 
+       @for mod in rlm_eap*; do \
+               what=$(WHAT_TO_MAKE); \
+               [ "$$what" = "all" ] && what="$(TARGET_LIBS)"; \
+               echo "Making $$what in $$mod..."; \
+               (cd $$mod && $(MAKE) $(MFLAGS) $$what) || exit 1;\
+       done
+
diff --git a/src/modules/rlm_eap/types/lib b/src/modules/rlm_eap/types/lib
new file mode 100644 (file)
index 0000000..54ffe40
--- /dev/null
@@ -0,0 +1,28 @@
+# rlm_eap_md5.la - a libtool library file
+# Generated by ltmain.sh - GNU libtool 1.3.4 (1.385.2.196 1999/12/07 21:47:57)
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='rlm_eap_md5.so.0'
+
+# Names of this library.
+library_names='rlm_eap_md5.so.0.0.0 rlm_eap_md5.so.0 rlm_eap_md5.so'
+
+# The name of the static archive.
+old_library='rlm_eap_md5.a'
+
+# Libraries that this one depends upon.
+dependency_libs=''
+
+# Version information for rlm_eap_md5.
+current=0
+age=0
+revision=0
+
+# Is this an already installed library?
+installed=no
+
+# Directory that this library needs to be installed in:
+libdir='/home/raghud/open/radiusd/deploy/lib'
diff --git a/src/modules/rlm_eap/types/rules.mak b/src/modules/rlm_eap/types/rules.mak
new file mode 100644 (file)
index 0000000..53cf91b
--- /dev/null
@@ -0,0 +1,144 @@
+#######################################################################
+#
+# $Id$
+#
+#  Each module should have a few common defines at the TOP of the
+# Makefile, and the 'include ../rules.mak'
+#
+# e.g.
+#
+##########################
+# TARGET = rlm_foo
+# SRCS   = rlm_foo.c other.c
+#
+# include ../rules.mak
+#
+# CFLAGS += my_c_flags
+##########################
+#
+# and everything will be automagically built
+#
+#######################################################################
+
+all: dynamic
+
+#######################################################################
+#
+#  definitions for new dependencies on suffixes
+#
+#######################################################################
+.SUFFIXES: .lo .o .la .a
+
+#######################################################################
+#
+# define static and dynamic objects for the libraries,
+# along with a number of other useful definitions.
+#
+#######################################################################
+STATIC_OBJS    = $(SRCS:.c=.o)
+DYNAMIC_OBJS   = $(SRCS:.c=.lo)
+CFLAGS         += -I../.. -I../../../../include
+
+#######################################################################
+#
+# Ensure that the modules get re-built if the server header files
+# change.
+#
+#######################################################################
+SERVER_HEADERS = ../../eap.h
+$(STATIC_OBJS):  $(SERVER_HEADERS)
+$(DYNAMIC_OBJS): $(SERVER_HEADERS)
+
+#######################################################################
+#
+# define new rules
+#
+#######################################################################
+%.o : %.c
+       $(CC) $(CFLAGS) $(RLM_EAP_CFLAGS) -c $< -o $@
+
+%.lo : %.c
+       $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(RLM_EAP_CFLAGS) -c $<
+
+ifneq ($(TARGET),)
+#######################################################################
+#
+# Define a number of new targets
+#
+#######################################################################
+$(TARGET).a: $(STATIC_OBJS)
+       $(LIBTOOL) --mode=link $(LD) -module -static $(CFLAGS) $(RLM_EAP_CFLAGS) $^ -o $@ 
+
+#
+#  If the module is in the list of static modules, then the "dynamic"
+#  library is built statically, so that the '.la' file contains the
+#  libraries that the module depends on.
+#
+#  Yes, this is a horrible hack.
+#
+ifeq ($(findstring $(TARGET),$(STATIC_MODULES)),)
+LINK_MODE=-export-dynamic
+else
+LINK_MODE=-static
+endif
+
+#
+#  Also, if we're NOT using shared libraries, then force the
+#  link mode to static.
+#
+ifneq ($(USE_SHARED_LIBS),yes)
+LINK_MODE=-static
+endif
+
+$(TARGET).la: $(DYNAMIC_OBJS)
+       $(LIBTOOL) --mode=link $(CC) -module $(LINK_MODE) $(CFLAGS) \
+       $(RLM_EAP_CFLAGS) -o $@ -rpath $(libdir) $^ $(RLM_EAP_LIBS)
+
+#######################################################################
+#
+#  Generic targets so we can sweep through all modules
+# without knowing what their names are.
+#
+#  These rules also allow us to copy the '.a' or '.la' up
+# a level, to the 'src/modules' directory, for general consumption.
+#
+#######################################################################
+static: $(TARGET).a
+       @cp $< ../lib
+
+dynamic: $(TARGET).la
+       @cp $< ../lib
+
+#######################################################################
+#
+#  It's a dummy target: don't build it
+#
+#######################################################################
+else
+static:
+
+dynamic:
+
+# if $(TARGET) == ""
+endif
+
+#######################################################################
+#
+#  clean and install rules
+#
+#######################################################################
+clean:
+       @rm -f *.a *.o *.lo *.la *~
+       @rm -rf .libs _libs
+
+distclean:
+       @rm -f config.h config.mak
+
+#
+#  Do any module-specific installation.
+#
+#  If there isn't a TARGET defined, then don't do anything.
+#  Otherwise, install the libraries into $(libdir)
+#
+install:
+       [ "x$(TARGET)" = "x" ] || $(LIBTOOL) --mode=install $(INSTALL) -c $(TARGET).la $(R)$(libdir)/$(TARGET).la