aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/Makefile.am
blob: ed17a8aa6cd379d76ac3407a6f0b82ada3a4968a (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
SUBDIRS = doc

idldir = $(datadir)/idl
idl_DATA = GnomeCal.idl

gnorbadir = $(sysconfdir)/CORBA/servers
gnorba_DATA = gnomecal.gnorba

help_base = $(datadir)/gnome/help/cal

if HAVE_GNOME_PILOT
EXTRA_PROGRAMS = todo-conduit-control-applet calendar-conduit-control-applet
endif
bin_PROGRAMS = gnomecal 

INCLUDES =          \
    -I$(includedir)                 \
    $(GNOME_INCLUDEDIR)             \
    $(GNOME_CONDUIT_INCLUDEDIR)             \
    $(PISOCK_INCLUDEDIR)                  \
        -DGNOMELOCALEDIR=\""$(datadir)/locale"\"

GNOMECAL_CORBA_GENERATED =  \
    GnomeCal.h      \
    GnomeCal.c      \
    GnomeCal-common.c   \
    GnomeCal-skels.c    \
    GnomeCal-stubs.c

$(GNOMECAL_CORBA_GENERATED): my_gnomecal_idl

my_gnomecal_idl: GnomeCal.idl
    orbit-idl $(srcdir)/GnomeCal.idl
    touch my_gnomecal_idl

corba-cal.c     \
corba-cal.h     \
corba-cal-factory.c \
corba-cal-factory.h: GnomeCal.h

gnomecal_SOURCES = \
    GnomeCal-common.c   \
    GnomeCal-skels.c    \
    GnomeCal.h      \
    alarm.c         \
    alarm.h         \
    calendar.c      \
    calendar.h      \
    calobj.c        \
    calobj.h        \
    eventedit.c     \
    eventedit.h     \
    getdate.y       \
    corba-cal.c     \
    corba-cal.h     \
    corba-cal-factory.c \
    corba-cal-factory.h \
    gncal-day-panel.c   \
    gncal-day-panel.h   \
    gncal-day-view.c    \
    gncal-day-view.h    \
    gncal-full-day.c    \
    gncal-full-day.h    \
    gncal-week-view.c   \
    gncal-week-view.h   \
    gncal-todo.c        \
    gncal-todo.h        \
    gnome-month-item.c  \
    gnome-month-item.h  \
    gnome-cal.c     \
    gnome-cal.h     \
    html-month.c        \
    goto.c          \
    layout.c        \
    layout.h        \
    main.c          \
    main.h          \
    mark.c          \
    mark.h          \
    month-view.c        \
    month-view.h        \
    popup-menu.c        \
    popup-menu.h        \
    prop.c          \
    quick-view.c        \
    quick-view.h        \
    timeutil.c      \
    timeutil.h      \
    view-utils.h        \
    view-utils.c        \
    year-view.c     \
    year-view.h

calendar_pilot_sync_SOURCES =   \
    GnomeCal-common.c   \
    GnomeCal-stubs.c    \
    alarm.c         \
    calendar-pilot-sync.c   \
    calobj.c        \
    calobj.h        \
    calendar.c      \
    calendar.h      \
    timeutil.c      \
    timeutil.h

LINK_FLAGS = \
    $(GNOME_LIBDIR) \
    $(GNOMEGNORBA_LIBS) \
    $(INTLLIBS) \
    ../libversit/libversit.la

calendar_pilot_sync_LDADD = \
    $(PISOCK_LIBS)      \
    $(LINK_FLAGS)


if HAVE_GNOME_PILOT
#calendar_conduit
calendar_conduitsdir=$(libdir)/gnome-pilot/conduits

calendar_conduits_LTLIBRARIES = libcalendar_conduit.la

libcalendar_conduit_la_SOURCES = \
    calendar-conduit.c  \
    calobj.c        \
    alarm.c         \
    GnomeCal-common.c   \
    GnomeCal-stubs.c    \
    calendar.c      \
    timeutil.c

libcalendar_conduit_la_LDFLAGS = \
    -rpath $(libdir)

libcalendar_conduit_la_LIBADD = \
    ../libversit/libversit.la \
    $(PISOCK_LIBS) \
    $(GNOME_LIBDIR) \
    $(GNOME_LIBS)

calendar_conduit_control_applet_SOURCES = \
    calendar-conduit-control-applet.c

calendar_conduit_control_applet_LDADD = \
    $(CAPPLET_LIBS) \
    $(GNOME_LIBDIR) \
        $(GNOME_CAPPLET_LIBS) \
        $(PISOCK_LIBS) \
        $(GNOMEUI_LIBS) \
        $(PISOCK_LIBS) \
    $(GNOME_PILOT_LIBS) \
        $(INTLLIBS) 

#todo_conduit
todo_conduitsdir=$(libdir)/gnome-pilot/conduits

todo_conduits_LTLIBRARIES = libtodo_conduit.la

libtodo_conduit_la_LDFLAGS = \
    -rpath $(libdir)

libtodo_conduit_la_LIBADD = \
    $(GNOME_LIBDIR) \
    $(GNOME_LIBS)

libtodo_conduit_la_SOURCES = \
    todo-conduit.c

todo_conduit_control_applet_SOURCES = \
    todo-conduit-control-applet.c

todo_conduit_control_applet_LDADD = \
    $(CAPPLET_LIBS) \
    $(GNOME_LIBDIR) \
        $(GNOME_CAPPLET_LIBS) \
        $(PISOCK_LIBS) \
        $(GNOMEUI_LIBS) \
        $(PISOCK_LIBS) \
    $(GNOME_PILOT_LIBS) \
        $(INTLLIBS) 
endif # HAVE_GNOME_PILOT

gnomecal_LDADD = $(LINK_FLAGS)

if HAVE_GNOME_PILOT
ccenterdir = $(datadir)/control-center
Rootdir = $(ccenterdir)
PalmPilotdir = $(ccenterdir)/Peripherals/PalmPilot
Conduitsdir = $(PalmPilotdir)/Conduits

Conduits_DATA = \
    calendar-conduit-control-applet.desktop \
    todo-conduit-control-applet.desktop 
endif

EXTRA_DIST = \
    gncal.desktop   \
    bell.xpm    \
    recur.xpm   \
    $(idl_DATA) \
    $(gnorba_DATA) 

Productivitydir = $(datadir)/gnome/apps/Applications

Productivity_DATA = gncal.desktop

install-data-local:
    $(mkinstalldirs) $(DESTDIR)$(help_base)/C
    $(mkinstalldirs) $(Conduitsdir)