summaryrefslogtreecommitdiff
path: root/src/xine-utils/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-utils/Makefile.am')
-rw-r--r--src/xine-utils/Makefile.am82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/xine-utils/Makefile.am b/src/xine-utils/Makefile.am
new file mode 100644
index 000000000..29ef6eef0
--- /dev/null
+++ b/src/xine-utils/Makefile.am
@@ -0,0 +1,82 @@
+##
+## Process this file with automake to produce Makefile.in
+##
+
+CFLAGS = @GLOBAL_CFLAGS@ @THREAD_CFLAGS@
+
+
+EXTRA_DIST = cpu_accel.c
+
+lib_LTLIBRARIES = libxineutils.la
+
+libxineutils_la_SOURCES = utils.c memcpy.c monitor.c
+libxineutils_la_LIBADD = cpu_accel.lo \
+ $(THREAD_LIBS) \
+ $(DYNAMIC_LD_LIBS) \
+ -lm
+
+libxineutils_la_LDFLAGS = \
+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
+ -release $(LT_RELEASE)
+
+include_HEADERS = attributes.h cpu_accel.h memcpy.h utils.h monitor.h
+
+###
+# Hardcoded rule:
+# gcc failed to compile this with -fPIC flag
+# hackish: [X] yes [ ] no
+#
+LIBTOOLNOFPIC = $(SHELL) $(top_builddir)/libtool-nofpic
+LTCOMPILENOFPIC = $(LIBTOOLNOFPIC) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+cpu_accel.lo: cpu_accel.c
+ @mkdir -p .deps; touch .deps/cpu_accel.pp; \
+ echo '$(LTCOMPILENOFPIC) -c $<'; \
+ $(LTCOMPILENOFPIC) -Wp,-MD,.deps/$(*F).pp -c $<
+ @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
+ < .deps/$(*F).pp > .deps/$(*F).P; \
+ tr ' ' '\012' < .deps/$(*F).pp \
+ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
+ >> .deps/$(*F).P; \
+ rm -f .deps/$(*F).pp
+
+
+debug:
+ @$(MAKE) CFLAGS="$(DEBUG_CFLAGS)"
+
+install-debug: debug
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+
+
+###
+# Install header files (default=$includedir/xine)
+#
+install-includeHEADERS: $(include_HEADERS)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(includedir)/xine
+ @list='$(include_HEADERS)'; for p in $$list; do \
+ if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
+ echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/xine/$$p"; \
+ $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/xine/$$p; \
+ done
+
+
+###
+# Remove them
+#
+uninstall-includeHEADERS:
+ @$(NORMAL_UNINSTALL)
+ list='$(include_HEADERS)'; for p in $$list; do \
+ rm -f $(DESTDIR)$(includedir)/xine/$$p; \
+ done
+
+
+mostlyclean-generic:
+ -rm -f *~ \#* .*~ .\#*
+
+
+maintainer-clean-generic:
+ -@echo "This command is intended for maintainers to use;"
+ -@echo "it deletes files that may require special tools to rebuild."
+ -rm -f Makefile.in
+