aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/pas/Makefile.am
blob: 28e29de9d7881cb4c573634ecaeaa660ddfebbd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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

idl_flags = `$(GNOME_CONFIG) --cflags idl` -I $(datadir)/idl

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

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       \
        $(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

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

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) $(LDAP_SCHEMA)