summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/common.am
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/xdvik/common.am')
-rw-r--r--Build/source/texk/xdvik/common.am35
1 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/texk/xdvik/common.am b/Build/source/texk/xdvik/common.am
new file mode 100644
index 00000000000..f2b19aa6e50
--- /dev/null
+++ b/Build/source/texk/xdvik/common.am
@@ -0,0 +1,35 @@
+## texk/xdvik/common.am: Makefile fragment for the TeX Live subdirectory texk/xdvik/
+##
+## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
+## You may freely use, modify and/or distribute this file.
+##
+## Make `#include <X11/...>' work.
+x_cppflags = $(X_CFLAGS) $(iconv_includes)
+common_includes = $(PS_DEF) $(KPATHSEA_INCLUDES) $(T1LIB_INCLUDES) $(x_cppflags)
+
+## Make `-lX...' work. Follow the library order used in X11R6 itself.
+##
+## Since libXaw7 needs libXpm we put x_xpm_libs after the tool_libs,
+## but before -lX11.
+## libXp may be needed by libXm and libXaw (the now defunct libXaw8),
+## if required libXp has been added to x_ext_lib.
+## libXmu needs to come before Xt and after the toolkit libs.
+x_ldflags = $(X_LIBS) $(x_linker_options) $(iconv_libpath)
+x_extra_libs = $(X_EXTRA_LIBS) $(iconv_libs)
+xdvi_x_libs = $(x_ldflags) $(x_tool_libs) $(x_xmu_lib) -lXt $(X_PRE_LIBS)
+xdvi_x_libs += $(x_ext_lib) $(x_xpm_libs) -lX11 $(x_extra_libs)
+
+common_ldadd = $(KPATHSEA_LIBS) $(T1LIB_LIBS) $(xdvi_x_libs)
+
+common_dependencies = $(KPATHSEA_DEPEND) $(T1LIB_DEPEND)
+
+## Dependencies for libxdvi.a and gui/libgui.a
+##
+libxdvi_dependencies = ${top_srcdir}/*.[ch] ${top_builddir}/psheader.c
+libgui_dependencies = ${top_srcdir}/*.h ${top_srcdir}/print-internal.c ${top_srcdir}/gui/*.[ch]
+
+## Rebuild libkpathsea
+@KPATHSEA_RULE@
+## Rebuild libt1
+@T1LIB_RULE@
+