Makefile.am.in question
David Faure
david at mandrakesoft.com
Tue Jul 9 17:05:24 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 09 July 2002 16:58, Rob Kaper wrote:
> My app currently used the following in Makefile.am :
>
> atlantik_LDADD = ../libatlantikui/libatlantikui.la ../libatlantikclient/libatlantikclient.la $(top_builddir)/libkdegames/libkdegames.la $(LIB_KIO)
>
> This breaks stand-alone releases though, since libkdegames is not part of
> the Atlantik package.
>
> Does anyone know how to use Makefile.am.in to substitute
> $(top_builddir)/libkdegames/libkdegames.la with $KDEDIR/lib/libkdegames.la
KDEDIR? You don't mean that, do you? ;-) -lkdegames rather.
> in case if [ -d $(top_builddir)/libkdegames ] fails?
Sounds like a job for a configure.in.in define (there's no if/then/else in a Makefile ;)
Completely untested code.
if [ -d $top_srcdir/libkdegames ]; then
LIBKDEGAMES=$(top_builddir)/libkdegames/libkdegames.la
else
LIBKDEGAMES=-lkdegames
fi
AC_SUBST(LIBKDEGAMES)
and then use $(LIBKDEGAMES) in the Makefile.am[.in?].
- --
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9KwnF72KcVAmwbhARAnEwAJsEY6tKvnBcApdphtNaTfOiZMsWjgCaAogE
ciJCvAF64+vWiiwxr12uuVU=
=QAMh
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list