1 # -*- mode: Makefile; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
3 # Conky, a system monitor, based on torsmo
5 # Please see COPYING for details
7 # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
10 # This program is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28 libcairo_built_sources = libcairo.c
30 libcairo = libcairo.la
33 ${toluapp} -n cairo -o $@ $(srcdir)/cairo.pkg
35 libcairo_la_CFLAGS = $(cairo_CFLAGS) $(cairo_xlib_CFLAGS) $(tolua_CFLAGS)
36 libcairo_la_LIBADD = $(cairo_LIBS) $(cairo_xlib_LIBS) $(tolua_LIBS)
37 libcairo_la_SOURCES = cairo.pkg libcairo-helper.h libcairo.c
39 endif # BUILD_LUA_CAIRO
43 libimlib2_built_sources = libimlib2.c
45 libimlib2 = libimlib2.la
47 libimlib2.c: imlib2.pkg
48 ${toluapp} -n imlib2 -o $@ $(srcdir)/imlib2.pkg
50 libimlib2_la_CFLAGS = $(Imlib2_CFLAGS) $(tolua_CFLAGS)
51 libimlib2_la_LIBADD = $(Imlib2_LIBS) $(tolua_LIBS)
52 libimlib2_la_SOURCES = imlib2.pkg libimlib2.c
54 endif # BUILD_LUA_IMLIB2
56 pkglib_LTLIBRARIES = $(libcairo) $(libimlib2)
60 EXTRA_DIST = libcairo-helper.h
61 BUILT_SOURCES = $(cairo_built_sources) $(imlib2_built_sources)
63 # vi:set ts=4 sw=4 noet ai nocindent syntax=automake: