A shared library allows for all frontends to share code.
It also allows third-party programs to use the parser.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
.*.swp
*.o
+*.lo
*.a
+*.la
+*.lai
frontends/conf/conf
frontends/gconf/gconf
frontends/qconf/qconf.moc
libs/parser/?conf.c
+libs/*/.libs
+frontends/*/.libs
aclocal.m4
configure
config.h.in
config.log
config.status
+libtool
Makefile
Makefile.in
#!/bin/sh
set -e
+printf "Running libtoolize...\n"
+libtoolize --copy --force
+
printf "Running aclocal...\n"
aclocal -Wall --force
#----------------------------------------
# Some program checks
-AC_PROG_RANLIB
AC_PROG_LEX
AC_PROG_YACC
AC_CHECK_PROGS(
[COND_lxdialog],
[test "$need_lxdialog" = "yes"])
+#---------------------------------------------------------------------------
+# Prepare libtool
+LT_INIT([disable-static])
+
#----------------------------------------
# Finalise
AC_CONFIG_FILES([
conf_CPPFLAGS = $(AM_CPPFLAGS) \
$(GETTEXT) \
-I../../libs/parser
-conf_LDADD = ../../libs/parser/libkconfigparser.a
+conf_LDADD = ../../libs/parser/libkconfigparser.la
gconf_CFLAGS = $(AM_CFLAGS) \
$(gtk_CFLAGS)
gconf_LDADD = $(gtk_LIBS) \
- ../../libs/parser/libkconfigparser.a
+ ../../libs/parser/libkconfigparser.la
gconfdir = $(pkgdatadir)
gconf_DATA = gconf.glade
$(GETTEXT) \
-I../../libs \
-I../../libs/parser
-mconf_LDADD = ../../libs/parser/libkconfigparser.a \
+mconf_LDADD = ../../libs/parser/libkconfigparser.la \
../../libs/lxdialog/liblxdialog.a
nconf_CPPFLAGS = $(AM_CPPFLAGS) \
$(GETTEXT) \
-I../../libs/parser
-nconf_LDADD = ../../libs/parser/libkconfigparser.a
+nconf_LDADD = ../../libs/parser/libkconfigparser.la
qconf_CXXFLAGS = $(AM_CXXFLAGS) \
$(qt4_CFLAGS)
qconf_LDADD = $(qt4_LIBS) \
- ../../libs/parser/libkconfigparser.a
+ ../../libs/parser/libkconfigparser.la
.h.moc:
moc -i $< -o $@
SUFFIXES = .gperf
-noinst_LIBRARIES = libkconfigparser.a
-
-libkconfigparser_a_SOURCES = yconf.y
-dist_EXTRA_libkconfigparser_a_SOURCES = \
+lib_LTLIBRARIES = libkconfigparser.la
+libkconfigparser_la_SOURCES = yconf.y
+dist_EXTRA_libkconfigparser_la_SOURCES = \
hconf.gperf lconf.l \
confdata.c menu.c symbol.c util.c \
expr.c expr.h lkc.h lkc_proto.h
+include_HEADERS = expr.h lkc.h lkc_proto.h
+
BUILT_SOURCES = hconf.c lconf.c
# Can't use libkconfigparser_a_CPPFLAGS, as it breaks dependencies