1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[Makefile] compile libcss related code

This commit is contained in:
Witold Filipczyk 2023-03-01 18:02:06 +01:00
parent 82a7bd5de8
commit 79fdb363b3
4 changed files with 15 additions and 2 deletions

View File

@ -144,6 +144,7 @@ CONFIG_INTERLINK = @CONFIG_INTERLINK@
CONFIG_IPV6 = @CONFIG_IPV6@
CONFIG_DBLATEX = @CONFIG_DBLATEX@
CONFIG_LEDS = @CONFIG_LEDS@
CONFIG_LIBCSS = @CONFIG_LIBCSS@
CONFIG_LZMA = @CONFIG_LZMA@
CONFIG_MAILCAP = @CONFIG_MAILCAP@
CONFIG_MANUAL = @CONFIG_MANUAL@

View File

@ -874,11 +874,16 @@ fi
# Check for libcss
# ===================================================================
CONFIG_LIBCSS=
if test "x$CONFIG_XML" = xyes; then
LIBCSS_CFLAGS=`$PKG_CONFIG $pkg_config_static --cflags libcss`
LIBCSS_LIBS=`$PKG_CONFIG $pkg_config_static --libs libcss`
LIBCSS_CFLAGS="$($PKG_CONFIG $pkg_config_static --cflags libcss)"
LIBCSS_LIBS="$($PKG_CONFIG $pkg_config_static --libs libcss)"
LIBS="$LIBS $LIBCSS_LIBS"
CFLAGS="$CFLAGS $LIBCSS_CFLAGS"
CONFIG_LIBCSS=yes
EL_CONFIG(CONFIG_LIBCSS, [libcss])
AC_SUBST(CONFIG_LIBCSS)
fi
# ===================================================================

View File

@ -2,6 +2,7 @@ top_builddir=../..
include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_CSS) += css
SUBDIRS-$(CONFIG_LIBCSS) += css2
SUBDIRS-$(CONFIG_DOM) += dom
SUBDIRS-$(CONFIG_XML) += xml

View File

@ -0,0 +1,6 @@
top_builddir=../../..
include $(top_builddir)/Makefile.config
OBJS = css.obj
include $(top_srcdir)/Makefile.lib