* Added Makefile.defines[.in] that should for now on be included
in all Makefile.am file in the source tree. That file includes
- all common compilation definitions for SILC source tree. Also
- all external packages that has been included in the SILC source
- may include it (like irssi for example) to use the SILC defaults.
+ all common compilation definitions for SILC source tree.
Mon May 28 10:30:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
-SUBDIRS = lib irssi silc silcd doc includes
+SUBDIRS = lib silc silcd doc includes
DIST_SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
include $(top_srcdir)/Makefile.defines
#
# This file is intended to include all common compilation defines for the
# SILC source tree. All Makefile.ams in the SILC source tree are expected
-# to include this file (Makefile.defines). Also all external packages
-# that are included in the SILC source tree and that needs the SILC
-# specific complation defines must include this file.
+# to include this file (Makefile.defines).
#
# Add following to your Makefile.am:
#
EXTRA_DIST = \
autogen.sh \
- curses.m4 \
README \
file2header.sh \
irssi.spec \
irssi.spec.in \
$(conf_DATA) \
- irssi-config.in \
- irssi-icon.png
+ irssi-config.in
## make rpms
rpm: Makefile
fi
echo "Running autoconf ..."
autoconf
-echo "Running automake --gnu $am_opt ..."
-automake --add-missing --gnu $am_opt
+echo "Running automake $am_opt ..."
+automake --add-missing --foreign $am_opt
silc-modules.c
noinst_HEADERS = \
+ module-formats.h \
fe-common-silc.h \
module.h
bin_PROGRAMS = silc
-include $(top_srcdir)/../Makefile.defines
-
INCLUDES = \
$(GLIB_CFLAGS) \
-I$(top_srcdir)/src \
@PERL_FE_LINK_LIBS@ \
$(PROG_LIBS) \
$(CURSES_LIBS) \
- -L../../../lib -lsilcclient $(SILC_COMMON_LIBS)
+ -L../../../lib -lsilcclient -lsilc
silc_SOURCES = \
gui-entry.c \
-INCLUDES = $(GLIB_CFLAGS) -I$(IRSSI_INCLUDE) -I$(IRSSI_INCLUDE)/src
-
IRSSI_INCLUDE=../../..
+silc_top_srcdir=../../../..
-include $(top_srcdir)/../Makefile.defines
-
-ADD_INCLUDES = \
- $(GLIB_CFLAGS) \
+INCLUDES = \
+ $(GLIB_CFLAGS) -I$(IRSSI_INCLUDE) -I$(IRSSI_INCLUDE)/src \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-I$(IRSSI_INCLUDE) \
-I$(IRSSI_INCLUDE)/src \
-I$(IRSSI_INCLUDE)/src/core \
-I$(IRSSI_INCLUDE)/src/fe-common/core \
- -I$(IRSSI_INCLUDE)/src/fe-common/silc
+ -I$(IRSSI_INCLUDE)/src/fe-common/silc \
+ -I$(silc_top_srcdir)/lib/silccore \
+ -I$(silc_top_srcdir)/lib/silccrypt \
+ -I$(silc_top_srcdir)/lib/silcmath \
+ -I$(silc_top_srcdir)/lib/silcmath/gmp \
+ -I$(silc_top_srcdir)/lib/silcske \
+ -I$(silc_top_srcdir)/lib/silcsim \
+ -I$(silc_top_srcdir)/lib/silcutil \
+ -I$(silc_top_srcdir)/lib/silcclient \
+ -I$(silc_top_srcdir)/lib/contrib \
+ -I$(silc_top_srcdir)/includes \
+ -I$(silc_top_srcdir)/doc \
+ -I$(silc_top_srcdir)/lib/trq
noinst_LIBRARIES=libsilc_core.a
server [/etc/silc/silcd.conf]],
[ AC_DEFINE_UNQUOTED(SILC_SERVER_CONFIG_FILE, "$withval") ])
-# XXX
-#LIBS="$LIBS -lefence"
-
+#
# Other configure scripts
+#
AC_CONFIG_SUBDIRS(irssi)
AC_CONFIG_SUBDIRS(lib/dotconf)
AC_CONFIG_SUBDIRS(lib/silcmath/gmp)
AC_CONFIG_SUBDIRS(lib/trq)
#AC_CONFIG_SUBDIRS(lib/zlib)
-# Some final substitutions
SILC_TOP_SRCDIR=`pwd`
AC_SUBST(SILC_TOP_SRCDIR)
AC_SUBST(LIBS)
+#
+# Makefile outputs
+#
AC_OUTPUT( \
Makefile
Makefile.defines
lib/silcutil/Makefile
silc/Makefile
silcd/Makefile)
-
#
# If <package version> is omitted <base version> is used as package
# version. The package version appears in the package name and in those
-# distributions that used the SILC_DISTRIBUTION_VERSION define in the
+# distributions that used the SILC_DIST_VERSION_STRING define in the
# code. The base version is the SILC_VERSION_STRING define.
#
file=includes/version_internal.h
echo "/* Automatically generated by ./prepare */" >$file
echo "#define SILC_VERSION_STRING \"$version\"" >>$file
-echo "#define SILC_DISTRIBUTION_VERSION \"$dist_version\"" >>$file
+echo "#define SILC_DIST_VERSION_STRING \"$dist_version\"" >>$file
echo "#define SILC_PROTOCOL_VERSION_STRING \"SILC-1.0-$version\"" >>$file
# preparing irssi