From 838aa7b53f746f58233825ee64528c8fc9b490e6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 11 Feb 2012 21:36:08 +0100 Subject: [PATCH] Charset: compile cs2cs --- TODO | 3 --- charset/Makefile | 6 ++++++ charset/cs2cs.c | 2 +- default.cfg | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index ff88ed25..228fdde1 100644 --- a/TODO +++ b/TODO @@ -3,6 +3,3 @@ - lfs-test: generalize or kill - transactions: Unit tests - libucw.pc: do not use -l if shared -- compile cstocs -- retros.c: sherlock.h -- remove excess inlines diff --git a/charset/Makefile b/charset/Makefile index 23d40f8c..32cc82a7 100644 --- a/charset/Makefile +++ b/charset/Makefile @@ -20,6 +20,12 @@ $(o)/charset/.include-stamp: $(addprefix $(s)/charset/,$(LIBCHARSET_INCLUDES)) $(o)/charset/.include-stamp: IDST=charset run/lib/pkgconfig/libcharset.pc: $(o)/charset/libcharset.pc +ifdef CONFIG_CHARSET_UTILS +PROGS+=$(o)/charset/cs2cs +endif + +$(o)/charset/cs2cs: $(o)/charset/cs2cs.o $(LIBUCW) $(o)/charset/libcharset.pc + build_charsets: cd $(s)/charset && sh misc/generate diff --git a/charset/cs2cs.c b/charset/cs2cs.c index 1ec48a18..4f2a97bb 100644 --- a/charset/cs2cs.c +++ b/charset/cs2cs.c @@ -8,7 +8,7 @@ * of the GNU General Public License. */ -#include "sherlock/sherlock.h" +#include #include #include diff --git a/default.cfg b/default.cfg index f6e25e3b..90667f3f 100644 --- a/default.cfg +++ b/default.cfg @@ -30,6 +30,7 @@ UnSet("CONFIG_IMAGES_LIBMAGICK"); # Libcharset Set("CONFIG_CHARSET"); +Set("CONFIG_CHARSET_UTILS"); # Libshxml Set("CONFIG_SHXML"); -- 2.39.2