]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Split auth/libauth into two libraries:
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 8 Mar 2009 21:29:22 +0000 (15:29 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 8 Mar 2009 21:29:22 +0000 (15:29 -0600)
  - auth/libauth containing core authentication code (used, in part,
    by the acl/libstate library) and not using acl/ libraries; and
  - auth/libacls containing authentication-related ACL code (used to build
    executables) and using acl/libstate.

The split was necessary to prevent circular dependencies among acl/ and auth/
libraries.

Added conditionally built libraries to libauth, eliminating the need for
AUTH_LIBS_TO_ADD. Use libtool to build those libraries.

Context: SourceLayout: acl/, take 1

src/auth/Makefile.am

index 3cf57d35c4089a442992b01d8bb90f37ab282ae0..982585ce4559718c24c7dad47b9d988d340629a4 100644 (file)
@@ -1,11 +1,10 @@
 include $(top_srcdir)/src/Common.am
 
-EXTRA_LIBRARIES        = libbasic.a libdigest.a libntlm.a libnegotiate.a
-noinst_LIBRARIES = libauth.a @AUTH_LIBS_TO_BUILD@
+noinst_LTLIBRARIES = libauth.la libacls.la @AUTH_LIBS_TO_BUILD@
+EXTRA_LTLIBRARIES = libbasic.la libdigest.la libntlm.la libnegotiate.la
 
 ## authentication framework; this library is always built
-## TODO: use libtool and add @AUTH_LIBS_TO_BUILD@ to libauth.la
-libauth_a_SOURCES = \
+libauth_la_SOURCES = \
        Config.cc \
        Config.h \
        Scheme.cc \
@@ -14,27 +13,43 @@ libauth_a_SOURCES = \
        User.cci \
        User.cc \
        UserRequest.h \
-       UserRequest.cc
+       UserRequest.cc \
+       Gadgets.cc \
+       Gadgets.h
 
-libbasic_a_SOURCES = \
+libauth_la_LIBADD = @AUTH_LIBS_TO_BUILD@
+libauth_la_DEPENDENCIES = @AUTH_LIBS_TO_BUILD@
+
+## authentication-dependent ACLs and authentication code they share
+libacls_la_SOURCES = \
+       Acl.cc \
+       Acl.h \
+       \
+       AclMaxUserIp.cc \
+       AclMaxUserIp.h \
+       AclProxyAuth.cc \
+       AclProxyAuth.h  
+
+
+libbasic_la_SOURCES = \
        basic/basicScheme.cc \
        basic/basicScheme.h \
        basic/auth_basic.cc \
        basic/auth_basic.h
 
-libdigest_a_SOURCES = \
+libdigest_la_SOURCES = \
        digest/digestScheme.cc \
        digest/digestScheme.h \
        digest/auth_digest.cc \
        digest/auth_digest.h
 
-libntlm_a_SOURCES = \
+libntlm_la_SOURCES = \
        ntlm/ntlmScheme.cc \
        ntlm/ntlmScheme.h \
        ntlm/auth_ntlm.cc \
        ntlm/auth_ntlm.h
 
-libnegotiate_a_SOURCES = \
+libnegotiate_la_SOURCES = \
        negotiate/negotiateScheme.cc \
        negotiate/negotiateScheme.h \
        negotiate/auth_negotiate.cc \