--- /dev/null
+#
+# Makefile.defines.in
+#
+# Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+#
+# Copyright (C) 2000 - 2001 Pekka Riikonen
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+#
+# 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).
+#
+# Add following to your Makefile.am:
+#
+# include $(top_srcdir)/Makefile.defines
+#
+
+include $(top_srcdir)/Makefile.defines_int
+
+#
+# INCLUDE defines
+#
+INCLUDES = $(ADD_INCLUDES) \
+ -I$(srcdir) -I$(top_srcdir) \
+ -I$(silc_top_srcdir) \
+ -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
-# Generated automatically from Makefile.defines_int.in by configure.
-# Generated automatically from Makefile.defines_int.in by configure.
-# Generated automatically from Makefile.defines_int.in by configure.
-# Generated automatically from Makefile.defines_int.in by configure.
-# Generated automatically from Makefile.defines_int.in by configure.
-# Generated automatically from Makefile.defines_int.in by configure.
-# Generated automatically from Makefile.defines_int.in by configure.
-# Generated automatically from Makefile.defines_int.in by configure.
#
# Makefile.defines_int
#
--- /dev/null
+#
+# Makefile.defines_int.pre
+#
+# Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+#
+# Copyright (C) 2000 - 2001 Pekka Riikonen
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+#
+# Internal file for definitions. This is read by Makefile.defines. DO NOT
+# include this file directly to your Makefile.ams.
+#
+
+#
+# Generic definitions
+#
+silc_top_srcdir=@SILC_TOP_SRCDIR@
+
+#
+# Common libraries that are linked against the created executable
+#
+SILC_COMMON_LIBS= @LIBS@ -L$(silc_top_srcdir)/lib -lsilc
+
+#
+# Installation defines
+#
+silc_etcdir=@ETCDIR@
+silc_modulesdir=$(prefix)/@MODULESDIR@
+silc_helpdir=$(prefix)/@HELPDIR@
+silc_docdir=$(prefix)/@DOCDIR@
+silc_logsdir=$(prefix)/@LOGSDIR@
bin_PROGRAMS = silc
-INCLUDES = \
+include $(top_srcdir)/Makefile.defines
+
+ADD_INCLUDES = \
$(GLIB_CFLAGS) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/core/ \
@PERL_FE_LINK_LIBS@ \
$(PROG_LIBS) \
$(CURSES_LIBS) \
- -L../../../lib -lsilcclient -lsilc
+ -L../../../lib -lsilcclient $(SILC_COMMON_LIBS)
silc_SOURCES = \
gui-entry.c \
+include $(top_srcdir)/Makefile.defines
+
IRSSI_INCLUDE=../../..
-silc_top_srcdir=../../../..
-INCLUDES = \
+ADD_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$(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
+ -I$(IRSSI_INCLUDE)/src/fe-common/silc
noinst_LIBRARIES=libsilc_core.a
silc-nicklist.h \
silc-queries.h \
silc-servers.h
+
AC_OUTPUT( \
Makefile
Makefile.defines
+Makefile.defines_int
+irssi/Makefile.defines
+irssi/Makefile.defines_int
doc/Makefile
includes/Makefile
lib/Makefile
EXTRA_DIST = *.h
include $(top_srcdir)/Makefile.defines
-
cp Makefile.defines.in Makefile.defines
cp Makefile.defines.in irssi
cp Makefile.defines.in irssi/Makefile.defines
-cp Makefile.defines_int Makefile.defines_int.in
+cp Makefile.defines_int.pre Makefile.defines_int.in
+cp Makefile.defines_int.in Makefile.defines_int
cp Makefile.defines_int.in irssi
cp Makefile.defines_int.in irssi/Makefile.defines_int
make clean -k
make distclean -k
rm -f Makefile.am
+rm -f Makefile.defines
+rm -f Makefile.defines.in
+rm -f Makefile.defines_int.in
+rm -f irssi/Makefile.defines
+rm -f irssi/Makefile.defines.in
+rm -f irssi/Makefile.defines_int
+rm -f irssi/Makefile.defines_int.in
rm -f lib/Makefile.am
rm -f configure.in
rm -f includes/stamp-*