summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: a2dfc24b4cc778a50b186838bbf8d95597591f42 (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
## Process this file with automake to produce Makefile.in
PFLAGS=-module -avoid-version -no-undefined

if GROUP_PLUGIN
SUBDIRS=group
endif

libsnap_la_LDFLAGS = $(PFLAGS)
libsnap_la_LIBADD = @COMPIZ_LIBS@
libsnap_la_SOURCES = snap_options.c snap.c

libring_la_LDFLAGS = $(PFLAGS)
libring_la_LIBADD = @COMPIZ_LIBS@
libring_la_SOURCES = ring_options.c ring.c

libtrailfocus_la_LDFLAGS = $(PFLAGS)
libtrailfocus_la_LIBADD = @COMPIZ_LIBS@
libtrailfocus_la_SOURCES = trailfocus_options.c trailfocus.c

libaddhelper_la_LDFLAGS = $(PFLAGS)
libaddhelper_la_LIBADD = @COMPIZ_LIBS@
libaddhelper_la_SOURCES = addhelper_options.c addhelper.c

libopacify_la_LDFLAGS = $(PFLAGS)
libopacify_la_LIBADD = @COMPIZ_LIBS@
libopacify_la_SOURCES = opacify_options.c opacify.c

libextrawm_la_LDFLAGS = $(PFLAGS)
libextrawm_la_LIBADD = @COMPIZ_LIBS@
libextrawm_la_SOURCES = extrawm_options.c extrawm.c

libsnow_la_LDFLAGS = $(PFLAGS)
libsnow_la_LIBADD = @COMPIZ_LIBS@
libsnow_la_SOURCES = snow_options.c snow.c

if WALL_PLUGIN
libwall_la_LDFLAGS = $(PFLAGS)
libwall_la_LIBADD = @COMPIZ_LIBS@ @WALL_LIBS@ -lGLU
libwall_la_SOURCES = wall_options.c wall.c
libwall_module = libwall.la
endif

if JPEG_PLUGIN
libimgjpeg_la_LDFLAGS = $(PFLAGS)
libimgjpeg_la_LIBADD = @COMPIZ_LIBS@ @WALL_LIBS@ -ljpeg
libimgjpeg_la_SOURCES = jpeg_options.c jpeg.c
libimgjpeg_module = libimgjpeg.la
endif

libthumbnail_la_LDFLAGS = $(PFLAGS)
libthumbnail_la_LIBADD = @COMPIZ_LIBS@
libthumbnail_la_SOURCES = thumbnail_options.c thumbnail.c thumbnail_tex.h

if TEXT_PLUGIN
libtext_la_LDFLAGS = $(PFLAGS)
libtext_la_LIBADD = @COMPIZ_LIBS@ @TEXT_LIBS@
libtext_la_SOURCES = text.c
libtext_module = libtext.la
endif

libsplash_la_LDFLAGS = $(PFLAGS)
libsplash_la_LIBADD = @COMPIZ_LIBS@
libsplash_la_SOURCES = splash_options.c splash.c

libcrashhandler_la_LDFLAGS = $(PFLAGS)
libcrashhandler_la_LIBADD = @COMPIZ_LIBS@
libcrashhandler_la_SOURCES = crashhandler_options.c crashhandler.c

libbench_la_LDFLAGS = $(PFLAGS)
libbench_la_LIBADD = @COMPIZ_LIBS@
libbench_la_SOURCES = bench_options.c bench.c bench_tex.h

libmblur_la_LDFLAGS = $(PFLAGS)
libmblur_la_LIBADD = @COMPIZ_LIBS@
libmblur_la_SOURCES = mblur_options.c mblur.c

libreflection_la_LDFLAGS = $(PFLAGS)
libreflection_la_LIBADD = @COMPIZ_LIBS@
libreflection_la_SOURCES = reflex_options.c reflex.c

libput_la_LDFLAGS = $(PFLAGS)
libput_la_LIBADD = @COMPIZ_LIBS@
libput_la_SOURCES = put_options.c put.c

libshowdesktop_la_LDFLAGS = $(PFLAGS)
libshowdesktop_la_LIBADD = @COMPIZ_LIBS@
libshowdesktop_la_SOURCES = showdesktop_options.c showdesktop.c

libfadedesktop_la_LDFLAGS = $(PFLAGS)
libfadedesktop_la_LIBADD = @COMPIZ_LIBS@
libfadedesktop_la_SOURCES = fadedesktop_options.c fadedesktop.c

libneg_la_LDFLAGS = $(PFLAGS)
libneg_la_LIBADD = @COMPIZ_LIBS@
libneg_la_SOURCES = neg_options.c neg.c

libtile_la_LDFLAGS = $(PFLAGS)
libtile_la_LIBADD = @COMPIZ_LIBS@
libtile_la_SOURCES = tile_options.c tile.c

INCLUDES =                              \
	@COMPIZ_CFLAGS@                  \
	@TEXT_CFLAGS@			\
	@WALL_CFLAGS@			\
	-DDATADIR='"$(datadir)"'          \
	-DLIBDIR='"$(libdir)"'              \
	-DALL_LINGUAS="\"@ALL_LINGUAS@\""   \
	-DLOCALEDIR="\"@datadir@/locale\""  \
	-DIMAGEDIR='"$(imagedir)"'          \
	-I$(top_srcdir)/include

moduledir = $(plugindir)


module_LTLIBRARIES =    \
	libcrashhandler.la  \
	libneg.la           \
	libring.la	\
	libput.la           \
	libreflection.la    \
	libmblur.la	    \
	libsplash.la        \
	libthumbnail.la \
	libsnap.la \
	libsnow.la \
	libtile.la \
	libshowdesktop.la \
	libfadedesktop.la \
	libtrailfocus.la \
	libbench.la       \
	libextrawm.la \
	libaddhelper.la \
	libopacify.la \
	$(libwall_module) \
	$(libimgjpeg_module) \
	$(libtext_module) 

CLEANFILES = *_options.c *_options.h

%_options.h: ../metadata/%.xml
		$(BCOP_BIN) --header $@ $<

%_options.c: ../metadata/%.xml %_options.h
		$(BCOP_BIN) --source $@ $<