summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/common.am
blob: 85c55f5bcd6d3cc7c558a251d4cc05f29d8b0fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## 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
##
libxdvi_dependencies = ${top_srcdir}/*.[ch] ${top_srcdir}/gui/*.[ch] ${top_builddir}/psheader.c

## Rebuild libkpathsea
@KPATHSEA_RULE@
## Rebuild libt1
@T1LIB_RULE@