aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client/Makefile.am
blob: b7ffe15af7ecadd7189ef94eb8a3fd2bc35d3d80 (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
82
83
84
85
86
87
88
89
90
91
92
93
#
# libcal-client
#

CORBA_GENERATED_C =             \
    evolution-calendar-common.c     \
    evolution-calendar-skels.c      \
    evolution-calendar-stubs.c
CORBA_GENERATED_H =         \
    evolution-calendar.h

CORBA_GENERATED = $(CORBA_GENERATED_C) $(CORBA_GENERATED_H)

idls =                      \
    $(srcdir)/../idl/evolution-calendar.idl

idl_flags = $(IDL_INCLUDES)

$(CORBA_GENERATED_H): $(idls)
    $(ORBIT_IDL) $(idl_flags) $(srcdir)/../idl/evolution-calendar.idl
$(CORBA_GENERATED_C): $(CORBA_GENERATED_H)

INCLUDES =                      \
    -DEVOLUTION_LOCALEDIR=\""$(localedir)"\"    \
    -DG_LOG_DOMAIN=\"cal-client\"           \
    -I$(top_srcdir)/calendar            \
    -I$(srcdir) -I$(top_srcdir)             \
    -I.                         \
    -I..                        \
    -I$(top_builddir)               \
    -I$(top_builddir)/libical/src/libical       \
    -I$(top_srcdir)/libical/src/libical     \
    -I$(top_builddir)/libwombat         \
    -I$(top_srcdir)/libwombat           \
    $(EVOLUTION_CALENDAR_CFLAGS)

privlib_LTLIBRARIES = libcal-client.la

libcal_clientincludedir = $(privincludedir)/cal-client

libcal_client_la_SOURCES =  \
    $(CORBA_GENERATED_C)    \
    cal-client-multi.c  \
    cal-client-types.c  \
    cal-client.c        \
    cal-listener.c      \
    cal-listener.h      \
    cal-query.c     \
    query-listener.c    \
    query-listener.h

libcal_clientinclude_HEADERS =      \
    $(CORBA_GENERATED_H)        \
    cal-client-multi.h      \
    cal-client-types.h      \
    cal-client.h            \
    cal-query.h

#
# make a static library for use by calendar conduit's shared library
#
noinst_LTLIBRARIES = libcal-client-static.la
libcal_client_static_la_SOURCES = $(libcal_client_la_SOURCES)
libcal_client_static_la_LDFLAGS = --all-static


#
# client-test program
#

noinst_PROGRAMS = client-test

client_test_SOURCES =   \
    client-test.c

client_test_INCLUDES =          \
    $(INCLUDES)         \
    -DG_LOG_DOMAIN=\"client-test\"

client_test_LDADD =                         \
    $(EVOLUTION_CALENDAR_LIBS)                  \
    $(top_builddir)/e-util/libeutil.la              \
    $(top_builddir)/calendar/cal-util/libcal-util.la        \
    $(top_builddir)/libversit/libversit.a               \
    $(top_builddir)/libical/src/libical/libical-evolution.la    \
    $(top_builddir)/libwombat/libwombat.la              \
    libcal-client.la

BUILT_SOURCES = $(CORBA_GENERATED)
CLEANFILES = $(BUILT_SOURCES)

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