| 1 |
## texk/xdvik/common.am: Makefile fragment for the TeX Live subdirectory texk/xdvik/ |
| 2 |
## |
| 3 |
## Copyright (C) 2009-2013 Peter Breitenlohner <[email protected]> |
| 4 |
## You may freely use, modify and/or distribute this file. |
| 5 |
## |
| 6 |
## Make `#include <X11/...>' work. |
| 7 |
x_cppflags = $(X_CFLAGS) $(iconv_includes) |
| 8 |
common_includes = $(PS_DEF) $(KPATHSEA_INCLUDES) $(FREETYPE2_INCLUDES) $(x_cppflags) |
| 9 |
|
| 10 |
## Make `-lX...' work. Follow the library order used in X11R6 itself. |
| 11 |
## |
| 12 |
## Since libXaw7 needs libXpm we put x_xpm_libs after the tool_libs, |
| 13 |
## but before -lX11. |
| 14 |
## libXp may be needed by libXm and libXaw (the now defunct libXaw8), |
| 15 |
## if required libXp has been added to x_ext_lib. |
| 16 |
## libXmu needs to come before Xt and after the toolkit libs. |
| 17 |
x_ldflags = $(X_LIBS) $(x_linker_options) $(iconv_libpath) |
| 18 |
x_extra_libs = $(X_EXTRA_LIBS) $(iconv_libs) |
| 19 |
xdvi_x_libs = $(x_ldflags) $(x_tool_libs) $(x_xmu_lib) -lXt $(X_PRE_LIBS) |
| 20 |
xdvi_x_libs += $(x_ext_lib) $(x_xpm_libs) -lX11 $(x_extra_libs) |
| 21 |
|
| 22 |
common_ldadd = $(KPATHSEA_LIBS) $(FREETYPE2_LIBS) $(xdvi_x_libs) |
| 23 |
|
| 24 |
common_dependencies = $(KPATHSEA_DEPEND) $(FREETYPE2_DEPEND) |
| 25 |
|
| 26 |
## Dependencies for libxdvi.a |
| 27 |
## |
| 28 |
libxdvi_dependencies = ${top_srcdir}/*.[ch] ${top_srcdir}/gui/*.[ch] ${top_builddir}/psheader.c |
| 29 |
|
| 30 |
## Rebuild libkpathsea |
| 31 |
@KPATHSEA_RULE@ |
| 32 |
## Rebuild freetype2 |
| 33 |
@FREETYPE2_RULE@ |
| 34 |
|