aboutsummaryrefslogblamecommitdiffstats
path: root/addressbook/backend/pas/Makefile.am
blob: 2b311e8234de9c80fc5c5d621f3c9611f1e9a89e (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                         



                                                         

                                                  
                                                         
                                        
 
                        
                                                                                   

                                                         
                                                         
                                                         
                                                         



                                                         
                                                         
                                                         
                                       
 


                                                         


                                                         
 
              
                           

     



                                    
                            
                                               
 



                                                         
                                                         
                                                         
                                                         
                                                         
                                                         
                                                         
                         
 







                                                         

                                                         

                                                         
 








                                                         














                                                                                              
                             
 


                                             
                                                                  
CORBA_SOURCE_H = addressbook.h

CORBA_SOURCE_C =                    \
    addressbook-common.c                \
    addressbook-stubs.c             \
    addressbook-skels.c

CORBA_SOURCE = $(CORBA_SOURCE_H) $(CORBA_SOURCE_C)

idls =                          \
    $(srcdir)/../idl/addressbook.idl

$(CORBA_SOURCE): $(idls)
    $(ORBIT_IDL)  $(IDL_INCLUDES) -I $(srcdir) $(srcdir)/../idl/addressbook.idl

INCLUDES =                      \
    $(DB3_CFLAGS)                   \
    $(LDAP_CFLAGS)                  \
        -DGNOMELOCALEDIR=\""$(localedir)"\"     \
    -DG_LOG_DOMAIN=\"wombat-pas\"           \
    -I$(top_srcdir)                 \
    -I$(top_srcdir)/addressbook/backend     \
    -I$(top_builddir)/addressbook/backend       \
    -DG_DISABLE_DEPRECATED              \
    -DLIBGNOME_DISABLE_DEPRECATED           \
        $(EVOLUTION_ADDRESSBOOK_CFLAGS)

LDAP_SCHEMA =                       \
    evolutionperson.schema

LDAP_BACKEND_FILES =                    \
    pas-backend-ldap.c              \
    pas-backend-ldap.h

if ENABLE_LDAP
LDAP_BACKEND = libpasldap.a
endif

ldapschemadir = $(datadir)/evolution

ldapschema_DATA= $(LDAP_SCHEMA)

privlib_LIBRARIES = libpas.a
noinst_LIBRARIES = libpasfile.a $(LDAP_BACKEND)

pasincludedir = $(includedir)/evolution/pas

pasinclude_HEADERS =                    \
    $(CORBA_SOURCE_H)               \
    pas-book-factory.h              \
    pas-book-view.h                 \
    pas-book.h                  \
    pas-backend-card-sexp.h             \
    pas-backend.h                   \
    pas-backend-summary.h               \
    pas-card-cursor.h

libpas_a_SOURCES =                  \
    $(pasinclude_HEADERS)               \
    $(CORBA_SOURCE_C)               \
    pas-book-factory.c              \
    pas-book-view.c                 \
    pas-book.c                  \
    pas-backend-card-sexp.c             \
    pas-backend-file.c              \
    pas-backend.c                   \
    pas-backend-summary.c               \
    pas-card-cursor.c               \
    pas-marshal.c

libpasfile_a_SOURCES =                  \
    pas-backend-file.c              \
    pas-backend-file.h

if ENABLE_LDAP
libpasldap_a_SOURCES =                  \
    $(LDAP_BACKEND_FILES)
endif

# GLib marshalling cruft

pas-marshal.h: pas-marshal.list
    ( @GLIB_GENMARSHAL@ --prefix=pas_marshal pas-marshal.list --header > pas-marshal.tmp \
    && mv pas-marshal.tmp pas-marshal.h ) \
    || ( rm -f pas-marshal.tmp && exit 1 )

pas-marshal.c: pas-marshal.h
    ( @GLIB_GENMARSHAL@ --prefix=pas_marshal pas-marshal.list --body > pas-marshal.tmp \
    && mv pas-marshal.tmp pas-marshal.c ) \
    || ( rm -f pas-marshal.tmp && exit 1 )

MARSHAL_GENERATED = pas-marshal.c pas-marshal.h

BUILT_SOURCES = $(CORBA_SOURCE) $(MARSHAL_GENERATED)
CLEANFILES = $(BUILT_SOURCES)

dist-hook:
    cd $(distdir); rm -f $(BUILT_SOURCES)

EXTRA_DIST = $(LDAP_BACKEND_FILES) $(LDAP_SCHEMA) pas-marshal.list