2009-02-24 16:44:30 +00:00
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
|
|
|
|
build_shared_libs =
|
2008-11-07 19:32:28 +00:00
|
|
|
|
2008-11-24 15:44:16 +00:00
|
|
|
if HAVE_LIBDL
|
|
|
|
|
2009-02-24 16:44:30 +00:00
|
|
|
noinst_LTLIBRARIES += libdisable-npots-static.la
|
|
|
|
|
|
|
|
build_shared_libs += libdisable-npots.la
|
2008-11-24 15:44:16 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2009-02-24 16:44:30 +00:00
|
|
|
libdisable_npots_static_la_SOURCES = disable-npots.c
|
2008-11-24 15:44:16 +00:00
|
|
|
|
2009-02-24 16:44:30 +00:00
|
|
|
libdisable_npots_static_la_LIBADD = -ldl
|
2008-11-24 15:44:16 +00:00
|
|
|
|
2009-01-05 17:05:30 +00:00
|
|
|
INCLUDES = \
|
|
|
|
-I$(top_srcdir)/clutter \
|
|
|
|
-I$(top_builddir)/clutter \
|
|
|
|
$(CLUTTER_CFLAGS) \
|
|
|
|
-D_GNU_SOURCE
|
|
|
|
|
2009-02-24 16:44:30 +00:00
|
|
|
all-local : disable-npots.sh $(build_shared_libs)
|
2008-11-24 15:44:16 +00:00
|
|
|
|
|
|
|
clean-local :
|
2009-02-24 16:44:30 +00:00
|
|
|
rm -f disable-npots.sh libdisable-npots.la
|
2008-11-24 15:44:16 +00:00
|
|
|
|
|
|
|
disable-npots.sh : $(top_builddir)/tests/tools/disable-npots.sh.in
|
|
|
|
sed 's|--builddir--|'`cd '$(top_builddir)' && pwd`'|' < $< > $@ && \
|
|
|
|
chmod 755 disable-npots.sh
|
|
|
|
|
2009-02-24 16:44:30 +00:00
|
|
|
# Also put the static library into a shared library. We need to do
|
|
|
|
# this without the automake magic because we don't want it to get
|
|
|
|
# installed
|
|
|
|
libdisable-npots.la : libdisable-npots-static.la
|
|
|
|
$(LINK) -ldl -rpath /nowhere libdisable-npots-static.la
|
|
|
|
|
2008-11-24 15:44:16 +00:00
|
|
|
EXTRA_DIST = README disable-npots.sh.in
|