Changeset 180 for trunk/c2s/Makefile.am

Show
Ignore:
Timestamp:
28/04/07 23:56:58 (19 months ago)
Author:
smoku
Message:

Dynamically loading auth/reg/storage modules. Closes #52

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/c2s/Makefile.am

    r175 r180  
    1 INCLUDES = -DCONFIG_DIR=\"$(sysconfdir)\" \ 
    2             $(MYSQL_CFLAGS) \ 
    3             $(PGSQL_CFLAGS) 
    4  
    51bin_PROGRAMS = c2s 
    62 
    7 c2s_SOURCES = authreg.c authreg_anon.c authreg_db.c authreg_ldap.c authreg_pam.c authreg_pipe.c bind.c c2s.c main.c sm.c 
    8  
    9 # MySQL support 
    10 if STORAGE_MYSQL 
    11 c2s_SOURCES += authreg_mysql.c 
    12 endif 
    13  
    14 # PostgreSQL support 
    15 if STORAGE_PGSQL 
    16 c2s_SOURCES += authreg_pgsql.c 
    17 endif 
    18  
    19 # SQLite3 support 
    20 if STORAGE_SQLITE 
    21 c2s_SOURCES += authreg_sqlite.c 
    22 endif 
    23  
     3c2s_SOURCES = authreg.c bind.c c2s.c main.c sm.c 
     4c2s_CPPFLAGS = -DCONFIG_DIR=\"$(sysconfdir)\" -DLIBRARY_DIR=\"$(pkglibdir)\" 
     5c2s_LDFLAGS = -Wl,-export-dynamic 
    246 
    257noinst_HEADERS = c2s.h 
     
    2810            $(top_builddir)/mio/libmio.la \ 
    2911            $(top_builddir)/util/libutil.la \ 
    30             $(top_builddir)/subst/libsubst.la \ 
    31             $(MYSQL_LIBS)   \ 
    32             $(PGSQL_LIBS)   \ 
    33             $(SQLITE_LIBS) 
    34  
     12            $(top_builddir)/subst/libsubst.la