From 4e8818d32013f64366b9e143c2507be64c931101 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 22 Jul 2002 18:21:21 +0000 Subject: Split pas-backend-file and pas-backend-ldap out of libpas and build them * backend/pas/Makefile.am: Split pas-backend-file and pas-backend-ldap out of libpas and build them as separate (noinst) libraries libpasfile.a and libpasldap.a. This gets the db3 and LDAP dependencies out of libpas, and people trying to create an addressbook backend shouldn't be calling functions from the existing backends anyway so there's no reason to install them. svn path=/trunk/; revision=17528 --- addressbook/backend/pas/Makefile.am | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'addressbook/backend/pas') diff --git a/addressbook/backend/pas/Makefile.am b/addressbook/backend/pas/Makefile.am index 7cdea8dac5..28e29de9d7 100644 --- a/addressbook/backend/pas/Makefile.am +++ b/addressbook/backend/pas/Makefile.am @@ -28,18 +28,16 @@ INCLUDES = \ LDAP_SCHEMA = \ evolutionperson.schema -LDAP_BACKEND_FILES_C = pas-backend-ldap.c -LDAP_BACKEND_FILES_H = pas-backend-ldap.h +LDAP_BACKEND_FILES = \ + pas-backend-ldap.c \ + pas-backend-ldap.h if ENABLE_LDAP -LDAP_BACKEND_C = $(LDAP_BACKEND_FILES_C) -LDAP_BACKEND_H = $(LDAP_BACKEND_FILES_H) -else -LDAP_BACKEND_C = -LDAP_BACKEND_H = +LDAP_BACKEND = libpasldap.a endif privlib_LIBRARIES = libpas.a +noinst_LIBRARIES = libpasfile.a $(LDAP_BACKEND) pasincludedir = $(includedir)/evolution/pas @@ -49,8 +47,6 @@ pasinclude_HEADERS = \ pas-book-view.h \ pas-book.h \ pas-backend-card-sexp.h \ - pas-backend-file.h \ - $(LDAP_BACKEND_H) \ pas-backend.h \ pas-backend-summary.h \ pas-card-cursor.h @@ -63,15 +59,23 @@ libpas_a_SOURCES = \ pas-book.c \ pas-backend-card-sexp.c \ pas-backend-file.c \ - $(LDAP_BACKEND_C) \ pas-backend.c \ pas-backend-summary.c \ pas-card-cursor.c +libpasfile_a_SOURCES = \ + pas-backend-file.c \ + pas-backend-file.h + +if ENABLE_LDAP +libpasldap_a_SOURCES = \ + $(LDAP_BACKEND_FILES) +endif + BUILT_SOURCES = $(CORBA_SOURCE) CLEANFILES = $(BUILT_SOURCES) dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) -EXTRA_DIST = $(LDAP_BACKEND_FILES_C) $(LDAP_BACKEND_FILES_H) $(LDAP_SCHEMA) +EXTRA_DIST = $(LDAP_BACKEND_FILES) $(LDAP_SCHEMA) -- cgit v1.2.3