File: Makefile.am

package info (click to toggle)
planner 0.14.6-7
  • links: PTS
  • area: main
  • in suites: buster
  • size: 14,600 kB
  • sloc: ansic: 67,239; sh: 10,242; xml: 3,928; sql: 886; makefile: 665; python: 3
file content (139 lines) | stat: -rw-r--r-- 3,434 bytes parent folder | download | duplicates (5)
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
INCLUDES = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/libplanner \
	-I$(top_builddir) \
	-I$(top_builddir)/libplanner \
	$(LIBPLANNER_CFLAGS) $(WARN_CFLAGS) \
	-DSTORAGEMODULEDIR=\""$(libdir)/storage-modules"\" \
	-DFILEMODULESDIR=\""$(libdir)/file-modules"\" \
	-DPLUGINDIR=\""$(libdir)/plugins"\"		\
	-DDATADIR=\""$(datadir)/planner"\"

lib_LTLIBRARIES = libplanner-1.la

libplanner_1_la_SOURCES = 			\
	$(built_sources)			\
	mrp-application.c			\
	mrp-assignment.c			\
	mrp-calendar.c				\
	mrp-day.c				\
	mrp-group.c				\
	mrp-object.c				\
	mrp-file-module.c			\
	mrp-file-module.h			\
	mrp-project.c				\
	mrp-resource.c				\
	mrp-storage-module.c			\
	mrp-storage-module-factory.c		\
	mrp-storage-module-factory.h		\
	mrp-task-manager.c			\
	mrp-task-manager.h			\
	mrp-task.c				\
	mrp-relation.c				\
	mrp-types.c				\
	mrp-private.h				\
	mrp-property.c				\
	mrp-time.c				\
	mrp-error.c				\
	mrp-paths-gnome.c

libplannerinclude_HEADERS = 			\
	planner.h				\
	mrp-application.h			\
	mrp-assignment.h			\
	mrp-calendar.h				\
	mrp-day.h				\
	mrp-group.h				\
	mrp-object.h				\
	mrp-project.h				\
	mrp-property.h				\
	mrp-resource.h				\
	mrp-storage-module.h			\
	mrp-task.h				\
	mrp-relation.h				\
	mrp-types.h				\
	mrp-time.h				\
	mrp-error.h				\
	mrp-paths.h

libplanner_1_la_LIBADD = $(LIBPLANNER_LIBS) -lm

libplannerincludedir = $(includedir)/planner-1.0/libplanner


#
# Storage modules
#
storagemoduledir = $(libdir)/storage-modules

if HAVE_GDA
sql_library = libstorage-sql.la
endif

storagemodule_LTLIBRARIES = 			\
	libstorage-mrproject-1.la		\
	$(sql_library)

libstorage_mrproject_1_la_SOURCES = 		\
	mrp-storage-mrproject.c			\
	mrp-storage-mrproject.h			\
	mrp-parser.c				\
	mrp-parser.h

libstorage_mrproject_1_la_LDFLAGS =  -avoid-version -module
libstorage_mrproject_1_la_LIBADD = libplanner-1.la

if HAVE_GDA
libstorage_sql_la_SOURCES = 			\
	mrp-storage-sql.c			\
	mrp-storage-sql.h			\
	mrp-sql.c				\
	mrp-sql.h

libstorage_sql_la_LDFLAGS =  -avoid-version -module
libstorage_sql_la_CFLAGS = $(GDA_CFLAGS) -DGDA_VERSION=@GDA_VER@
libstorage_sql_la_LIBADD =  $(GDA_LIBS) libplanner-1.la
endif

#
# File modules
#
filemoduledir = $(libdir)/file-modules

filemodule_LTLIBRARIES = 			\
	libmrp-xml.la				\
	libmrp-xsl.la

libmrp_xml_la_SOURCES = 			\
	mrp-xml.c				\
	mrp-old-xml.c				\
	mrp-old-xml.h

libmrp_xml_la_CFLAGS = -DDTDDIR=\""$(datadir)/planner/dtd"\"
libmrp_xml_la_LDFLAGS = -avoid-version -module
libmrp_xml_la_LIBADD = libplanner-1.la

libmrp_xsl_la_SOURCES = mrp-xsl.c
libmrp_xsl_la_CFLAGS = 	$(XSLT_CFLAGS) -DSTYLESHEETDIR=\""$(datadir)/planner/stylesheets"\"
libmrp_xsl_la_LDFLAGS = -avoid-version -module
libmrp_xsl_la_LIBADD = $(XSLT_LIBS) libplanner-1.la

mrp-marshal.h: Makefile.am mrp-marshal.list
	$(GLIB_GENMARSHAL) --prefix=mrp_marshal $(srcdir)/mrp-marshal.list --header > xgen-gmh \
	&& (cmp -s xgen-gmh mrp-marshal.h || cp xgen-gmh mrp-marshal.h) \
	&& rm -f xgen-gmh xgen-gmh~

mrp-marshal.c: Makefile.am mrp-marshal.list
	(echo "#include \"mrp-marshal.h\""; $(GLIB_GENMARSHAL) --prefix=mrp_marshal $(srcdir)/mrp-marshal.list --body) > xgen-gmc \
	&& cp xgen-gmc mrp-marshal.c \
	&& rm -f xgen-gmc xgen-gmc~

# do not use BUILT_SOURCES because of weird semantics
# i *think* these should actually be stamp-* files
built_sources = mrp-marshal.h  mrp-marshal.c

$(libplanner_1_la_OBJECTS): $(built_sources)

EXTRA_DIST = mrp-marshal.list

CLEANFILES = $(built_sources)