summaryrefslogtreecommitdiffstats
path: root/libkcal/libical/src/libical/Makefile.am
blob: e0d51321fa843d5f8e2aed088f4628f85cc1a918 (plain)
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
231
232
#======================================================================
#  FILE: Makefile.am
#  CREATOR: eric 
#  
#
#
# (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 = $(srcdir)/../../design-data
ICALSCRIPTS = $(srcdir)/../../scripts

noinst_LTLIBRARIES = libical.la

AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\""$(kde_datadir)/libical"\"

AM_YFLAGS = -d -v -t -pical_yy
AM_LFLAGS = -Pical_yy -olex.yy.c

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

libical_la_LDFLAGS = -no-undefined

# Order is important!
libical_la_SOURCES =		\
	caldate.c		\
	icalarray.c		\
	icalattach.c		\
	icalderivedparameter.c	\
	icalrecur.c		\
	icalrestriction.c	\
	icalcomponent.c		\
	icalenums.c		\
	icalerror.c		\
	icalmemory.c		\
	icalmime.c		\
	icalparameter.c		\
	icalparser.c		\
	icalderivedproperty.c	\
	icalproperty.c		\
	icaltime.c		\
	icalduration.c		\
	icalperiod.c		\
	icaltimezone.c		\
	icaltypes.c		\
	icalvalue.c		\
	icalderivedvalue.c	\
	pvl.c			\
	sspm.c			\
	vsnprintf.c


noinst_HEADERS = ical.h		\
	astime.h		\
	icalarray.h		\
	icalattach.h		\
	icalattachimpl.h	\
	icalderivedparameter.h	\
	icalrecur.h		\
	icalcomponent.h		\
	icalenums.h		\
	icalerror.h		\
	icalmemory.h		\
	icalmime.h		\
	icalparameter.h		\
	icalparameterimpl.h	\
	icalparser.h		\
	icalderivedproperty.h	\
	icalproperty.h		\
	icaltime.h		\
	icalduration.h		\
	icalperiod.h		\
	icaltimezone.h		\
	icaltypes.h		\
	icalvalue.h		\
	icalvalueimpl.h		\
	icalderivedvalue.h	\
	pvl.h			\
	sspm.h

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

ical.h: $(COMBINEDHEADERS)
	echo '#ifdef __cplusplus'	  >  ical.h
	echo 'extern "C" {'		  >> ical.h
	echo '#endif'			  >> ical.h
	cat $(COMBINEDHEADERS)				\
	| egrep -v "#include.*\"ical"			\
	| egrep -v "#include.*\"config"			\
	| egrep -v "#include.*\"pvl\.h\""		\
	| egrep -v '\$$(Id|Locker): .+\$$'>> ical.h
	echo '#ifdef __cplusplus'	  >> ical.h
	echo '}'			  >> ical.h
	echo '#endif'			  >> ical.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  || rm -f icalderivedparameter.h


icalderivedparameter.c: $(PARAMETERDEPS) icalparameter.h
	$(PERL) -I $(ICALSCRIPTS) $(ICALSCRIPTS)/mkderivedparameters.pl -i $(srcdir)/icalderivedparameter.c.in -c $(DESIGNDATA)/parameters.csv > icalderivedparameter.c || rm -f 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  || rm -f 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 || rm -f 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 || rm -f 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 || rm -f 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 || rm -f icalderivedvalue.c

# housekeeping
CLEANFILES = y.output  \
	icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h ical.h \
	icalderivedvalue.c icalderivedproperty.c icalderivedparameter.c \
	icalrestriction.c

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	


icalcomponent.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalderivedparameter.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalderivedproperty.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalderivedvalue.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalduration.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalmime.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalparameter.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalparser.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalproperty.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalrestriction.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icaltime.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h
icalvalue.lo: icalderivedvalue.h icalderivedproperty.h icalderivedparameter.h