aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src/libical/Makefile.am
blob: e66f805201b6dad890c80e9d70dd50cfff926f70 (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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
#======================================================================
#  FILE: Makefile.am
#  CREATOR: eric 
#  
#  $Id: Makefile.am,v 1.27 2001/04/17 17:54:44 jpr Exp $
#
#
# (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of either: 
#
#    The LGPL as published by the Free Software Foundation, version
#    2.1, available at: http://www.fsf.org/copyleft/lesser.html
#
#  Or:
#
#    The Mozilla Public License Version 1.0. You may obtain a copy of
#    the License at http://www.mozilla.org/MPL/
#
#  The original code is icalcomponent.c
#
#======================================================================


DESIGNDATA = $(top_srcdir)/design-data
ICALSCRIPTS = $(top_srcdir)/scripts

lib_LTLIBRARIES = libical.la

noinst_LTLIBRARIES = libical-static.la
libical_static_la_SOURCES = $(libical_la_SOURCES)
libical_static_la_LDFLAGS = --all-static

YFLAGS = -d -v -t -pical_yy
LFLAGS = -Pical_yy
LEX_OUTPUT_ROOT = lex.ical_yy

INCLUDES =          \
    -I$(top_builddir)   \
    -I$(top_srcdir)/src \
    -I$(top_builddir)/src   \
    -I$(srcdir)

libical_la_LDFLAGS = -version-info 0:0:0

libical_la_SOURCES =        \
    icalattendee.h      \
    icalattendee.c      \
    icalcomponent.c     \
    icalcomponent.h     \
    icalenums.c     \
    icalenums.h     \
    icalerror.c     \
    icalerror.h     \
    icallexer.l     \
    icalmemory.c        \
    icalmemory.h        \
    icalmime.c      \
    icalmime.h      \
    icalparameter.c     \
    icalparameter.h     \
    icalparameterimpl.h \
    icalderivedparameter.c  \
    icalderivedparameter.h  \
    icalparser.c        \
    icalparser.h        \
    icalderivedproperty.c   \
    icalderivedproperty.h   \
    icalproperty.c      \
    icalproperty.h      \
    icalrecur.c     \
    icalrecur.h     \
    icalrestriction.c   \
    icalrestriction.h   \
    icaltime.c      \
    icaltime.h      \
    icalduration.h      \
    icalduration.c      \
    icalperiod.h        \
    icalperiod.c        \
    icaltypes.c     \
    icaltypes.h     \
    icalvalue.c     \
    icalvalue.h     \
    icalvalueimpl.h     \
    icalderivedvalue.c  \
    icalderivedvalue.h  \
    icalyacc.h      \
    icalyacc.y      \
    pvl.c           \
    pvl.h           \
    sspm.c          \
    sspm.h          \
    vsnprintf.c     \
    icallangbind.h      \
    icallangbind.c

libicalincludedir = $(includedir)

libicalinclude_HEADERS =  ical.h 

# ORDERING OF HEADERS IS SIGNIFICANT. Don't change this ordering. It
# is required to make the combined header ical.h properly
COMBINEDHEADERS =                   \
    $(top_builddir)/src/libical/icalversion.h   \
    $(top_srcdir)/src/libical/icaltime.h        \
    $(top_srcdir)/src/libical/icalduration.h    \
    $(top_srcdir)/src/libical/icalperiod.h      \
    $(top_srcdir)/src/libical/icalenums.h       \
    $(top_srcdir)/src/libical/icaltypes.h       \
    $(top_srcdir)/src/libical/icalrecur.h       \
    $(top_builddir)/src/libical/icalderivedvalue.h  \
    $(top_builddir)/src/libical/icalderivedparameter.h\
    $(top_srcdir)/src/libical/icalvalue.h       \
    $(top_srcdir)/src/libical/icalparameter.h   \
    $(top_builddir)/src/libical/icalderivedproperty.h\
    $(top_srcdir)/src/libical/icalproperty.h    \
    $(top_srcdir)/src/libical/icalattendee.h    \
    $(top_srcdir)/src/libical/pvl.h         \
    $(top_srcdir)/src/libical/icalcomponent.h   \
    $(top_srcdir)/src/libical/icalparser.h      \
    $(top_srcdir)/src/libical/icalmemory.h      \
    $(top_srcdir)/src/libical/icalerror.h       \
    $(top_srcdir)/src/libical/icalrestriction.h \
    $(top_srcdir)/src/libical/sspm.h        \
    $(top_srcdir)/src/libical/icalmime.h        \
    $(top_srcdir)/src/libical/icallangbind.h    

BUILT_SOURCES =         \
    ical.h          \
    icalderivedparameter.c  \
    icalderivedparameter.h  \
    icalderivedproperty.c   \
    icalderivedproperty.h   \
    icalrestriction.c   \
    icalderivedvalue.c  \
    icalderivedvalue.h

ical.h: $(BUILT_SOURCES)
    cat $(COMBINEDHEADERS)              \
    | egrep -v "#include.*\"ical"           \
    | egrep -v "#include.*\"pvl\.h\"" > ical.h

icallexer.c : icalyacc.h


# parameters

PARAMETERDEPS = \
    $(ICALSCRIPTS)/mkderivedparameters.pl \
    $(DESIGNDATA)/parameters.csv    \
    icalderivedparameter.c.in \
    icalderivedparameter.h.in

icalderivedparameter.h: $(PARAMETERDEPS) 
    $(PERL) -I $(ICALSCRIPTS) $(ICALSCRIPTS)/mkderivedparameters.pl -i $(srcdir)/icalderivedparameter.h.in -h $(DESIGNDATA)/parameters.csv > icalderivedparameter.h 

icalderivedparameter.c: $(PARAMETERDEPS) icalparameter.h
    $(PERL) -I $(ICALSCRIPTS) $(ICALSCRIPTS)/mkderivedparameters.pl -i $(srcdir)/icalderivedparameter.c.in -c $(DESIGNDATA)/parameters.csv > icalderivedparameter.c

# properties

PROPERTYDEPS =                  \
    $(ICALSCRIPTS)/mkderivedproperties.pl   \
    $(DESIGNDATA)/properties.csv        \
    $(DESIGNDATA)/value-types.csv       \
    icalderivedproperty.c.in        \
    icalderivedproperty.h.in


icalderivedproperty.h: $(PROPERTYDEPS)
    $(PERL)  -I$(ICALSCRIPTS) $(ICALSCRIPTS)/mkderivedproperties.pl \
        -i $(srcdir)/icalderivedproperty.h.in -h $(DESIGNDATA)/properties.csv\
        ${DESIGNDATA}/value-types.csv > icalderivedproperty.h 

icalderivedproperty.c: $(PROPERTYDEPS) icalproperty.h 
    $(PERL)  -I$(ICALSCRIPTS) $(ICALSCRIPTS)/mkderivedproperties.pl \
        -i $(srcdir)/icalderivedproperty.c.in -c $(DESIGNDATA)/properties.csv \
        ${DESIGNDATA}/value-types.csv > icalderivedproperty.c

# restrictions

RESTRICTIONDEPS =               \
    $(ICALSCRIPTS)/mkrestrictiontable.pl    \
    $(DESIGNDATA)/restrictions.csv      \
    icalrestriction.c.in

icalrestriction.c: $(RESTRICTIONDEPS)
    $(PERL) $(ICALSCRIPTS)/mkrestrictiontable.pl  -i $(srcdir)/icalrestriction.c.in \
        $(DESIGNDATA)/restrictions.csv > icalrestriction.c

# values

VALUEDEPS =                 \
    $(ICALSCRIPTS)/mkderivedvalues.pl   \
    $(DESIGNDATA)/value-types.csv       \
    icalderivedvalue.c.in               \
    icalderivedvalue.h.in

icalderivedvalue.h: $(VALUEDEPS)
    $(PERL) -I$(ICALSCRIPTS)  $(ICALSCRIPTS)/mkderivedvalues.pl \
             -i $(srcdir)/icalderivedvalue.h.in -h $(DESIGNDATA)/value-types.csv > icalderivedvalue.h

icalderivedvalue.c: $(VALUEDEPS) icalderivedvalue.h
    $(PERL)  -I$(ICALSCRIPTS) $(ICALSCRIPTS)/mkderivedvalues.pl \
        -i $(srcdir)/icalderivedvalue.c.in -c $(DESIGNDATA)/value-types.csv > icalderivedvalue.c



# housekeeping
CONFIG_CLEAN_FILES = y.output

CLEANFILES += $(BUILT_SOURCES)

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

EXTRA_DIST =            \
    icalderivedparameter.c.in \
    icalderivedparameter.h.in \
    icalderivedproperty.c.in \
    icalderivedproperty.h.in \
    icalrestriction.c.in    \
    icalderivedvalue.c.in   \
    icalderivedvalue.h.in   \
    icalversion.h.in    \
    icallexer.c     \
    icalyacc.c