mirror of
https://github.com/anope/anope.git
synced 2026-07-04 21:13:12 +02:00
Removed the old autotools files that are no longer needed because of the use of CMake.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1842 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
-104
@@ -1,104 +0,0 @@
|
||||
CC=g++ # probably wrong but oh well.
|
||||
INCLUDEDIR=../include
|
||||
ANOPELIBS=@ANOPELIBS@
|
||||
CFLAGS=@CFLAGS@ -Wall -ansi -pedantic -Wshadow
|
||||
PROFILE=-pg
|
||||
LDPROFILE=
|
||||
SHELL=/bin/sh
|
||||
BINDEST=@BINDEST@
|
||||
MAKEBIN=@MAKEBIN@
|
||||
DATDEST=@DATDEST@
|
||||
INSTALL=@INSTALL@
|
||||
RM=@RM@
|
||||
CP=@CP@
|
||||
TOUCH=@TOUCH@
|
||||
MODULE_PATH=@MODULE_PATH@
|
||||
LDFLAGS=@LDFLAGS@
|
||||
RUNGROUP=@RUNGROUP@
|
||||
SHARED=@SHARED@
|
||||
MODULEFLAGS=@MODULEFLAGS@
|
||||
|
||||
all: language headers build core protocols tools modules
|
||||
profile: language headers profile_build profile_core profile_protocols profile_tools profile_modules
|
||||
|
||||
MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
|
||||
'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \
|
||||
'INCLUDEDIR=${INCLUDEDIR}' 'RM=${RM}' 'CP=${CP}' \
|
||||
'TOUCH=${TOUCH}' 'SHELL=${SHELL}' 'DATDEST=${DATDEST}' \
|
||||
'RUNGROUP=${RUNGROUP}' 'MODULE_PATH=${MODULE_PATH}' \
|
||||
'SHARED=${SHARED}' 'MODULEFLAGS=${MODULEFLAGS}' \
|
||||
'MAKEBIN=${MAKEBIN}'
|
||||
|
||||
build: language headers
|
||||
@${MAKE} -C src ${MAKEARGS} all
|
||||
|
||||
profile_build:
|
||||
@${MAKE} -C src ${MAKEARGS} 'CFLAGS=${CFLAGS} $(PROFILE)' 'LDFLAGS=${LDFLAGS} ${PROFILE}' all
|
||||
|
||||
modules: build
|
||||
@src/modules/configure src/modules
|
||||
@${MAKE} -C src/modules ${MAKEARGS} all
|
||||
@echo "*** All done, now (g)make install to install Anope/Modules";
|
||||
|
||||
clean_modules:
|
||||
@${MAKE} -C src ${MAKEARGS} clean_modules
|
||||
|
||||
distclean_modules:
|
||||
@${MAKE} -C src ${MAKEARGS} distclean_modules
|
||||
|
||||
protocols: build
|
||||
@echo "*** Building protocol support";
|
||||
@src/protocol/configure src/protocol
|
||||
@${MAKE} -C src/protocol ${MAKEARGS} all
|
||||
|
||||
profile_protocols: build
|
||||
@echo "*** Building protocol support";
|
||||
@src/protocol/configure src/protocol
|
||||
@${MAKE} -C src/protocol ${MAKEARGS} 'CFLAGS=${CFLAGS} ${PROFILE}' 'PROFILE=${PROFILE}' all
|
||||
|
||||
core: build
|
||||
@echo "*** Building Core modules";
|
||||
@${MAKE} -C src ${MAKEARGS} core
|
||||
|
||||
profile_core: build
|
||||
@echo "*** Building Core modules";
|
||||
@${MAKE} -C src ${MAKEARGS} 'CFLAGS=${CFLAGS} ${PROFILE}' 'PROFILE=${PROFILE}' core
|
||||
|
||||
tools: build
|
||||
@${MAKE} -C src/tools ${MAKEARGS} all
|
||||
@echo "*** All done, now (g)make install to install Anope/Modules/Tools";
|
||||
|
||||
profile_tools: profile_build
|
||||
@${MAKE} -C src/tools ${MAKEARGS} 'CFLAGS=${CFLAGS} $(PROFILE)' all
|
||||
@echo "*** All done, now (g)make install to install Anope/Modules/Tools";
|
||||
|
||||
profile_modules: profile_build
|
||||
@src/modules/configure src/modules
|
||||
@${MAKE} -C src/modules ${MAKEARGS} 'CFLAGS=${CFLAGS} ${PROFILE}' 'PROFILE=${PROFILE}' all
|
||||
@echo "*** All done, now (g)make install to install Anope/Modules";
|
||||
|
||||
language:
|
||||
@$(MAKE) -C lang ${MAKEARGS} all language.h
|
||||
|
||||
headers:
|
||||
@${MAKE} -C include ${MAKEARGS}
|
||||
|
||||
clean:
|
||||
${MAKE} -C lang ${MAKEARGS} clean
|
||||
${MAKE} -C include ${MAKEARGS} clean
|
||||
${MAKE} -C src ${MAKEARGS} clean
|
||||
${MAKE} -C src/tools ${MAKEARGS} clean
|
||||
|
||||
distclean: clean
|
||||
${MAKE} -C lang ${MAKEARGS} distclean
|
||||
${MAKE} -C include ${MAKEARGS} distclean
|
||||
${MAKE} -C src ${MAKEARGS} distclean
|
||||
${MAKE} -C src/tools ${MAKEARGS} distclean
|
||||
rm -f config.log config.status config.cache Makefile src/bin/anoperc
|
||||
|
||||
install: DUMMY
|
||||
${MAKE} -C src ${MAKEARGS} install
|
||||
${MAKE} -C src/tools ${MAKEARGS} install
|
||||
@echo "*** All done, Anope is now installed. Please read docs/INSTALL for details on what to do now.";
|
||||
|
||||
DUMMY:
|
||||
@@ -1,96 +0,0 @@
|
||||
# Makefile for Anope.
|
||||
#
|
||||
# (C) 2003-2008 Anope Team
|
||||
# Contact us at info@anope.org
|
||||
#
|
||||
# This program is free but copyrighted software; see the file COPYING for
|
||||
# details.
|
||||
#
|
||||
# Based on the original code of Epona by Lara.
|
||||
# Based on the original code of Services by Andy Church.
|
||||
|
||||
include Makefile.inc.win32
|
||||
|
||||
###########################################################################
|
||||
|
||||
all: src core protocols languages tools modules install
|
||||
|
||||
src: include\version.h include\sysconf.h include\language.h include\sysconf.h
|
||||
cd src && $(MAKE) && cd ..
|
||||
|
||||
install:
|
||||
-@mkdir $(DATDEST)\backups
|
||||
-@mkdir $(DATDEST)\logs
|
||||
-@mkdir $(DATDEST)\languages
|
||||
cd lang && $(MAKE) install && cd ..
|
||||
cd src && $(MAKE) install && cd ..
|
||||
cd src\modules && $(MAKE) install && cd ..
|
||||
cd src\modules && $(MAKE) subs-install && cd ..
|
||||
cd src\protocol && $(MAKE) install && cd ..
|
||||
cd src\core && $(MAKE) install && cd ..
|
||||
cd src\tools && $(MAKE) install && cd ..
|
||||
-@echo ---
|
||||
-@echo Anope has been installed successfully!
|
||||
-@echo See docs\INSTALL for details on how to configure Anope for use.
|
||||
-@echo ---
|
||||
|
||||
spotless:
|
||||
cd lang && $(MAKE) spotless && cd ..
|
||||
cd src && $(MAKE) spotless && cd ..
|
||||
cd src\modules && $(MAKE) spotless && cd ..\..
|
||||
cd src\protocol && $(MAKE) spotless && cd ..\..
|
||||
cd src\core && $(MAKE) spotless && cd ..\..
|
||||
cd src\tools && $(MAKE) spotless && cd ..\..
|
||||
-@erase include\language.h include\version.h *.manifest *~ anope.exe version.sh.exe *.obj anopesmtp.exe
|
||||
-@echo --
|
||||
-@echo NOTICE:
|
||||
-@echo You will need to run cscript /nologo install.js again
|
||||
-@echo --
|
||||
|
||||
mypasql:
|
||||
$(MYPASQL_BUILD)
|
||||
|
||||
distclean: spotless
|
||||
|
||||
clean: spotless
|
||||
|
||||
###########################################################################
|
||||
|
||||
|
||||
languages: FRC
|
||||
cd lang && $(MAKE) && cd ..
|
||||
|
||||
tools: FRC
|
||||
cd src\tools && $(MAKE) && cd ..\..
|
||||
|
||||
core: FRC
|
||||
cd src\core && $(MAKE) && cd ..\..
|
||||
|
||||
protocols: FRC
|
||||
cd src\protocol && $(MAKE) && cd ..\..
|
||||
|
||||
modules: FRC
|
||||
cd src\modules && $(MAKE) && cd ..\..
|
||||
|
||||
###########################################################################
|
||||
|
||||
include\sysconf.h:
|
||||
copy include\sysconf.h.win32 include\sysconf.h
|
||||
|
||||
lang\language.h: lang\Makefile lang\index
|
||||
cd lang && $(MAKE) language.h && cd ..
|
||||
|
||||
lang\index:
|
||||
cd lang && $(MAKE) index && cd ..
|
||||
|
||||
include\language.h: lang\language.h
|
||||
cd lang && copy language.h ..\include\language.h && cd ..
|
||||
|
||||
include\version.h: version.sh.exe version.log include\services.h include\pseudo.h include\messages.h
|
||||
version.sh.exe
|
||||
move version.h include\version.h
|
||||
|
||||
version.sh.exe:
|
||||
$(CC) $(BASE_CFLAGS) include\version.sh.c /link $(LFLAGS)
|
||||
|
||||
FRC:
|
||||
Vendored
-863
@@ -1,863 +0,0 @@
|
||||
dnl aclocal.m4 generated automatically by aclocal 1.4-p6
|
||||
|
||||
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl This program is distributed in the hope that it will be useful,
|
||||
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
dnl PARTICULAR PURPOSE.
|
||||
|
||||
# lib-prefix.m4 serial 4 (gettext-0.14.2)
|
||||
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl From Bruno Haible.
|
||||
|
||||
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
|
||||
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
|
||||
dnl require excessive bracketing.
|
||||
ifdef([AC_HELP_STRING],
|
||||
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
|
||||
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
|
||||
|
||||
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
|
||||
dnl to access previously installed libraries. The basic assumption is that
|
||||
dnl a user will want packages to use other packages he previously installed
|
||||
dnl with the same --prefix option.
|
||||
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
|
||||
dnl libraries, but is otherwise very convenient.
|
||||
AC_DEFUN([AC_LIB_PREFIX],
|
||||
[
|
||||
AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
||||
dnl By default, look in $includedir and $libdir.
|
||||
use_additional=yes
|
||||
AC_LIB_WITH_FINAL_PREFIX([
|
||||
eval additional_includedir=\"$includedir\"
|
||||
eval additional_libdir=\"$libdir\"
|
||||
])
|
||||
AC_LIB_ARG_WITH([lib-prefix],
|
||||
[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
|
||||
--without-lib-prefix don't search for libraries in includedir and libdir],
|
||||
[
|
||||
if test "X$withval" = "Xno"; then
|
||||
use_additional=no
|
||||
else
|
||||
if test "X$withval" = "X"; then
|
||||
AC_LIB_WITH_FINAL_PREFIX([
|
||||
eval additional_includedir=\"$includedir\"
|
||||
eval additional_libdir=\"$libdir\"
|
||||
])
|
||||
else
|
||||
additional_includedir="$withval/include"
|
||||
additional_libdir="$withval/lib"
|
||||
fi
|
||||
fi
|
||||
])
|
||||
if test $use_additional = yes; then
|
||||
dnl Potentially add $additional_includedir to $CPPFLAGS.
|
||||
dnl But don't add it
|
||||
dnl 1. if it's the standard /usr/include,
|
||||
dnl 2. if it's already present in $CPPFLAGS,
|
||||
dnl 3. if it's /usr/local/include and we are using GCC on Linux,
|
||||
dnl 4. if it doesn't exist as a directory.
|
||||
if test "X$additional_includedir" != "X/usr/include"; then
|
||||
haveit=
|
||||
for x in $CPPFLAGS; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
if test "X$x" = "X-I$additional_includedir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
if test "X$additional_includedir" = "X/usr/local/include"; then
|
||||
if test -n "$GCC"; then
|
||||
case $host_os in
|
||||
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
if test -z "$haveit"; then
|
||||
if test -d "$additional_includedir"; then
|
||||
dnl Really add $additional_includedir to $CPPFLAGS.
|
||||
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
dnl Potentially add $additional_libdir to $LDFLAGS.
|
||||
dnl But don't add it
|
||||
dnl 1. if it's the standard /usr/lib,
|
||||
dnl 2. if it's already present in $LDFLAGS,
|
||||
dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
|
||||
dnl 4. if it doesn't exist as a directory.
|
||||
if test "X$additional_libdir" != "X/usr/lib"; then
|
||||
haveit=
|
||||
for x in $LDFLAGS; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
if test "X$x" = "X-L$additional_libdir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
if test "X$additional_libdir" = "X/usr/local/lib"; then
|
||||
if test -n "$GCC"; then
|
||||
case $host_os in
|
||||
linux*) haveit=yes;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
if test -z "$haveit"; then
|
||||
if test -d "$additional_libdir"; then
|
||||
dnl Really add $additional_libdir to $LDFLAGS.
|
||||
LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
|
||||
dnl acl_final_exec_prefix, containing the values to which $prefix and
|
||||
dnl $exec_prefix will expand at the end of the configure script.
|
||||
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
|
||||
[
|
||||
dnl Unfortunately, prefix and exec_prefix get only finally determined
|
||||
dnl at the end of configure.
|
||||
if test "X$prefix" = "XNONE"; then
|
||||
acl_final_prefix="$ac_default_prefix"
|
||||
else
|
||||
acl_final_prefix="$prefix"
|
||||
fi
|
||||
if test "X$exec_prefix" = "XNONE"; then
|
||||
acl_final_exec_prefix='${prefix}'
|
||||
else
|
||||
acl_final_exec_prefix="$exec_prefix"
|
||||
fi
|
||||
acl_save_prefix="$prefix"
|
||||
prefix="$acl_final_prefix"
|
||||
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
|
||||
prefix="$acl_save_prefix"
|
||||
])
|
||||
|
||||
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
|
||||
dnl variables prefix and exec_prefix bound to the values they will have
|
||||
dnl at the end of the configure script.
|
||||
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
|
||||
[
|
||||
acl_save_prefix="$prefix"
|
||||
prefix="$acl_final_prefix"
|
||||
acl_save_exec_prefix="$exec_prefix"
|
||||
exec_prefix="$acl_final_exec_prefix"
|
||||
$1
|
||||
exec_prefix="$acl_save_exec_prefix"
|
||||
prefix="$acl_save_prefix"
|
||||
])
|
||||
|
||||
# lib-link.m4 serial 6 (gettext-0.14.3)
|
||||
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl From Bruno Haible.
|
||||
|
||||
AC_PREREQ(2.50)
|
||||
|
||||
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
|
||||
dnl the libraries corresponding to explicit and implicit dependencies.
|
||||
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
|
||||
dnl augments the CPPFLAGS variable.
|
||||
AC_DEFUN([AC_LIB_LINKFLAGS],
|
||||
[
|
||||
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
||||
AC_REQUIRE([AC_LIB_RPATH])
|
||||
define([Name],[translit([$1],[./-], [___])])
|
||||
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
||||
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
||||
AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
|
||||
AC_LIB_LINKFLAGS_BODY([$1], [$2])
|
||||
ac_cv_lib[]Name[]_libs="$LIB[]NAME"
|
||||
ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
|
||||
ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
|
||||
])
|
||||
LIB[]NAME="$ac_cv_lib[]Name[]_libs"
|
||||
LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
|
||||
INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
|
||||
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
||||
AC_SUBST([LIB]NAME)
|
||||
AC_SUBST([LTLIB]NAME)
|
||||
dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
|
||||
dnl results of this search when this library appears as a dependency.
|
||||
HAVE_LIB[]NAME=yes
|
||||
undefine([Name])
|
||||
undefine([NAME])
|
||||
])
|
||||
|
||||
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
|
||||
dnl searches for libname and the libraries corresponding to explicit and
|
||||
dnl implicit dependencies, together with the specified include files and
|
||||
dnl the ability to compile and link the specified testcode. If found, it
|
||||
dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
|
||||
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
|
||||
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
|
||||
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
|
||||
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
|
||||
[
|
||||
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
||||
AC_REQUIRE([AC_LIB_RPATH])
|
||||
define([Name],[translit([$1],[./-], [___])])
|
||||
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
||||
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
||||
|
||||
dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
|
||||
dnl accordingly.
|
||||
AC_LIB_LINKFLAGS_BODY([$1], [$2])
|
||||
|
||||
dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
|
||||
dnl because if the user has installed lib[]Name and not disabled its use
|
||||
dnl via --without-lib[]Name-prefix, he wants to use it.
|
||||
ac_save_CPPFLAGS="$CPPFLAGS"
|
||||
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
||||
|
||||
AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $LIB[]NAME"
|
||||
AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
|
||||
LIBS="$ac_save_LIBS"
|
||||
])
|
||||
if test "$ac_cv_lib[]Name" = yes; then
|
||||
HAVE_LIB[]NAME=yes
|
||||
AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
|
||||
AC_MSG_CHECKING([how to link with lib[]$1])
|
||||
AC_MSG_RESULT([$LIB[]NAME])
|
||||
else
|
||||
HAVE_LIB[]NAME=no
|
||||
dnl If $LIB[]NAME didn't lead to a usable library, we don't need
|
||||
dnl $INC[]NAME either.
|
||||
CPPFLAGS="$ac_save_CPPFLAGS"
|
||||
LIB[]NAME=
|
||||
LTLIB[]NAME=
|
||||
fi
|
||||
AC_SUBST([HAVE_LIB]NAME)
|
||||
AC_SUBST([LIB]NAME)
|
||||
AC_SUBST([LTLIB]NAME)
|
||||
undefine([Name])
|
||||
undefine([NAME])
|
||||
])
|
||||
|
||||
dnl Determine the platform dependent parameters needed to use rpath:
|
||||
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
|
||||
dnl hardcode_direct, hardcode_minus_L.
|
||||
AC_DEFUN([AC_LIB_RPATH],
|
||||
[
|
||||
dnl Tell automake >= 1.10 to complain if config.rpath is missing.
|
||||
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
|
||||
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
|
||||
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
|
||||
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
|
||||
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
|
||||
AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
|
||||
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
|
||||
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
|
||||
. ./conftest.sh
|
||||
rm -f ./conftest.sh
|
||||
acl_cv_rpath=done
|
||||
])
|
||||
wl="$acl_cv_wl"
|
||||
libext="$acl_cv_libext"
|
||||
shlibext="$acl_cv_shlibext"
|
||||
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
|
||||
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
|
||||
hardcode_direct="$acl_cv_hardcode_direct"
|
||||
hardcode_minus_L="$acl_cv_hardcode_minus_L"
|
||||
dnl Determine whether the user wants rpath handling at all.
|
||||
AC_ARG_ENABLE(rpath,
|
||||
[ --disable-rpath do not hardcode runtime library paths],
|
||||
:, enable_rpath=yes)
|
||||
])
|
||||
|
||||
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
|
||||
dnl the libraries corresponding to explicit and implicit dependencies.
|
||||
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
|
||||
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
|
||||
[
|
||||
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
||||
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
||||
dnl By default, look in $includedir and $libdir.
|
||||
use_additional=yes
|
||||
AC_LIB_WITH_FINAL_PREFIX([
|
||||
eval additional_includedir=\"$includedir\"
|
||||
eval additional_libdir=\"$libdir\"
|
||||
])
|
||||
AC_LIB_ARG_WITH([lib$1-prefix],
|
||||
[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
|
||||
--without-lib$1-prefix don't search for lib$1 in includedir and libdir],
|
||||
[
|
||||
if test "X$withval" = "Xno"; then
|
||||
use_additional=no
|
||||
else
|
||||
if test "X$withval" = "X"; then
|
||||
AC_LIB_WITH_FINAL_PREFIX([
|
||||
eval additional_includedir=\"$includedir\"
|
||||
eval additional_libdir=\"$libdir\"
|
||||
])
|
||||
else
|
||||
additional_includedir="$withval/include"
|
||||
additional_libdir="$withval/lib"
|
||||
fi
|
||||
fi
|
||||
])
|
||||
dnl Search the library and its dependencies in $additional_libdir and
|
||||
dnl $LDFLAGS. Using breadth-first-seach.
|
||||
LIB[]NAME=
|
||||
LTLIB[]NAME=
|
||||
INC[]NAME=
|
||||
rpathdirs=
|
||||
ltrpathdirs=
|
||||
names_already_handled=
|
||||
names_next_round='$1 $2'
|
||||
while test -n "$names_next_round"; do
|
||||
names_this_round="$names_next_round"
|
||||
names_next_round=
|
||||
for name in $names_this_round; do
|
||||
already_handled=
|
||||
for n in $names_already_handled; do
|
||||
if test "$n" = "$name"; then
|
||||
already_handled=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$already_handled"; then
|
||||
names_already_handled="$names_already_handled $name"
|
||||
dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
|
||||
dnl or AC_LIB_HAVE_LINKFLAGS call.
|
||||
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
|
||||
eval value=\"\$HAVE_LIB$uppername\"
|
||||
if test -n "$value"; then
|
||||
if test "$value" = yes; then
|
||||
eval value=\"\$LIB$uppername\"
|
||||
test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
|
||||
eval value=\"\$LTLIB$uppername\"
|
||||
test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
|
||||
else
|
||||
dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
|
||||
dnl that this library doesn't exist. So just drop it.
|
||||
:
|
||||
fi
|
||||
else
|
||||
dnl Search the library lib$name in $additional_libdir and $LDFLAGS
|
||||
dnl and the already constructed $LIBNAME/$LTLIBNAME.
|
||||
found_dir=
|
||||
found_la=
|
||||
found_so=
|
||||
found_a=
|
||||
if test $use_additional = yes; then
|
||||
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
|
||||
found_dir="$additional_libdir"
|
||||
found_so="$additional_libdir/lib$name.$shlibext"
|
||||
if test -f "$additional_libdir/lib$name.la"; then
|
||||
found_la="$additional_libdir/lib$name.la"
|
||||
fi
|
||||
else
|
||||
if test -f "$additional_libdir/lib$name.$libext"; then
|
||||
found_dir="$additional_libdir"
|
||||
found_a="$additional_libdir/lib$name.$libext"
|
||||
if test -f "$additional_libdir/lib$name.la"; then
|
||||
found_la="$additional_libdir/lib$name.la"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if test "X$found_dir" = "X"; then
|
||||
for x in $LDFLAGS $LTLIB[]NAME; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
case "$x" in
|
||||
-L*)
|
||||
dir=`echo "X$x" | sed -e 's/^X-L//'`
|
||||
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
|
||||
found_dir="$dir"
|
||||
found_so="$dir/lib$name.$shlibext"
|
||||
if test -f "$dir/lib$name.la"; then
|
||||
found_la="$dir/lib$name.la"
|
||||
fi
|
||||
else
|
||||
if test -f "$dir/lib$name.$libext"; then
|
||||
found_dir="$dir"
|
||||
found_a="$dir/lib$name.$libext"
|
||||
if test -f "$dir/lib$name.la"; then
|
||||
found_la="$dir/lib$name.la"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
if test "X$found_dir" != "X"; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if test "X$found_dir" != "X"; then
|
||||
dnl Found the library.
|
||||
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
|
||||
if test "X$found_so" != "X"; then
|
||||
dnl Linking with a shared library. We attempt to hardcode its
|
||||
dnl directory into the executable's runpath, unless it's the
|
||||
dnl standard /usr/lib.
|
||||
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
|
||||
dnl No hardcoding is needed.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
||||
else
|
||||
dnl Use an explicit option to hardcode DIR into the resulting
|
||||
dnl binary.
|
||||
dnl Potentially add DIR to ltrpathdirs.
|
||||
dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
|
||||
haveit=
|
||||
for x in $ltrpathdirs; do
|
||||
if test "X$x" = "X$found_dir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
ltrpathdirs="$ltrpathdirs $found_dir"
|
||||
fi
|
||||
dnl The hardcoding into $LIBNAME is system dependent.
|
||||
if test "$hardcode_direct" = yes; then
|
||||
dnl Using DIR/libNAME.so during linking hardcodes DIR into the
|
||||
dnl resulting binary.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
||||
else
|
||||
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
|
||||
dnl Use an explicit option to hardcode DIR into the resulting
|
||||
dnl binary.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
||||
dnl Potentially add DIR to rpathdirs.
|
||||
dnl The rpathdirs will be appended to $LIBNAME at the end.
|
||||
haveit=
|
||||
for x in $rpathdirs; do
|
||||
if test "X$x" = "X$found_dir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
rpathdirs="$rpathdirs $found_dir"
|
||||
fi
|
||||
else
|
||||
dnl Rely on "-L$found_dir".
|
||||
dnl But don't add it if it's already contained in the LDFLAGS
|
||||
dnl or the already constructed $LIBNAME
|
||||
haveit=
|
||||
for x in $LDFLAGS $LIB[]NAME; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
if test "X$x" = "X-L$found_dir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
|
||||
fi
|
||||
if test "$hardcode_minus_L" != no; then
|
||||
dnl FIXME: Not sure whether we should use
|
||||
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
|
||||
dnl here.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
||||
else
|
||||
dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
|
||||
dnl here, because this doesn't fit in flags passed to the
|
||||
dnl compiler. So give up. No hardcoding. This affects only
|
||||
dnl very old systems.
|
||||
dnl FIXME: Not sure whether we should use
|
||||
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
|
||||
dnl here.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
else
|
||||
if test "X$found_a" != "X"; then
|
||||
dnl Linking with a static library.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
|
||||
else
|
||||
dnl We shouldn't come here, but anyway it's good to have a
|
||||
dnl fallback.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
|
||||
fi
|
||||
fi
|
||||
dnl Assume the include files are nearby.
|
||||
additional_includedir=
|
||||
case "$found_dir" in
|
||||
*/lib | */lib/)
|
||||
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
|
||||
additional_includedir="$basedir/include"
|
||||
;;
|
||||
esac
|
||||
if test "X$additional_includedir" != "X"; then
|
||||
dnl Potentially add $additional_includedir to $INCNAME.
|
||||
dnl But don't add it
|
||||
dnl 1. if it's the standard /usr/include,
|
||||
dnl 2. if it's /usr/local/include and we are using GCC on Linux,
|
||||
dnl 3. if it's already present in $CPPFLAGS or the already
|
||||
dnl constructed $INCNAME,
|
||||
dnl 4. if it doesn't exist as a directory.
|
||||
if test "X$additional_includedir" != "X/usr/include"; then
|
||||
haveit=
|
||||
if test "X$additional_includedir" = "X/usr/local/include"; then
|
||||
if test -n "$GCC"; then
|
||||
case $host_os in
|
||||
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
if test -z "$haveit"; then
|
||||
for x in $CPPFLAGS $INC[]NAME; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
if test "X$x" = "X-I$additional_includedir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
if test -d "$additional_includedir"; then
|
||||
dnl Really add $additional_includedir to $INCNAME.
|
||||
INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
dnl Look for dependencies.
|
||||
if test -n "$found_la"; then
|
||||
dnl Read the .la file. It defines the variables
|
||||
dnl dlname, library_names, old_library, dependency_libs, current,
|
||||
dnl age, revision, installed, dlopen, dlpreopen, libdir.
|
||||
save_libdir="$libdir"
|
||||
case "$found_la" in
|
||||
*/* | *\\*) . "$found_la" ;;
|
||||
*) . "./$found_la" ;;
|
||||
esac
|
||||
libdir="$save_libdir"
|
||||
dnl We use only dependency_libs.
|
||||
for dep in $dependency_libs; do
|
||||
case "$dep" in
|
||||
-L*)
|
||||
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
||||
dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
|
||||
dnl But don't add it
|
||||
dnl 1. if it's the standard /usr/lib,
|
||||
dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
|
||||
dnl 3. if it's already present in $LDFLAGS or the already
|
||||
dnl constructed $LIBNAME,
|
||||
dnl 4. if it doesn't exist as a directory.
|
||||
if test "X$additional_libdir" != "X/usr/lib"; then
|
||||
haveit=
|
||||
if test "X$additional_libdir" = "X/usr/local/lib"; then
|
||||
if test -n "$GCC"; then
|
||||
case $host_os in
|
||||
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
if test -z "$haveit"; then
|
||||
haveit=
|
||||
for x in $LDFLAGS $LIB[]NAME; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
if test "X$x" = "X-L$additional_libdir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
if test -d "$additional_libdir"; then
|
||||
dnl Really add $additional_libdir to $LIBNAME.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
|
||||
fi
|
||||
fi
|
||||
haveit=
|
||||
for x in $LDFLAGS $LTLIB[]NAME; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
if test "X$x" = "X-L$additional_libdir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
if test -d "$additional_libdir"; then
|
||||
dnl Really add $additional_libdir to $LTLIBNAME.
|
||||
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
-R*)
|
||||
dir=`echo "X$dep" | sed -e 's/^X-R//'`
|
||||
if test "$enable_rpath" != no; then
|
||||
dnl Potentially add DIR to rpathdirs.
|
||||
dnl The rpathdirs will be appended to $LIBNAME at the end.
|
||||
haveit=
|
||||
for x in $rpathdirs; do
|
||||
if test "X$x" = "X$dir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
rpathdirs="$rpathdirs $dir"
|
||||
fi
|
||||
dnl Potentially add DIR to ltrpathdirs.
|
||||
dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
|
||||
haveit=
|
||||
for x in $ltrpathdirs; do
|
||||
if test "X$x" = "X$dir"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
ltrpathdirs="$ltrpathdirs $dir"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
-l*)
|
||||
dnl Handle this in the next round.
|
||||
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
|
||||
;;
|
||||
*.la)
|
||||
dnl Handle this in the next round. Throw away the .la's
|
||||
dnl directory; it is already contained in a preceding -L
|
||||
dnl option.
|
||||
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
|
||||
;;
|
||||
*)
|
||||
dnl Most likely an immediate library name.
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
|
||||
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
else
|
||||
dnl Didn't find the library; assume it is in the system directories
|
||||
dnl known to the linker and runtime loader. (All the system
|
||||
dnl directories known to the linker should also be known to the
|
||||
dnl runtime loader, otherwise the system is severely misconfigured.)
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
|
||||
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
if test "X$rpathdirs" != "X"; then
|
||||
if test -n "$hardcode_libdir_separator"; then
|
||||
dnl Weird platform: only the last -rpath option counts, the user must
|
||||
dnl pass all path elements in one option. We can arrange that for a
|
||||
dnl single library, but not when more than one $LIBNAMEs are used.
|
||||
alldirs=
|
||||
for found_dir in $rpathdirs; do
|
||||
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
|
||||
done
|
||||
dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
|
||||
acl_save_libdir="$libdir"
|
||||
libdir="$alldirs"
|
||||
eval flag=\"$hardcode_libdir_flag_spec\"
|
||||
libdir="$acl_save_libdir"
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
||||
else
|
||||
dnl The -rpath options are cumulative.
|
||||
for found_dir in $rpathdirs; do
|
||||
acl_save_libdir="$libdir"
|
||||
libdir="$found_dir"
|
||||
eval flag=\"$hardcode_libdir_flag_spec\"
|
||||
libdir="$acl_save_libdir"
|
||||
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
if test "X$ltrpathdirs" != "X"; then
|
||||
dnl When using libtool, the option that works for both libraries and
|
||||
dnl executables is -R. The -R options are cumulative.
|
||||
for found_dir in $ltrpathdirs; do
|
||||
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
|
||||
done
|
||||
fi
|
||||
])
|
||||
|
||||
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
|
||||
dnl unless already present in VAR.
|
||||
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
|
||||
dnl contains two or three consecutive elements that belong together.
|
||||
AC_DEFUN([AC_LIB_APPENDTOVAR],
|
||||
[
|
||||
for element in [$2]; do
|
||||
haveit=
|
||||
for x in $[$1]; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
if test "X$x" = "X$element"; then
|
||||
haveit=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$haveit"; then
|
||||
[$1]="${[$1]}${[$1]:+ }$element"
|
||||
fi
|
||||
done
|
||||
])
|
||||
|
||||
# lib-ld.m4 serial 3 (gettext-0.13)
|
||||
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl Subroutines of libtool.m4,
|
||||
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
|
||||
dnl with libtool.m4.
|
||||
|
||||
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
|
||||
AC_DEFUN([AC_LIB_PROG_LD_GNU],
|
||||
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
|
||||
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
||||
case `$LD -v 2>&1 </dev/null` in
|
||||
*GNU* | *'with BFD'*)
|
||||
acl_cv_prog_gnu_ld=yes ;;
|
||||
*)
|
||||
acl_cv_prog_gnu_ld=no ;;
|
||||
esac])
|
||||
with_gnu_ld=$acl_cv_prog_gnu_ld
|
||||
])
|
||||
|
||||
dnl From libtool-1.4. Sets the variable LD.
|
||||
AC_DEFUN([AC_LIB_PROG_LD],
|
||||
[AC_ARG_WITH(gnu-ld,
|
||||
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
|
||||
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
|
||||
AC_REQUIRE([AC_PROG_CC])dnl
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||
# Prepare PATH_SEPARATOR.
|
||||
# The user is always right.
|
||||
if test "${PATH_SEPARATOR+set}" != set; then
|
||||
echo "#! /bin/sh" >conf$$.sh
|
||||
echo "exit 0" >>conf$$.sh
|
||||
chmod +x conf$$.sh
|
||||
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
||||
PATH_SEPARATOR=';'
|
||||
else
|
||||
PATH_SEPARATOR=:
|
||||
fi
|
||||
rm -f conf$$.sh
|
||||
fi
|
||||
ac_prog=ld
|
||||
if test "$GCC" = yes; then
|
||||
# Check if gcc -print-prog-name=ld gives a path.
|
||||
AC_MSG_CHECKING([for ld used by GCC])
|
||||
case $host in
|
||||
*-*-mingw*)
|
||||
# gcc leaves a trailing carriage return which upsets mingw
|
||||
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
||||
*)
|
||||
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
||||
esac
|
||||
case $ac_prog in
|
||||
# Accept absolute paths.
|
||||
[[\\/]* | [A-Za-z]:[\\/]*)]
|
||||
[re_direlt='/[^/][^/]*/\.\./']
|
||||
# Canonicalize the path of ld
|
||||
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
||||
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
||||
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
||||
done
|
||||
test -z "$LD" && LD="$ac_prog"
|
||||
;;
|
||||
"")
|
||||
# If it fails, then pretend we aren't using GCC.
|
||||
ac_prog=ld
|
||||
;;
|
||||
*)
|
||||
# If it is relative, then search for the first ld in PATH.
|
||||
with_gnu_ld=unknown
|
||||
;;
|
||||
esac
|
||||
elif test "$with_gnu_ld" = yes; then
|
||||
AC_MSG_CHECKING([for GNU ld])
|
||||
else
|
||||
AC_MSG_CHECKING([for non-GNU ld])
|
||||
fi
|
||||
AC_CACHE_VAL(acl_cv_path_LD,
|
||||
[if test -z "$LD"; then
|
||||
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
||||
for ac_dir in $PATH; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
||||
acl_cv_path_LD="$ac_dir/$ac_prog"
|
||||
# Check to see if the program is GNU ld. I'd rather use --version,
|
||||
# but apparently some GNU ld's only accept -v.
|
||||
# Break only if it was the GNU/non-GNU ld that we prefer.
|
||||
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
|
||||
*GNU* | *'with BFD'*)
|
||||
test "$with_gnu_ld" != no && break ;;
|
||||
*)
|
||||
test "$with_gnu_ld" != yes && break ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
IFS="$ac_save_ifs"
|
||||
else
|
||||
acl_cv_path_LD="$LD" # Let the user override the test with a path.
|
||||
fi])
|
||||
LD="$acl_cv_path_LD"
|
||||
if test -n "$LD"; then
|
||||
AC_MSG_RESULT($LD)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
||||
AC_LIB_PROG_LD_GNU
|
||||
])
|
||||
|
||||
dnl Macro: anope_CHECK_TYPE_SIZES
|
||||
dnl
|
||||
dnl Check the size of several types and define a valid int16_t and int32_t.
|
||||
dnl
|
||||
AC_DEFUN(anope_CHECK_TYPE_SIZES,
|
||||
[dnl Check type sizes
|
||||
AC_CHECK_SIZEOF(short)
|
||||
AC_CHECK_SIZEOF(int)
|
||||
AC_CHECK_SIZEOF(long)
|
||||
if test "$ac_cv_sizeof_int" = 2 ; then
|
||||
AC_CHECK_TYPE(int16_t, int)
|
||||
AC_CHECK_TYPE(u_int16_t, unsigned int)
|
||||
elif test "$ac_cv_sizeof_short" = 2 ; then
|
||||
AC_CHECK_TYPE(int16_t, short)
|
||||
AC_CHECK_TYPE(u_int16_t, unsigned short)
|
||||
else
|
||||
AC_MSG_ERROR([Cannot find a type with size of 16 bits])
|
||||
fi
|
||||
if test "$ac_cv_sizeof_int" = 4 ; then
|
||||
AC_CHECK_TYPE(int32_t, int)
|
||||
AC_CHECK_TYPE(u_int32_t, unsigned int)
|
||||
elif test "$ac_cv_sizeof_short" = 4 ; then
|
||||
AC_CHECK_TYPE(int32_t, short)
|
||||
AC_CHECK_TYPE(u_int32_t, unsigned short)
|
||||
elif test "$ac_cv_sizeof_long" = 4 ; then
|
||||
AC_CHECK_TYPE(int32_t, long)
|
||||
AC_CHECK_TYPE(u_int32_t, unsigned long)
|
||||
else
|
||||
AC_MSG_ERROR([Cannot find a type with size of 32 bits])
|
||||
fi
|
||||
])
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
dnl Macro: anope_CHECK_TYPE_SIZES
|
||||
dnl
|
||||
dnl Check the size of several types and define a valid int16_t and int32_t.
|
||||
dnl
|
||||
AC_DEFUN(anope_CHECK_TYPE_SIZES,
|
||||
[dnl Check type sizes
|
||||
AC_CHECK_SIZEOF(short)
|
||||
AC_CHECK_SIZEOF(int)
|
||||
AC_CHECK_SIZEOF(long)
|
||||
if test "$ac_cv_sizeof_int" = 2 ; then
|
||||
AC_CHECK_TYPE(int16_t, int)
|
||||
AC_CHECK_TYPE(u_int16_t, unsigned int)
|
||||
elif test "$ac_cv_sizeof_short" = 2 ; then
|
||||
AC_CHECK_TYPE(int16_t, short)
|
||||
AC_CHECK_TYPE(u_int16_t, unsigned short)
|
||||
else
|
||||
AC_MSG_ERROR([Cannot find a type with size of 16 bits])
|
||||
fi
|
||||
if test "$ac_cv_sizeof_int" = 4 ; then
|
||||
AC_CHECK_TYPE(int32_t, int)
|
||||
AC_CHECK_TYPE(u_int32_t, unsigned int)
|
||||
elif test "$ac_cv_sizeof_short" = 4 ; then
|
||||
AC_CHECK_TYPE(int32_t, short)
|
||||
AC_CHECK_TYPE(u_int32_t, unsigned short)
|
||||
elif test "$ac_cv_sizeof_long" = 4 ; then
|
||||
AC_CHECK_TYPE(int32_t, long)
|
||||
AC_CHECK_TYPE(u_int32_t, unsigned long)
|
||||
else
|
||||
AC_MSG_ERROR([Cannot find a type with size of 32 bits])
|
||||
fi
|
||||
])
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Generating build information using aclocal, autoheader, automake and autoconf."
|
||||
echo
|
||||
|
||||
# Regerate configuration files
|
||||
aclocal
|
||||
autoheader
|
||||
automake --gnu --add-missing --copy
|
||||
autoconf
|
||||
|
||||
echo
|
||||
echo "Now you are ready to run ./configure"
|
||||
Vendored
-1526
File diff suppressed because it is too large
Load Diff
Vendored
-1662
File diff suppressed because it is too large
Load Diff
-303
@@ -1,303 +0,0 @@
|
||||
dnl autoconf.in for Services.
|
||||
dnl
|
||||
dnl Anope (c) 2003-2007 Anope team
|
||||
dnl Contact us at dev@anope.org
|
||||
|
||||
dnl This program is free but copyrighted software; see the file COPYING for
|
||||
dnl details.
|
||||
|
||||
dnl Based heavily on the Unreal configure.in script, and extra thanks to
|
||||
dnl codemastr from UnrealIRCD.
|
||||
|
||||
AC_INIT
|
||||
|
||||
# Clear out any CFLAGS (cept -g) the os is using, usually -g -O2
|
||||
CFLAGS="-g"
|
||||
|
||||
# If no bindir, we tell him to run ./Config.
|
||||
if test "${with_bindir+set}" != set || test "${with_datadir+set}" != set; then
|
||||
echo "You might want to run ./Config or provide some parameters to this script."
|
||||
echo "./configure --help for information about this script"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
AC_CONFIG_SRCDIR([src/actions.c])
|
||||
AC_CONFIG_HEADER(include/sysconf.h)
|
||||
AC_PROG_CC
|
||||
if test "$ac_cv_c_compiler_gnu" = "yes"; then
|
||||
# CFLAGS="$CFLAGS -funsigned-char"
|
||||
AC_CACHE_CHECK(if gcc has a working -pipe, ac_cv_pipe, [
|
||||
save_cflags="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -pipe"
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[ac_cv_pipe="yes"],[ac_cv_pipe="no"])
|
||||
CFLAGS="$save_cflags"
|
||||
])
|
||||
if test "$ac_cv_pipe" = "yes"; then
|
||||
CFLAGS="-pipe $CFLAGS"
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl CFLAGS="$CFLAGS -W -Wall"
|
||||
|
||||
AC_PATH_PROG(RM,rm)
|
||||
AC_PATH_PROG(CP,cp)
|
||||
AC_PATH_PROG(TOUCH,touch)
|
||||
AC_PATH_PROG(INSTALL,install)
|
||||
AC_CHECK_LIB(nsl,inet_ntoa,ANOPELIBS="$ANOPELIBS-lnsl ")
|
||||
AC_CHECK_LIB(socket, socket,ANOPELIBS="$ANOPELIBS-lsocket ")
|
||||
AC_CHECK_LIB(resolv, res_query,ANOPELIBS="$ANOPELIBS-lresolv ")
|
||||
AC_CHECK_LIB(bsd, revoke,ANOPELIBS="$ANOPELIBS-lbsd ")
|
||||
|
||||
dnl Does this platform require array notation to assign to a va_list?
|
||||
dnl If cross-compiling, we assume va_list is "normal". If this breaks
|
||||
dnl you, set ac_cv_valistisarray=true and maybe define HAVE_VA_LIST_AS_ARRAY
|
||||
dnl also just to be sure.
|
||||
|
||||
dnl NOTE: this autoconf test is taken from mozilla: www.mozilla.org.
|
||||
|
||||
AC_MSG_CHECKING(whether va_list assignments need array notation)
|
||||
AC_CACHE_VAL(ac_cv_valistisarray,
|
||||
[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
void foo(int i, ...) {
|
||||
va_list ap1, ap2;
|
||||
va_start(ap1, i);
|
||||
ap2 = ap1;
|
||||
if (va_arg(ap2, int) != 123 || va_arg(ap1, int) != 123) { exit(1); }
|
||||
va_end(ap1); va_end(ap2);
|
||||
}
|
||||
int main()
|
||||
{ foo(0, 123); return(0); }]])],[ac_cv_valistisarray=false],[ac_cv_valistisarray=true],[ac_cv_valistisarray=false])])
|
||||
|
||||
if test "$ac_cv_valistisarray" = true ; then
|
||||
AC_DEFINE(HAVE_VA_LIST_AS_ARRAY,[1],[va_list as array])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
|
||||
DIS_MYSQL=" MySQL: No"
|
||||
AC_ARG_WITH(mysql, [ --without-mysql Do not use MySQL or attempt to find it],,[
|
||||
AC_ARG_WITH(mysqlconfig-path, [ --with-mysqlconfig-path=PATH Complete path to the mysql_config executable],
|
||||
mysql_config_path="$withval", mysql_config_path="")
|
||||
MYSQLCONF=""
|
||||
if test "$mysql_config_path" != ""; then
|
||||
if test -x "$mysql_config_path"; then
|
||||
MYSQLCONF="$mysql_config_path"
|
||||
echo "checking for mysql_config... $MYSQLCONF" >&6
|
||||
fi
|
||||
fi
|
||||
if test "$MYSQLCONF" = ""; then
|
||||
AC_PATH_PROG(MYSQLCONF,mysql_config, "")
|
||||
fi
|
||||
if test "$MYSQLCONF" != ""; then
|
||||
hold_cflags="$CFLAGS"
|
||||
hold_ldflags="$LDFLAGS"
|
||||
if test "$MYSQL_CFLAGS" = ""; then
|
||||
MYSQL_CFLAGS="`$MYSQLCONF --cflags`"
|
||||
fi
|
||||
if test "$MYSQL_LDFLAGS" = ""; then
|
||||
MYSQL_LDFLAGS="`$MYSQLCONF --libs`"
|
||||
fi
|
||||
CFLAGS="$CFLAGS $MYSQL_CFLAGS"
|
||||
LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS"
|
||||
echo $ECHO_N "checking if mysql_config produces valid values... $ECHO_C" >&6
|
||||
AC_TRY_RUN([
|
||||
#include <mysql.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
MYSQL *mysql = mysql_init(0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
], ac_cv_mysql_valid=yes, ac_cv_mysql_valid=no)
|
||||
echo $ac_cv_mysql_valid >&6
|
||||
if test "$ac_cv_mysql_valid" = "yes"; then
|
||||
DIS_MYSQL=" MySQL: Yes"
|
||||
else
|
||||
CFLAGS="$hold_cflags"
|
||||
LDFLAGS="$hold_ldflags"
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING(whether this is a bit or little endian system)
|
||||
AC_TRY_RUN([
|
||||
int main()
|
||||
{
|
||||
short s = 1;
|
||||
short* ptr = &s;
|
||||
unsigned char c = *((char*)ptr);
|
||||
return c;
|
||||
}
|
||||
]
|
||||
, AC_DEFINE(BIG_ENDIAN)
|
||||
AC_MSG_RESULT(big)
|
||||
, AC_DEFINE(LITTLE_ENDIAN)
|
||||
AC_MSG_RESULT(little)
|
||||
)
|
||||
|
||||
AC_SUBST(ANOPELIBS)
|
||||
AC_SUBST(LDFLAGS)
|
||||
|
||||
AC_CHECK_HEADER(sys/types.h,AC_DEFINE(HAS_SYS_TYPES_H,1,"Has sys/types.h"))
|
||||
dnl module checking based on Unreal's module checking code
|
||||
AC_DEFUN(AC_ENABLE_DYN,
|
||||
[
|
||||
AC_CHECK_FUNC(dlopen,, AC_CHECK_LIB(dl,dlopen,[
|
||||
ANOPELIBS="$ANOPELIBS -ldl"
|
||||
],
|
||||
[
|
||||
AC_ERROR("dlopen() is required for Anope to be compiled and used. Sorry.")
|
||||
]))
|
||||
|
||||
hold_cflags=$CFLAGS
|
||||
CFLAGS="$CFLAGS -export-dynamic"
|
||||
AC_CACHE_CHECK(if we need the -export-dynamic flag, ac_cv_export_dynamic, [
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int i;]])],[ac_cv_export_dynamic=yes],[ac_cv_export_dynamic=no])])
|
||||
if test "$ac_cv_export_dynamic" = "no"; then
|
||||
CFLAGS=$hold_cflags
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK(for compiler option to produce PIC,ac_cv_pic,[
|
||||
if test "$ac_cv_c_compiler_gnu" = "yes"; then
|
||||
ac_cv_pic="-fPIC -DPIC -shared"
|
||||
case `uname -s` in
|
||||
Darwin*[)]
|
||||
ac_cv_pic="-bundle -flat_namespace -undefined suppress"
|
||||
;;
|
||||
HP-UX*[)]
|
||||
ac_cv_pic="-fPIC"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
case `uname -s` in
|
||||
SunOS*[)]
|
||||
ac_cv_pic="-KPIC -DPIC -G"
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
])
|
||||
|
||||
if test "$ac_cv_c_compiler_gnu" = "yes"; then
|
||||
case `uname -s` in
|
||||
Darwin*[)]
|
||||
SHARED="-bundle -flat_namespace -undefined suppress"
|
||||
AC_SUBST(SHARED)
|
||||
;;
|
||||
*[)]
|
||||
SHARED="-shared"
|
||||
AC_SUBST(SHARED)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK(if your system prepends an underscore on symbols,ac_cv_underscore,[
|
||||
cat >uscore.c << __EOF__
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
__EOF__
|
||||
$CC -o uscore $CFLAGS uscore.c 1>&5
|
||||
if test -z "`strings -a uscore |grep '^_main$'`"; then
|
||||
ac_cv_underscore=no
|
||||
else
|
||||
ac_cv_underscore=yes
|
||||
fi
|
||||
|
||||
rm -f uscore uscore.c
|
||||
])
|
||||
if test "$ac_cv_underscore" = "yes"; then
|
||||
AC_DEFINE(DL_PREFIX,"_","Underscore needed for dlopen")
|
||||
else
|
||||
AC_DEFINE(DL_PREFIX,"","No prefix needed for dlopen")
|
||||
fi
|
||||
|
||||
MODULEFLAGS=$ac_cv_pic
|
||||
AC_SUBST(MODULEFLAGS)
|
||||
])
|
||||
|
||||
AC_ENABLE_DYN
|
||||
anope_CHECK_TYPE_SIZES
|
||||
|
||||
AC_CHECK_HEADER(strings.h,AC_DEFINE(HAVE_STRINGS_H,1,""))
|
||||
AC_CHECK_HEADER(sys/select.h,AC_DEFINE(HAVE_SYS_SELECT_H,1,""))
|
||||
AC_CHECK_HEADER(execinfo.h,AC_DEFINE(HAVE_BACKTRACE,1,""))
|
||||
|
||||
AC_CHECK_FUNCS(stricmp,AC_DEFINE(HAVE_STRICMP,1))
|
||||
AC_CHECK_FUNCS(strcasecmp,AC_DEFINE(HAVE_STRCASECMP,1))
|
||||
AC_CHECK_FUNCS(gettimeofday,AC_DEFINE(HAVE_GETTIMEOFDAY,1))
|
||||
AC_CHECK_FUNCS(setgrent,AC_DEFINE(HAVE_SETGRENT,1))
|
||||
AC_CHECK_FUNCS(umask,AC_DEFINE(HAVE_UMASK,1))
|
||||
AC_CHECK_FUNCS(fork,AC_DEFINE(HAVE_FORK,1))
|
||||
AC_CHECK_FUNCS(gethostbyname,AC_DEFINE(HAVE_GETHOSTBYNAME,1))
|
||||
AC_CHECK_FUNCS(gethostbyname_r,AC_DEFINE(HAVE_GETHOSTBYNAME_R,1))
|
||||
AC_CHECK_FUNCS(strlcpy,AC_DEFINE(HAVE_STRLCPY,1))
|
||||
AC_CHECK_FUNCS(strlcat,AC_DEFINE(HAVE_STRLCAT,1))
|
||||
|
||||
AC_ARG_WITH(rungroup, [ --with-rungroup=group Specify the rungroup for anope], [
|
||||
AC_DEFINE_UNQUOTED(RUNGROUP,"$withval","Run group")
|
||||
RUNGROUP=$withval
|
||||
])
|
||||
|
||||
AC_SUBST(RUNGROUP)
|
||||
|
||||
dnl AC_DEFINE_UNQUOTED(MYOSNAME,"`uname -a`","uname")
|
||||
|
||||
AC_ARG_WITH(permissions, [ --with-permissions=permissions Specify the default permissions for anope], AC_DEFINE_UNQUOTED(DEFUMASK,$withval,"Default umask permissions"), AC_DEFINE(DEFUMASK, 007,"Default umask Permissions"))
|
||||
|
||||
AC_ARG_WITH(bindir, [ --with-bindir=bindir Specify the default binary dir for anope], [
|
||||
AC_DEFINE_UNQUOTED(SERVICES_BIN,"${withval}/services","Binary Dir")
|
||||
BINDEST=$withval
|
||||
DATDEST=$withval
|
||||
MODULE_PATH=${withval}/modules/
|
||||
])
|
||||
|
||||
MAKEBIN=`pwd`/run-cc.pl
|
||||
|
||||
AC_ARG_WITH(makebin, [--with-makebin=run-cc.pl Specify the default make binary to use],[MAKEBIN=$withval])
|
||||
|
||||
AC_SUBST(BINDEST)
|
||||
AC_SUBST(MAKEBIN)
|
||||
|
||||
AC_ARG_WITH(datadir, [ --with-datadir=datadir Specify the location of the services data folder], [
|
||||
AC_DEFINE_UNQUOTED(SERVICES_DIR,"$withval","services bin dir")
|
||||
AC_DEFINE_UNQUOTED(MODULE_PATH,"${withval}/modules/","Module dir")
|
||||
DATDEST=$withval
|
||||
MODULE_PATH=${withval}/modules/
|
||||
])
|
||||
|
||||
AC_SUBST(DATDEST)
|
||||
AC_SUBST(MODULE_PATH)
|
||||
|
||||
AC_ARG_WITH(optimization, [ --with-optimisation=1|2|3|4|5 Specify the optimisation level], [
|
||||
CFLAGS="$CFLAGS -O$withval"
|
||||
])
|
||||
|
||||
AC_ARG_WITH(debugsym, [ --with-debugsym Include debugging symbols], [
|
||||
CFLAGS="$CFLAGS -g"
|
||||
])
|
||||
|
||||
|
||||
AC_CONFIG_FILES( \
|
||||
Makefile \
|
||||
src/bin/anoperc \
|
||||
)
|
||||
|
||||
AC_OUTPUT
|
||||
|
||||
cat <<EOT
|
||||
|
||||
$DIS_MODULES
|
||||
$DIS_MYSQL
|
||||
|
||||
|
||||
|
||||
All done! Now run "make" (or possibly "gmake") to compile Anope.
|
||||
See the INSTALL, README and FAQ files if you have any problems.
|
||||
EOT
|
||||
|
||||
@@ -1,182 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.6
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canoncical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/local/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/local/bin/cmake -E remove -f
|
||||
|
||||
# The program to use to edit the cache.
|
||||
CMAKE_EDIT_COMMAND = /usr/local/bin/ccmake
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /celes/anope
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /celes/anope
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
||||
cd /celes/anope/include && /usr/local/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/include && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/include && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
cd /celes/anope/include && /usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
cd /celes/anope/include && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
cd /celes/anope/include && /usr/local/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles /celes/anope/include/CMakeFiles/progress.make
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 include/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 include/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 include/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 include/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
include/CMakeFiles/headers.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 include/CMakeFiles/headers.dir/rule
|
||||
.PHONY : include/CMakeFiles/headers.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
headers: include/CMakeFiles/headers.dir/rule
|
||||
.PHONY : headers
|
||||
|
||||
# fast build rule for target.
|
||||
headers/fast:
|
||||
cd /celes/anope && $(MAKE) -f include/CMakeFiles/headers.dir/build.make include/CMakeFiles/headers.dir/build
|
||||
.PHONY : headers/fast
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... edit_cache"
|
||||
@echo "... headers"
|
||||
@echo "... install"
|
||||
@echo "... install/local"
|
||||
@echo "... install/strip"
|
||||
@echo "... list_install_components"
|
||||
@echo "... rebuild_cache"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# Make file for Win32
|
||||
#
|
||||
# (C) 2003-2008 Anope Team
|
||||
# Contact us at info@anope.org
|
||||
#
|
||||
# Please read COPYING and README for further details.
|
||||
#
|
||||
# Based on the original code of Epona by Lara.
|
||||
# Based on the original code of Services by Andy Church.
|
||||
#
|
||||
# $Id:$
|
||||
#
|
||||
|
||||
###########################################################################
|
||||
|
||||
clean:
|
||||
-@erase language.h
|
||||
|
||||
spotless: clean
|
||||
-@erase sysconf.h version.h
|
||||
|
||||
distclean: spotless
|
||||
|
||||
|
||||
FRC:
|
||||
@@ -1,171 +0,0 @@
|
||||
/* include/sysconf.h.in. Generated from configure.in by autoheader. */
|
||||
|
||||
/* "Default umask Permissions" */
|
||||
#undef DEFUMASK
|
||||
|
||||
/* "No prefix needed for dlopen" */
|
||||
#undef DL_PREFIX
|
||||
|
||||
/* "Has sys/types.h" */
|
||||
#undef HAS_SYS_TYPES_H
|
||||
|
||||
/* "" */
|
||||
#undef HAVE_BACKTRACE
|
||||
|
||||
/* Define to 1 if you have the `fork' function. */
|
||||
#undef HAVE_FORK
|
||||
|
||||
/* Define to 1 if you have the `gethostbyname' function. */
|
||||
#undef HAVE_GETHOSTBYNAME
|
||||
|
||||
/* Define to 1 if you have the `gethostbyname_r' function. */
|
||||
#undef HAVE_GETHOSTBYNAME_R
|
||||
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
#undef HAVE_GETTIMEOFDAY
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the `setgrent' function. */
|
||||
#undef HAVE_SETGRENT
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the `strcasecmp' function. */
|
||||
#undef HAVE_STRCASECMP
|
||||
|
||||
/* Define to 1 if you have the `stricmp' function. */
|
||||
#undef HAVE_STRICMP
|
||||
|
||||
/* "" */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the `strlcat' function. */
|
||||
#undef HAVE_STRLCAT
|
||||
|
||||
/* Define to 1 if you have the `strlcpy' function. */
|
||||
#undef HAVE_STRLCPY
|
||||
|
||||
/* "" */
|
||||
#undef HAVE_SYS_SELECT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the `umask' function. */
|
||||
#undef HAVE_UMASK
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* va_list as array */
|
||||
#undef HAVE_VA_LIST_AS_ARRAY
|
||||
|
||||
/* "Module dir" */
|
||||
#undef MODULE_PATH
|
||||
|
||||
/* "Has mysql/mysql.h" */
|
||||
#undef MYSQL_HEADER_PREFIX
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* "Run group" */
|
||||
#undef RUNGROUP
|
||||
|
||||
/* "Binary Dir" */
|
||||
#undef SERVICES_BIN
|
||||
|
||||
/* "services bin dir" */
|
||||
#undef SERVICES_DIR
|
||||
|
||||
/* The size of a `int', as computed by sizeof. */
|
||||
#undef SIZEOF_INT
|
||||
|
||||
/* The size of a `long', as computed by sizeof. */
|
||||
#undef SIZEOF_LONG
|
||||
|
||||
/* The size of a `short', as computed by sizeof. */
|
||||
#undef SIZEOF_SHORT
|
||||
|
||||
/* "modules not available" */
|
||||
#undef STATIC_LINKING
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define to `short' if <sys/types.h> does not define. */
|
||||
#undef int16_t
|
||||
|
||||
/* Define to `long' if <sys/types.h> does not define. */
|
||||
#undef int32_t
|
||||
|
||||
/* Define to `unsigned short' if <sys/types.h> does not define. */
|
||||
#undef u_int16_t
|
||||
|
||||
/* Define to `unsigned long' if <sys/types.h> does not define. */
|
||||
#undef u_int32_t
|
||||
|
||||
/* Static config, copy from here to below before running autoheader! */
|
||||
|
||||
#ifndef BIG_ENDIAN
|
||||
|
||||
/* Big Endian system */
|
||||
#undef BIG_ENDIAN
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef LITTLE_ENDIAN
|
||||
|
||||
/* Little Endian system */
|
||||
#undef LITTLE_ENDIAN
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* NOTE: BIG_ENDIAN and LITTLE_ENDIAN defines should not be left in
|
||||
* by autoheader as they may be defined or may not be, as such we check
|
||||
* if there defined before messing with them!
|
||||
**/
|
||||
|
||||
#ifdef HAS_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef __STRICT_ANSI__
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
|
||||
typedef int16_t int16;
|
||||
typedef u_int16_t uint16;
|
||||
typedef int32_t int32;
|
||||
typedef u_int32_t uint32;
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
|
||||
#define SERVICES_DIR "data"
|
||||
#define SERVICES_BIN "anope.exe"
|
||||
|
||||
typedef signed __int16 int16;
|
||||
typedef signed __int16 int16_t;
|
||||
typedef unsigned __int16 uint16;
|
||||
typedef unsigned __int16 u_int16_t;
|
||||
typedef signed __int32 int32;
|
||||
typedef signed __int32 int32_t;
|
||||
typedef unsigned __int32 uint32;
|
||||
typedef unsigned __int32 u_int32_t;
|
||||
typedef unsigned __int8 u_int8_t;
|
||||
|
||||
#define HAVE_STRINGS_H 0
|
||||
#define HAVE_SYS_SELECT_H 0
|
||||
#define HAVE_SYS_SYSPROTO_H 0
|
||||
|
||||
#define HAVE_STRICMP 1
|
||||
#define HAVE_STRCASECMP 0
|
||||
#define HAVE_STRSIGNAL 0
|
||||
#define HAVE_GETTIMEOFDAY 0
|
||||
#define HAVE_SETGRENT 0
|
||||
#define HAVE_UMASK 0
|
||||
#define HAVE_FORK 0
|
||||
#define HAVE_GETHOSTBYNAME 1
|
||||
#define HAVE_BACKTRACE 0
|
||||
|
||||
/* Enable Module support */
|
||||
#define USE_MODULES
|
||||
#define MODULE_PATH ".\\modules\\"
|
||||
|
||||
/* Windows/MSVC likes to name things differently */
|
||||
#define snprintf _snprintf
|
||||
#define popen _popen
|
||||
#define pclose _pclose
|
||||
#define ftruncate _chsize
|
||||
#define PATH_MAX MAX_PATH
|
||||
#define MAXPATHLEN MAX_PATH
|
||||
#define bzero(buf, size) memset(buf, 0, size)
|
||||
#define strcasecmp stricmp
|
||||
#define sleep(x) Sleep(x*1000)
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
SRC= ; DEST= ; MODE= ; USER= ; GROUP= ; export SRC DEST MODE USER GROUP
|
||||
while [ $# -gt 0 ] ; do
|
||||
case $1 in
|
||||
-m) MODE=$2; shift; shift;;
|
||||
-u) USER=$2; shift; shift;;
|
||||
-g) GROUP=$2; shift; shift;;
|
||||
-c) shift;;
|
||||
*) SRC="$DEST"; DEST="$1"; shift;;
|
||||
esac
|
||||
done
|
||||
if [ ! "$DEST" ] ; then
|
||||
echo >&2 "Usage: $0 [-c] [-m mode] [-u user] [-g group] source dest"
|
||||
exit 1
|
||||
fi
|
||||
if [ -d "$DEST" ] ; then
|
||||
DEST="$DEST/$SRC"
|
||||
fi
|
||||
/bin/cp -p "$SRC" "$DEST"
|
||||
if [ "$MODE" ] ; then
|
||||
/bin/chmod $MODE "$DEST"
|
||||
fi
|
||||
if [ "$USER" ] ; then
|
||||
/bin/chown "$USER" "$DEST"
|
||||
fi
|
||||
if [ "$GROUP" ] ; then
|
||||
/bin/chgrp "$GROUP" "$DEST"
|
||||
fi
|
||||
-224
@@ -1,224 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.6
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canoncical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/local/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/local/bin/cmake -E remove -f
|
||||
|
||||
# The program to use to edit the cache.
|
||||
CMAKE_EDIT_COMMAND = /usr/local/bin/ccmake
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /celes/anope
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /celes/anope
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
||||
cd /celes/anope/lang && /usr/local/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/lang && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/lang && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
cd /celes/anope/lang && /usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
cd /celes/anope/lang && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
cd /celes/anope/lang && /usr/local/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles /celes/anope/lang/CMakeFiles/progress.make
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
lang/CMakeFiles/langcomp.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/CMakeFiles/langcomp.dir/rule
|
||||
.PHONY : lang/CMakeFiles/langcomp.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
langcomp: lang/CMakeFiles/langcomp.dir/rule
|
||||
.PHONY : langcomp
|
||||
|
||||
# fast build rule for target.
|
||||
langcomp/fast:
|
||||
cd /celes/anope && $(MAKE) -f lang/CMakeFiles/langcomp.dir/build.make lang/CMakeFiles/langcomp.dir/build
|
||||
.PHONY : langcomp/fast
|
||||
|
||||
# Convenience name for target.
|
||||
lang/CMakeFiles/language.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/CMakeFiles/language.dir/rule
|
||||
.PHONY : lang/CMakeFiles/language.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
language: lang/CMakeFiles/language.dir/rule
|
||||
.PHONY : language
|
||||
|
||||
# fast build rule for target.
|
||||
language/fast:
|
||||
cd /celes/anope && $(MAKE) -f lang/CMakeFiles/language.dir/build.make lang/CMakeFiles/language.dir/build
|
||||
.PHONY : language/fast
|
||||
|
||||
langcomp.o: langcomp.c.o
|
||||
.PHONY : langcomp.o
|
||||
|
||||
# target to build an object file
|
||||
langcomp.c.o:
|
||||
cd /celes/anope && $(MAKE) -f lang/CMakeFiles/langcomp.dir/build.make lang/CMakeFiles/langcomp.dir/langcomp.c.o
|
||||
.PHONY : langcomp.c.o
|
||||
|
||||
langcomp.i: langcomp.c.i
|
||||
.PHONY : langcomp.i
|
||||
|
||||
# target to preprocess a source file
|
||||
langcomp.c.i:
|
||||
cd /celes/anope && $(MAKE) -f lang/CMakeFiles/langcomp.dir/build.make lang/CMakeFiles/langcomp.dir/langcomp.c.i
|
||||
.PHONY : langcomp.c.i
|
||||
|
||||
langcomp.s: langcomp.c.s
|
||||
.PHONY : langcomp.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
langcomp.c.s:
|
||||
cd /celes/anope && $(MAKE) -f lang/CMakeFiles/langcomp.dir/build.make lang/CMakeFiles/langcomp.dir/langcomp.c.s
|
||||
.PHONY : langcomp.c.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... edit_cache"
|
||||
@echo "... install"
|
||||
@echo "... install/local"
|
||||
@echo "... install/strip"
|
||||
@echo "... langcomp"
|
||||
@echo "... language"
|
||||
@echo "... list_install_components"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... langcomp.o"
|
||||
@echo "... langcomp.i"
|
||||
@echo "... langcomp.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
# Makefile for language module
|
||||
|
||||
include ../Makefile.inc.win32
|
||||
|
||||
|
||||
LANGOBJS = cat de en_us es fr hun gr nl pl pt tr it ru
|
||||
LANGSRCS = cat de en_us.l es fr.l hun.l gr.l nl.l pl.l pt.l tr.l it.l ru.l
|
||||
|
||||
LANGCOMP = ./langcomp
|
||||
#LANGCOMP = ./langcomp -w
|
||||
|
||||
|
||||
all: $(LANGOBJS)
|
||||
|
||||
|
||||
install: all
|
||||
-copy cat ..\$(DATDEST)\languages
|
||||
-copy en_us ..\$(DATDEST)\languages
|
||||
-copy de ..\$(DATDEST)\languages
|
||||
-copy es ..\$(DATDEST)\languages
|
||||
-copy fr ..\$(DATDEST)\languages
|
||||
-copy hun ..\$(DATDEST)\languages
|
||||
-copy gr ..\$(DATDEST)\languages
|
||||
-copy nl ..\$(DATDEST)\languages
|
||||
-copy pl ..\$(DATDEST)\languages
|
||||
-copy pt ..\$(DATDEST)\languages
|
||||
-copy tr ..\$(DATDEST)\languages
|
||||
-copy it ..\$(DATDEST)\languages
|
||||
-copy ru ..\$(DATDEST)\languages
|
||||
|
||||
clean:
|
||||
-@erase $(LANGOBJS) langcomp.exe langtool.exe *.obj index
|
||||
|
||||
spotless: clean
|
||||
-@erase language.h
|
||||
|
||||
|
||||
cat: cat.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
de: de.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
en_us: en_us.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
es: es.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
fr: fr.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
hun: hun.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
gr: gr.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
nl: nl.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
pl: pl.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
pt: pt.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
tr: tr.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
it: it.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
ru: ru.l langtool.exe langcomp.exe index
|
||||
langcomp $@.l
|
||||
|
||||
langtool.exe: langtool.c
|
||||
$(CC) $(CFLAGS) langtool.c -o $@ /link $(LFLAGS)
|
||||
|
||||
langcomp.exe: langcomp.c
|
||||
$(CC) $(CFLAGS) langcomp.c -o $@ /link $(LFLAGS)
|
||||
|
||||
language.h: langtool.exe index
|
||||
langtool language.h
|
||||
|
||||
index: langtool.exe en_us.l
|
||||
langtool index
|
||||
@@ -1,18 +0,0 @@
|
||||
#
|
||||
# Generated by install.js
|
||||
#
|
||||
LIBPATH=/LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\Lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Lib"
|
||||
INCFLAGS=/I "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\Include" /I "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include"
|
||||
VERSION=1.9.0.0-git
|
||||
PROGRAM=anope.exe
|
||||
DATDEST=data
|
||||
CC=cl
|
||||
RC=rc
|
||||
MAKE=nmake -f Makefile.win32
|
||||
BASE_CFLAGS=$(VC6) /Zi /MD /TP /GR /EHs $(INCFLAGS)
|
||||
RC_FLAGS=/i "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\Include" /i "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include"
|
||||
LIBS=wsock32.lib advapi32.lib /NODEFAULTLIB:libcmtd.lib
|
||||
LFLAGS=$(LIBPATH)
|
||||
USE_MYSQL=0
|
||||
MORE_CFLAGS = /I"../include"
|
||||
CFLAGS = /nologo $(CDEFS) $(BASE_CFLAGS) $(MORE_CFLAGS)
|
||||
-1262
File diff suppressed because it is too large
Load Diff
@@ -1,141 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Configuration script for Services
|
||||
#
|
||||
# (C) 2003-2008 Anope Team
|
||||
# Contact us at info@anope.org
|
||||
#
|
||||
# Please read COPYING and README for further details.
|
||||
#
|
||||
# Based on the original code of Epona by Lara.
|
||||
# Based on the original code of Services by Andy Church.
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
|
||||
|
||||
ANOPEPID="@DATDEST@/services.pid"
|
||||
ANOPROG="@BINDEST@/services"
|
||||
LOG="@DATDEST@/logs/"
|
||||
ARCVERSION="1.2"
|
||||
|
||||
isAnopeRunning () {
|
||||
if [ ! -f $ANOPEPID ] ; then
|
||||
echo "Warning: Anope is not currently running"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PID=`cat $ANOPEPID`
|
||||
|
||||
if [ ! `ps auxw | grep $ANOPROG | grep $PID | grep -v -c grep` ] ; then
|
||||
echo "Warning: Anope is not currently running"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
if [ ! -f $ANOPROG ] ; then
|
||||
echo "Error: $ANOPROG cannot be accessed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [ "$UID" = "0" ] ; then
|
||||
echo "######################################";
|
||||
echo "# Warning: Do NOT run Anope as root! #";
|
||||
echo "######################################";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$1" = "start" ] ; then
|
||||
|
||||
if [ -f $ANOPEPID ] ; then
|
||||
PID=`cat $ANOPEPID`
|
||||
if [ `ps auxw | grep $ANOPROG | grep $PID | grep -v -c grep` = 1 ] ; then
|
||||
echo "Warning! Anope is already running"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
echo "Starting Anope"
|
||||
shift
|
||||
$ANOPROG $*
|
||||
sleep 1
|
||||
if [ ! -f $ANOPEPID ] ; then
|
||||
echo "Unfortunately it seems Anope did not start successfully"
|
||||
echo "This error has been logged in your Anope Log file"
|
||||
echo "Located in "$LOG""
|
||||
echo "This may help you diagnose the problem"
|
||||
echo "Further help may be available from http://www.anope.org/"
|
||||
exit 1
|
||||
fi
|
||||
PID=`cat $ANOPEPID`
|
||||
if [ ! `ps auxw | grep $ANOPROG | grep $PID | grep -v -c grep` ] ; then
|
||||
echo "Unfortunately it seems Anope did not start successfully"
|
||||
echo "This error has been logged in your Anope Log file"
|
||||
echo "Located in "$LOG""
|
||||
echo "This may help you diagnose the problem"
|
||||
echo "Further help may be available from http://www.anope.org/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
elif [ "$1" = "stop" ] ; then
|
||||
isAnopeRunning
|
||||
echo "Terminating Anope"
|
||||
kill -15 `cat $ANOPEPID`
|
||||
|
||||
elif [ "$1" = "status" ] ; then
|
||||
if [ -f $ANOPEPID ] ; then
|
||||
PID=`cat $ANOPEPID`
|
||||
if [ `ps auxw | grep $PID | grep -v -c grep` = 1 ] ; then
|
||||
echo "Anope is currently running"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Anope is not currently running"
|
||||
|
||||
## :/ SIGUSR2 is ignored after the first restart so we stop / start Anope for now ##
|
||||
elif [ "$1" = "restart" ] ; then
|
||||
isAnopeRunning
|
||||
echo "Restarting Anope"
|
||||
kill -15 `cat $ANOPEPID`
|
||||
sleep 1
|
||||
shift
|
||||
$ANOPROG $*
|
||||
|
||||
elif [ "$1" = "rehash" ] ; then
|
||||
isAnopeRunning
|
||||
echo "Saving Databases and Rehashing Configuration"
|
||||
kill -12 `cat $ANOPEPID`
|
||||
|
||||
elif [ "$1" = "version" ] ; then
|
||||
$ANOPROG -version
|
||||
|
||||
elif [ "$1" = "help" ] ; then
|
||||
if [ "$2" = "paramlist" ] ; then
|
||||
$ANOPROG -help
|
||||
else
|
||||
echo "AnopeRC is a remote control script for easy"
|
||||
echo "controlling of Anope from the command console"
|
||||
echo "$0 start Start Anope"
|
||||
echo " Additional parameters may be passed"
|
||||
echo " (e.g. $0 start -nofork)"
|
||||
echo " For a list type $0 $1 paramlist"
|
||||
echo "$0 stop Shutdown Anope"
|
||||
echo "$0 status Show Anope's Status"
|
||||
echo "$0 restart Restart Anope (Databases will be saved)"
|
||||
echo " Additional parameters may be passed"
|
||||
echo " (e.g. $0 restart -logchan)"
|
||||
echo " For a list type $0 $1 paramlist"
|
||||
echo "$0 rehash Rehash Configuration and Save Databases"
|
||||
echo "$0 version Return Anope Version and Build Information"
|
||||
echo "$0 help Show this help menu"
|
||||
echo "If you need further help please check the /docs/"
|
||||
echo "folder or make use of our extensive online support at"
|
||||
echo "http://www.anope.org/"
|
||||
fi
|
||||
|
||||
else
|
||||
echo "Anope Remote Control ($ARCVERSION)"
|
||||
echo "Usage: $0 [start|stop|status|restart|rehash|version|help]"
|
||||
fi
|
||||
-5459
File diff suppressed because it is too large
Load Diff
@@ -1,29 +0,0 @@
|
||||
MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
|
||||
'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \
|
||||
'INCLUDEDIR=${INCLUDEDIR}' 'RM=${RM}' 'CP=${CP}' \
|
||||
'TOUCH=${TOUCH}' 'SHELL=${SHELL}' 'DATDEST=${DATDEST}' \
|
||||
'RUNGROUP=${RUNGROUP}' 'MODULE_PATH=${MODULE_PATH}' \
|
||||
'PROFILE=${PROFILE}' 'SHARED=${SHARED}' 'MODULEFLAGS=${MODULEFLAGS}'
|
||||
|
||||
OBJECTS= $(SRCS:.c=.o)
|
||||
SO_FILES=$(OBJECTS:.o=.s)
|
||||
CDEFS= -rdynamic -Wall
|
||||
|
||||
all: module
|
||||
|
||||
module: $(OBJECTS) so
|
||||
|
||||
distclean: spotless
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../ -I../../${INCLUDEDIR} -c $<
|
||||
|
||||
so:
|
||||
$(CC) ${SHARED} $(OBJECTS) -o ../$(TARGET).so ${PROFILE}
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so *.c~ core
|
||||
|
||||
spotless: clean
|
||||
rm -f *~ *.o *.so *.c~ core
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
include ../../Makefile.inc.win32
|
||||
|
||||
SRCS=bs_act.c bs_assign.c bs_badwords.c bs_bot.c bs_botlist.c bs_fantasy.c bs_fantasy_kick.c bs_fantasy_kickban.c bs_fantasy_owner.c bs_fantasy_seen.c bs_help.c bs_info.c bs_kick.c bs_say.c bs_set.c bs_unassign.c cs_access.c cs_akick.c cs_ban.c cs_clear.c cs_drop.c cs_forbid.c cs_getkey.c cs_getpass.c cs_help.c cs_identify.c cs_info.c cs_invite.c cs_kick.c cs_list.c cs_logout.c cs_modes.c cs_register.c cs_sendpass.c cs_set.c cs_status.c cs_suspend.c cs_topic.c cs_xop.c enc_none.c enc_md5.c enc_old.c he_help.c hs_del.c hs_delall.c hs_group.c hs_help.c hs_list.c hs_off.c hs_on.c hs_set.c hs_setall.c ms_cancel.c ms_check.c ms_del.c ms_help.c ms_info.c ms_list.c ms_read.c ms_rsend.c ms_send.c ms_sendall.c ms_set.c ms_staff.c ns_access.c ns_alist.c ns_drop.c ns_forbid.c ns_getemail.c ns_getpass.c ns_ghost.c ns_group.c ns_help.c ns_identify.c ns_info.c ns_list.c ns_logout.c ns_recover.c ns_register.c ns_release.c ns_sendpass.c ns_set.c ns_saset.c ns_status.c ns_suspend.c ns_update.c os_admin.c os_akill.c os_chankill.c os_chanlist.c os_clearmodes.c os_defcon.c os_global.c os_help.c os_ignore.c os_jupe.c os_kick.c os_logonnews.c os_mode.c os_modinfo.c os_modlist.c os_modload.c os_modunload.c os_noop.c os_oline.c os_oper.c os_opernews.c os_quit.c os_randomnews.c os_raw.c os_reload.c os_restart.c os_session.c os_set.c os_sgline.c os_shutdown.c os_sqline.c os_staff.c os_stats.c os_svsnick.c os_szline.c os_umode.c os_update.c os_userlist.c ss_main.c
|
||||
OBJECTS= $(SRCS:.c=.dll)
|
||||
CFLAGS=/LD /MD /D MODULE_COMPILE $(CFLAGS) /I"../../include"
|
||||
LFLAGS=/link ../anope.lib wsock32.lib $(LIBS) $(LFLAGS) $(MYSQL_LIB_PATH) /export:init_module /export:destroy_module /VERSION:$(VERSION)
|
||||
|
||||
all: $(OBJECTS)
|
||||
|
||||
distclean: clean spotless
|
||||
|
||||
.c.dll:
|
||||
$(CC) $(CFLAGS) $< ..\mod_version.c $(LFLAGS)
|
||||
|
||||
clean:
|
||||
-@del *.obj
|
||||
|
||||
spotless: clean
|
||||
-@del *.dll *.lib *.exp *.manifest
|
||||
|
||||
install:
|
||||
-@mkdir ..\..\$(DATDEST)\modules
|
||||
-@mkdir ..\..\$(DATDEST)\modules\runtime
|
||||
-@copy *.dll ..\..\$(DATDEST)\modules
|
||||
Vendored
-60
@@ -1,60 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
oldpath=`pwd`
|
||||
|
||||
if [ $1 ]; then
|
||||
cd $1
|
||||
fi
|
||||
|
||||
echo2 () {
|
||||
$ECHO2 "$*$ECHO2SUF" # these are defined later
|
||||
}
|
||||
|
||||
ECHO2SUF=''
|
||||
if [ "`echo -n a ; echo -n b`" = "ab" ] ; then
|
||||
ECHO2='echo -n'
|
||||
elif [ "`echo 'a\c' ; echo 'b\c'`" = "ab" ] ; then
|
||||
ECHO2='echo' ; ECHO2SUF='\c'
|
||||
elif [ "`printf 'a' 2>&1 ; printf 'b' 2>&1`" = "ab" ] ; then
|
||||
ECHO2='printf "%s"'
|
||||
else
|
||||
# oh well...
|
||||
ECHO2='echo'
|
||||
fi
|
||||
export ECHO2 ECHO2SUF
|
||||
|
||||
|
||||
echo2 "SRCS=" > ./Makefile.inc
|
||||
FIRST=1
|
||||
for oldfile in *.c
|
||||
do
|
||||
if [ "$FIRST" = 1 ] ; then
|
||||
echo2 " "$oldfile >> ./Makefile.inc
|
||||
else
|
||||
echo "\\" >> ./Makefile.inc
|
||||
echo2 " " $oldfile >> ./Makefile.inc
|
||||
fi
|
||||
FIRST=0
|
||||
done
|
||||
echo "" >> ./Makefile.inc
|
||||
|
||||
echo2 "SUBS=" >> ./Makefile.inc
|
||||
FIRST=1
|
||||
for dir in *
|
||||
do
|
||||
if [ -d $dir ] ; then
|
||||
if [ -f $dir/Makefile ] ; then
|
||||
if [ "$FIRST" = 1 ] ; then
|
||||
echo2 " "$dir >> ./Makefile.inc
|
||||
else
|
||||
echo "\\" >> ./Makefile.inc
|
||||
echo2 " " $dir >> ./Makefile.inc
|
||||
fi
|
||||
FIRST=0
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd $oldpath
|
||||
|
||||
exit 0
|
||||
@@ -1,6 +0,0 @@
|
||||
all: DUMMY
|
||||
|
||||
DUMMY:
|
||||
clean:
|
||||
distclean:
|
||||
install:
|
||||
@@ -1,117 +0,0 @@
|
||||
# Make file for Win32
|
||||
#
|
||||
# (C) 2003-2008 Anope Team
|
||||
# Contact us at info@anope.org
|
||||
#
|
||||
# Please read COPYING and README for further details.
|
||||
#
|
||||
# Based on the original code of Epona by Lara.
|
||||
# Based on the original code of Services by Andy Church.
|
||||
#
|
||||
# $Id:$
|
||||
#
|
||||
|
||||
# Source Makefile
|
||||
|
||||
include ../Makefile.inc.win32
|
||||
|
||||
###########################################################################
|
||||
|
||||
OBJS = actions.obj base64.obj bots.obj botserv.obj channels.obj chanserv.obj commands.obj compat.obj \
|
||||
config.obj datafiles.obj encrypt.obj events.obj helpserv.obj hostserv.obj \
|
||||
init.obj ircd.obj language.obj log.obj mail.obj main.obj memory.obj \
|
||||
memoserv.obj messages.obj misc.obj modules.obj mod_version.obj news.obj nickserv.obj operserv.obj \
|
||||
process.obj send.obj servers.obj sessions.obj slist.obj sockutil.obj \
|
||||
timeout.obj users.obj module.obj modulemanager.obj hashcomp.obj configreader.obj
|
||||
|
||||
SRCS = actions.c base64.c botserv.c bots.cpp channels.c chanserv.c commands.c compat.c \
|
||||
config.c datafiles.c encrypt.c events.c helpserv.c hostserv.c init.c ircd.c \
|
||||
language.c log.c mail.c main.c memory.c memoserv.c messages.c misc.c \
|
||||
modules.c mod_version.c news.c nickserv.c operserv.c process.c send.c servers.obj sessions.c \
|
||||
slist.c sockutil.c timeout.c users.c module.cpp modulemanager.cpp hashcomp.cpp configreader.cpp
|
||||
|
||||
###########################################################################
|
||||
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
.cpp.obj:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
$(PROGRAM): $(OBJS) win32.res
|
||||
$(CC) $(OBJS) win32.res /link /debug /out:$(PROGRAM) /implib:anope.lib $(LIBS) $(LFLAGS) $(MLIBS) $(ELIBS)
|
||||
|
||||
spotless:
|
||||
-@erase *.obj *.exe *.exp *.lib tools\*.exe *.res win32.rc *.manifest
|
||||
|
||||
install:
|
||||
-@copy anope.exe ..\anope.exe
|
||||
-@mkdir ..\$(DATDEST)\bin
|
||||
-@copy bin\* ..\$(DATDEST)\bin
|
||||
-@copy anope.exe.manifest ..\anope.exe.manifest
|
||||
|
||||
win32.res: win32.rc
|
||||
$(RC) /l 0x409 $(RC_FLAGS) /fowin32.res win32.rc
|
||||
|
||||
|
||||
###########################################################################
|
||||
|
||||
# Catch any changes in compilation options at the top of this file
|
||||
$(OBJS):
|
||||
|
||||
actions.obj: actions.c ..\include\services.h
|
||||
base64.obj: base64.c ..\include\services.h
|
||||
bots.obj: bots.cpp ..\include\services.h
|
||||
botserv.obj: botserv.c ..\include\services.h ..\include\pseudo.h ..\include\language.h
|
||||
channels.obj: channels.c ..\include\services.h
|
||||
chanserv.obj: chanserv.c ..\include\services.h ..\include\pseudo.h
|
||||
commands.obj: commands.c ..\include\services.h ..\include\commands.h ..\include\language.h
|
||||
compat.obj: compat.c ..\include\services.h
|
||||
config.obj: config.c ..\include\services.h
|
||||
datafiles.obj: datafiles.c ..\include\services.h ..\include\datafiles.h
|
||||
encrypt.obj: encrypt.c ..\include\encrypt.h ..\include\sysconf.h
|
||||
events.obj: events.c ..\include\modules.h ..\include\language.h ..\include\version.h
|
||||
init.obj: init.c ..\include\services.h
|
||||
ircd.obj: ircd.c ..\include\services.h
|
||||
hashcomp.obj: hashcomp.cpp ..\include\services.h ..\include\hashcomp.h
|
||||
hostserv.obj: hostserv.c ..\include\services.h ..\include\pseudo.h
|
||||
language.obj: language.c ..\include\services.h ..\include\language.h
|
||||
list.obj: list.c ..\include\services.h
|
||||
log.obj: log.c ..\include\services.h ..\include\pseudo.h
|
||||
mail.obj: mail.c ..\include\services.h ..\include\language.h
|
||||
main.obj: main.c ..\include\services.h ..\include\timeout.h ..\include\version.h
|
||||
memory.obj: memory.c ..\include\services.h
|
||||
memoserv.obj: memoserv.c ..\include\services.h ..\include\pseudo.h
|
||||
messages.obj: messages.c ..\include\services.h ..\include\messages.h ..\include\language.h
|
||||
modules.obj: modules.c ..\include\modules.h ..\include\language.h ..\include\version.h
|
||||
module.obj: module.cpp ..\include\modules.h ..\include\language.h ..\include\version.h
|
||||
modulemanager.obj: modulemanager.cpp ..\include\modules.h ..\include\language.h ..\include\version.h
|
||||
mod_version.obj: mod_version.c ..\include\modules.h ..\include\version.h
|
||||
misc.obj: misc.c ..\include\services.h ..\include\language.h
|
||||
news.obj: news.c ..\include\services.h ..\include\pseudo.h
|
||||
nickserv.obj: nickserv.c ..\include\services.h ..\include\pseudo.h
|
||||
operserv.obj: operserv.c ..\include\services.h ..\include\pseudo.h
|
||||
process.obj: process.c ..\include\services.h ..\include\messages.h
|
||||
send.obj: send.c ..\include\services.h
|
||||
servers.obj: servers.c ..\include\services.h
|
||||
sessions.obj: sessions.c ..\include\services.h ..\include\pseudo.h
|
||||
slist.obj: slist.c ..\include\services.h ..\include\slist.h
|
||||
sockutil.obj: sockutil.c ..\include\services.h
|
||||
timeout.obj: timeout.c ..\include\services.h ..\include\timeout.h
|
||||
users.obj: users.c ..\include\services.h
|
||||
vsnprintf.obj: vsnprintf.c
|
||||
|
||||
###########################################################################
|
||||
|
||||
..\include\services.h: ..\include\sysconf.h ..\include\config.h ..\include\extern.h
|
||||
|
||||
..\include\extern.h: ..\include\slist.h
|
||||
|
||||
..\include\pseudo.h: ..\include\commands.h ..\include\language.h ..\include\timeout.h ..\include\encrypt.h ..\include\datafiles.h ..\include\slist.h
|
||||
|
||||
###########################################################################
|
||||
|
||||
FRC:
|
||||
@@ -1,545 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.6
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canoncical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/local/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/local/bin/cmake -E remove -f
|
||||
|
||||
# The program to use to edit the cache.
|
||||
CMAKE_EDIT_COMMAND = /usr/local/bin/ccmake
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /celes/anope
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /celes/anope
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
||||
cd /celes/anope/src/modules && /usr/local/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/src/modules && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/src/modules && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
cd /celes/anope/src/modules && /usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
cd /celes/anope/src/modules && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
cd /celes/anope/src/modules && /usr/local/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles /celes/anope/src/modules/CMakeFiles/progress.make
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/bs_fantasy_unban.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/bs_fantasy_unban.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/bs_fantasy_unban.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
bs_fantasy_unban.so: src/modules/CMakeFiles/bs_fantasy_unban.so.dir/rule
|
||||
.PHONY : bs_fantasy_unban.so
|
||||
|
||||
# fast build rule for target.
|
||||
bs_fantasy_unban.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/bs_fantasy_unban.so.dir/build.make src/modules/CMakeFiles/bs_fantasy_unban.so.dir/build
|
||||
.PHONY : bs_fantasy_unban.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/cs_appendtopic.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/cs_appendtopic.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/cs_appendtopic.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
cs_appendtopic.so: src/modules/CMakeFiles/cs_appendtopic.so.dir/rule
|
||||
.PHONY : cs_appendtopic.so
|
||||
|
||||
# fast build rule for target.
|
||||
cs_appendtopic.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_appendtopic.so.dir/build.make src/modules/CMakeFiles/cs_appendtopic.so.dir/build
|
||||
.PHONY : cs_appendtopic.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/cs_enforce.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/cs_enforce.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/cs_enforce.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
cs_enforce.so: src/modules/CMakeFiles/cs_enforce.so.dir/rule
|
||||
.PHONY : cs_enforce.so
|
||||
|
||||
# fast build rule for target.
|
||||
cs_enforce.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_enforce.so.dir/build.make src/modules/CMakeFiles/cs_enforce.so.dir/build
|
||||
.PHONY : cs_enforce.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/cs_tban.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/cs_tban.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/cs_tban.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
cs_tban.so: src/modules/CMakeFiles/cs_tban.so.dir/rule
|
||||
.PHONY : cs_tban.so
|
||||
|
||||
# fast build rule for target.
|
||||
cs_tban.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_tban.so.dir/build.make src/modules/CMakeFiles/cs_tban.so.dir/build
|
||||
.PHONY : cs_tban.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/hs_request.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/hs_request.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/hs_request.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
hs_request.so: src/modules/CMakeFiles/hs_request.so.dir/rule
|
||||
.PHONY : hs_request.so
|
||||
|
||||
# fast build rule for target.
|
||||
hs_request.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/hs_request.so.dir/build.make src/modules/CMakeFiles/hs_request.so.dir/build
|
||||
.PHONY : hs_request.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/ns_maxemail.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/ns_maxemail.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/ns_maxemail.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
ns_maxemail.so: src/modules/CMakeFiles/ns_maxemail.so.dir/rule
|
||||
.PHONY : ns_maxemail.so
|
||||
|
||||
# fast build rule for target.
|
||||
ns_maxemail.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/ns_maxemail.so.dir/build.make src/modules/CMakeFiles/ns_maxemail.so.dir/build
|
||||
.PHONY : ns_maxemail.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/ns_noop_convert.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/ns_noop_convert.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/ns_noop_convert.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
ns_noop_convert.so: src/modules/CMakeFiles/ns_noop_convert.so.dir/rule
|
||||
.PHONY : ns_noop_convert.so
|
||||
|
||||
# fast build rule for target.
|
||||
ns_noop_convert.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/ns_noop_convert.so.dir/build.make src/modules/CMakeFiles/ns_noop_convert.so.dir/build
|
||||
.PHONY : ns_noop_convert.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/os_ignore_db.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/os_ignore_db.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/os_ignore_db.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
os_ignore_db.so: src/modules/CMakeFiles/os_ignore_db.so.dir/rule
|
||||
.PHONY : os_ignore_db.so
|
||||
|
||||
# fast build rule for target.
|
||||
os_ignore_db.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/os_ignore_db.so.dir/build.make src/modules/CMakeFiles/os_ignore_db.so.dir/build
|
||||
.PHONY : os_ignore_db.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/modules/CMakeFiles/os_info.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/modules/CMakeFiles/os_info.so.dir/rule
|
||||
.PHONY : src/modules/CMakeFiles/os_info.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
os_info.so: src/modules/CMakeFiles/os_info.so.dir/rule
|
||||
.PHONY : os_info.so
|
||||
|
||||
# fast build rule for target.
|
||||
os_info.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/os_info.so.dir/build.make src/modules/CMakeFiles/os_info.so.dir/build
|
||||
.PHONY : os_info.so/fast
|
||||
|
||||
bs_fantasy_unban.o: bs_fantasy_unban.c.o
|
||||
.PHONY : bs_fantasy_unban.o
|
||||
|
||||
# target to build an object file
|
||||
bs_fantasy_unban.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/bs_fantasy_unban.so.dir/build.make src/modules/CMakeFiles/bs_fantasy_unban.so.dir/bs_fantasy_unban.c.o
|
||||
.PHONY : bs_fantasy_unban.c.o
|
||||
|
||||
bs_fantasy_unban.i: bs_fantasy_unban.c.i
|
||||
.PHONY : bs_fantasy_unban.i
|
||||
|
||||
# target to preprocess a source file
|
||||
bs_fantasy_unban.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/bs_fantasy_unban.so.dir/build.make src/modules/CMakeFiles/bs_fantasy_unban.so.dir/bs_fantasy_unban.c.i
|
||||
.PHONY : bs_fantasy_unban.c.i
|
||||
|
||||
bs_fantasy_unban.s: bs_fantasy_unban.c.s
|
||||
.PHONY : bs_fantasy_unban.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
bs_fantasy_unban.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/bs_fantasy_unban.so.dir/build.make src/modules/CMakeFiles/bs_fantasy_unban.so.dir/bs_fantasy_unban.c.s
|
||||
.PHONY : bs_fantasy_unban.c.s
|
||||
|
||||
cs_appendtopic.o: cs_appendtopic.c.o
|
||||
.PHONY : cs_appendtopic.o
|
||||
|
||||
# target to build an object file
|
||||
cs_appendtopic.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_appendtopic.so.dir/build.make src/modules/CMakeFiles/cs_appendtopic.so.dir/cs_appendtopic.c.o
|
||||
.PHONY : cs_appendtopic.c.o
|
||||
|
||||
cs_appendtopic.i: cs_appendtopic.c.i
|
||||
.PHONY : cs_appendtopic.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cs_appendtopic.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_appendtopic.so.dir/build.make src/modules/CMakeFiles/cs_appendtopic.so.dir/cs_appendtopic.c.i
|
||||
.PHONY : cs_appendtopic.c.i
|
||||
|
||||
cs_appendtopic.s: cs_appendtopic.c.s
|
||||
.PHONY : cs_appendtopic.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cs_appendtopic.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_appendtopic.so.dir/build.make src/modules/CMakeFiles/cs_appendtopic.so.dir/cs_appendtopic.c.s
|
||||
.PHONY : cs_appendtopic.c.s
|
||||
|
||||
cs_enforce.o: cs_enforce.c.o
|
||||
.PHONY : cs_enforce.o
|
||||
|
||||
# target to build an object file
|
||||
cs_enforce.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_enforce.so.dir/build.make src/modules/CMakeFiles/cs_enforce.so.dir/cs_enforce.c.o
|
||||
.PHONY : cs_enforce.c.o
|
||||
|
||||
cs_enforce.i: cs_enforce.c.i
|
||||
.PHONY : cs_enforce.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cs_enforce.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_enforce.so.dir/build.make src/modules/CMakeFiles/cs_enforce.so.dir/cs_enforce.c.i
|
||||
.PHONY : cs_enforce.c.i
|
||||
|
||||
cs_enforce.s: cs_enforce.c.s
|
||||
.PHONY : cs_enforce.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cs_enforce.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_enforce.so.dir/build.make src/modules/CMakeFiles/cs_enforce.so.dir/cs_enforce.c.s
|
||||
.PHONY : cs_enforce.c.s
|
||||
|
||||
cs_tban.o: cs_tban.c.o
|
||||
.PHONY : cs_tban.o
|
||||
|
||||
# target to build an object file
|
||||
cs_tban.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_tban.so.dir/build.make src/modules/CMakeFiles/cs_tban.so.dir/cs_tban.c.o
|
||||
.PHONY : cs_tban.c.o
|
||||
|
||||
cs_tban.i: cs_tban.c.i
|
||||
.PHONY : cs_tban.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cs_tban.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_tban.so.dir/build.make src/modules/CMakeFiles/cs_tban.so.dir/cs_tban.c.i
|
||||
.PHONY : cs_tban.c.i
|
||||
|
||||
cs_tban.s: cs_tban.c.s
|
||||
.PHONY : cs_tban.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cs_tban.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/cs_tban.so.dir/build.make src/modules/CMakeFiles/cs_tban.so.dir/cs_tban.c.s
|
||||
.PHONY : cs_tban.c.s
|
||||
|
||||
hs_request.o: hs_request.c.o
|
||||
.PHONY : hs_request.o
|
||||
|
||||
# target to build an object file
|
||||
hs_request.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/hs_request.so.dir/build.make src/modules/CMakeFiles/hs_request.so.dir/hs_request.c.o
|
||||
.PHONY : hs_request.c.o
|
||||
|
||||
hs_request.i: hs_request.c.i
|
||||
.PHONY : hs_request.i
|
||||
|
||||
# target to preprocess a source file
|
||||
hs_request.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/hs_request.so.dir/build.make src/modules/CMakeFiles/hs_request.so.dir/hs_request.c.i
|
||||
.PHONY : hs_request.c.i
|
||||
|
||||
hs_request.s: hs_request.c.s
|
||||
.PHONY : hs_request.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
hs_request.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/hs_request.so.dir/build.make src/modules/CMakeFiles/hs_request.so.dir/hs_request.c.s
|
||||
.PHONY : hs_request.c.s
|
||||
|
||||
ns_maxemail.o: ns_maxemail.c.o
|
||||
.PHONY : ns_maxemail.o
|
||||
|
||||
# target to build an object file
|
||||
ns_maxemail.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/ns_maxemail.so.dir/build.make src/modules/CMakeFiles/ns_maxemail.so.dir/ns_maxemail.c.o
|
||||
.PHONY : ns_maxemail.c.o
|
||||
|
||||
ns_maxemail.i: ns_maxemail.c.i
|
||||
.PHONY : ns_maxemail.i
|
||||
|
||||
# target to preprocess a source file
|
||||
ns_maxemail.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/ns_maxemail.so.dir/build.make src/modules/CMakeFiles/ns_maxemail.so.dir/ns_maxemail.c.i
|
||||
.PHONY : ns_maxemail.c.i
|
||||
|
||||
ns_maxemail.s: ns_maxemail.c.s
|
||||
.PHONY : ns_maxemail.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
ns_maxemail.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/ns_maxemail.so.dir/build.make src/modules/CMakeFiles/ns_maxemail.so.dir/ns_maxemail.c.s
|
||||
.PHONY : ns_maxemail.c.s
|
||||
|
||||
ns_noop_convert.o: ns_noop_convert.c.o
|
||||
.PHONY : ns_noop_convert.o
|
||||
|
||||
# target to build an object file
|
||||
ns_noop_convert.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/ns_noop_convert.so.dir/build.make src/modules/CMakeFiles/ns_noop_convert.so.dir/ns_noop_convert.c.o
|
||||
.PHONY : ns_noop_convert.c.o
|
||||
|
||||
ns_noop_convert.i: ns_noop_convert.c.i
|
||||
.PHONY : ns_noop_convert.i
|
||||
|
||||
# target to preprocess a source file
|
||||
ns_noop_convert.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/ns_noop_convert.so.dir/build.make src/modules/CMakeFiles/ns_noop_convert.so.dir/ns_noop_convert.c.i
|
||||
.PHONY : ns_noop_convert.c.i
|
||||
|
||||
ns_noop_convert.s: ns_noop_convert.c.s
|
||||
.PHONY : ns_noop_convert.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
ns_noop_convert.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/ns_noop_convert.so.dir/build.make src/modules/CMakeFiles/ns_noop_convert.so.dir/ns_noop_convert.c.s
|
||||
.PHONY : ns_noop_convert.c.s
|
||||
|
||||
os_ignore_db.o: os_ignore_db.c.o
|
||||
.PHONY : os_ignore_db.o
|
||||
|
||||
# target to build an object file
|
||||
os_ignore_db.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/os_ignore_db.so.dir/build.make src/modules/CMakeFiles/os_ignore_db.so.dir/os_ignore_db.c.o
|
||||
.PHONY : os_ignore_db.c.o
|
||||
|
||||
os_ignore_db.i: os_ignore_db.c.i
|
||||
.PHONY : os_ignore_db.i
|
||||
|
||||
# target to preprocess a source file
|
||||
os_ignore_db.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/os_ignore_db.so.dir/build.make src/modules/CMakeFiles/os_ignore_db.so.dir/os_ignore_db.c.i
|
||||
.PHONY : os_ignore_db.c.i
|
||||
|
||||
os_ignore_db.s: os_ignore_db.c.s
|
||||
.PHONY : os_ignore_db.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
os_ignore_db.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/os_ignore_db.so.dir/build.make src/modules/CMakeFiles/os_ignore_db.so.dir/os_ignore_db.c.s
|
||||
.PHONY : os_ignore_db.c.s
|
||||
|
||||
os_info.o: os_info.c.o
|
||||
.PHONY : os_info.o
|
||||
|
||||
# target to build an object file
|
||||
os_info.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/os_info.so.dir/build.make src/modules/CMakeFiles/os_info.so.dir/os_info.c.o
|
||||
.PHONY : os_info.c.o
|
||||
|
||||
os_info.i: os_info.c.i
|
||||
.PHONY : os_info.i
|
||||
|
||||
# target to preprocess a source file
|
||||
os_info.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/os_info.so.dir/build.make src/modules/CMakeFiles/os_info.so.dir/os_info.c.i
|
||||
.PHONY : os_info.c.i
|
||||
|
||||
os_info.s: os_info.c.s
|
||||
.PHONY : os_info.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
os_info.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/modules/CMakeFiles/os_info.so.dir/build.make src/modules/CMakeFiles/os_info.so.dir/os_info.c.s
|
||||
.PHONY : os_info.c.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... bs_fantasy_unban.so"
|
||||
@echo "... cs_appendtopic.so"
|
||||
@echo "... cs_enforce.so"
|
||||
@echo "... cs_tban.so"
|
||||
@echo "... edit_cache"
|
||||
@echo "... hs_request.so"
|
||||
@echo "... install"
|
||||
@echo "... install/local"
|
||||
@echo "... install/strip"
|
||||
@echo "... list_install_components"
|
||||
@echo "... ns_maxemail.so"
|
||||
@echo "... ns_noop_convert.so"
|
||||
@echo "... os_ignore_db.so"
|
||||
@echo "... os_info.so"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... bs_fantasy_unban.o"
|
||||
@echo "... bs_fantasy_unban.i"
|
||||
@echo "... bs_fantasy_unban.s"
|
||||
@echo "... cs_appendtopic.o"
|
||||
@echo "... cs_appendtopic.i"
|
||||
@echo "... cs_appendtopic.s"
|
||||
@echo "... cs_enforce.o"
|
||||
@echo "... cs_enforce.i"
|
||||
@echo "... cs_enforce.s"
|
||||
@echo "... cs_tban.o"
|
||||
@echo "... cs_tban.i"
|
||||
@echo "... cs_tban.s"
|
||||
@echo "... hs_request.o"
|
||||
@echo "... hs_request.i"
|
||||
@echo "... hs_request.s"
|
||||
@echo "... ns_maxemail.o"
|
||||
@echo "... ns_maxemail.i"
|
||||
@echo "... ns_maxemail.s"
|
||||
@echo "... ns_noop_convert.o"
|
||||
@echo "... ns_noop_convert.i"
|
||||
@echo "... ns_noop_convert.s"
|
||||
@echo "... os_ignore_db.o"
|
||||
@echo "... os_ignore_db.i"
|
||||
@echo "... os_ignore_db.s"
|
||||
@echo "... os_info.o"
|
||||
@echo "... os_info.i"
|
||||
@echo "... os_info.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
|
||||
'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \
|
||||
'INCLUDEDIR=${INCLUDEDIR}' 'RM=${RM}' 'CP=${CP}' \
|
||||
'TOUCH=${TOUCH}' 'SHELL=${SHELL}' 'DATDEST=${DATDEST}' \
|
||||
'RUNGROUP=${RUNGROUP}' 'MODULE_PATH=${MODULE_PATH}' \
|
||||
'PROFILE=${PROFILE}' 'SHARED=${SHARED}' 'MODULEFLAGS=${MODULEFLAGS}'
|
||||
|
||||
OBJECTS= $(SRCS:.c=.o)
|
||||
SO_FILES=$(OBJECTS:.o=.s)
|
||||
CDEFS= -rdynamic -Wall
|
||||
|
||||
all: module
|
||||
|
||||
module: $(OBJECTS) so
|
||||
|
||||
distclean: spotless
|
||||
|
||||
.c.o:
|
||||
$(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../ -I../../${INCLUDEDIR} -c $<
|
||||
|
||||
so:
|
||||
$(CC) ${SHARED} ../../mod_version.o $(OBJECTS) -o ../$(TARGET).so ${PROFILE}
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so *.c~ core
|
||||
|
||||
spotless:
|
||||
rm -f *~ *.o *.so *.c~ core
|
||||
Vendored
-65
@@ -1,65 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
oldpath=`pwd`
|
||||
|
||||
if [ $1 ]; then
|
||||
cd $1
|
||||
fi
|
||||
|
||||
echo2 () {
|
||||
$ECHO2 "$*$ECHO2SUF" # these are defined later
|
||||
}
|
||||
|
||||
ECHO2SUF=''
|
||||
if [ "`echo -n a ; echo -n b`" = "ab" ] ; then
|
||||
ECHO2='echo -n'
|
||||
elif [ "`echo 'a\c' ; echo 'b\c'`" = "ab" ] ; then
|
||||
ECHO2='echo' ; ECHO2SUF='\c'
|
||||
elif [ "`printf 'a' 2>&1 ; printf 'b' 2>&1`" = "ab" ] ; then
|
||||
ECHO2='printf "%s"'
|
||||
else
|
||||
# oh well...
|
||||
ECHO2='echo'
|
||||
fi
|
||||
export ECHO2 ECHO2SUF
|
||||
|
||||
|
||||
echo2 "SRCS=" > ./Makefile.inc
|
||||
FIRST=1
|
||||
for oldfile in *.c
|
||||
do
|
||||
if [ "$FIRST" = 1 ] ; then
|
||||
echo2 " "$oldfile >> ./Makefile.inc
|
||||
else
|
||||
echo "\\" >> ./Makefile.inc
|
||||
echo2 " " $oldfile >> ./Makefile.inc
|
||||
fi
|
||||
FIRST=0
|
||||
done
|
||||
echo "" >> ./Makefile.inc
|
||||
|
||||
echo2 "SUBS=" >> ./Makefile.inc
|
||||
FIRST=1
|
||||
for dir in *
|
||||
do
|
||||
if [ -d $dir ] ; then
|
||||
if [ -f $dir/configure ] ; then
|
||||
cd $dir
|
||||
./configure
|
||||
cd ..
|
||||
fi
|
||||
if [ -f $dir/Makefile ] ; then
|
||||
if [ "$FIRST" = 1 ] ; then
|
||||
echo2 " "$dir >> ./Makefile.inc
|
||||
else
|
||||
echo "\\" >> ./Makefile.inc
|
||||
echo2 " " $dir >> ./Makefile.inc
|
||||
fi
|
||||
FIRST=0
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd $oldpath
|
||||
|
||||
exit 0
|
||||
@@ -1,6 +0,0 @@
|
||||
all: DUMMY
|
||||
|
||||
DUMMY:
|
||||
clean:
|
||||
distclean:
|
||||
install:
|
||||
@@ -1,2 +0,0 @@
|
||||
SRCS=cs_appendtopic.c cs_enforce.c cs_tban.c ns_maxemail.c hs_request.c os_info.c bs_fantasy_unban.c
|
||||
SUBS=test
|
||||
@@ -1,19 +0,0 @@
|
||||
include ../../../Makefile.inc.win32
|
||||
|
||||
OBJECTS= $(SRCS:.c=.obj)
|
||||
CFLAGS=/nologo /LD /MD /D MODULE_COMPILE $(CFLAGS) /I"../../../include" /I "../"
|
||||
LFLAGS=/nologo ../../anope.lib wsock32.lib $(LIBS) $(LFLAGS) $(MYSQL_LIB_PATH) /export:AnopeInit /export:AnopeFini /OUT:$(TARGET)
|
||||
|
||||
all:
|
||||
$(CC) $(SRCS) $(CFLAGS) ..\..\mod_version.c /link $(LFLAGS)
|
||||
|
||||
distclean: clean spotless
|
||||
|
||||
clean:
|
||||
-@del *.obj
|
||||
|
||||
spotless: clean
|
||||
-@del *.dll *.lib *.exp *.manifest
|
||||
|
||||
install:
|
||||
-@copy *.dll ..\..\..\$(DATDEST)\modules
|
||||
@@ -1,41 +0,0 @@
|
||||
include ../../Makefile.inc.win32
|
||||
include ./Makefile.inc.win32
|
||||
|
||||
OBJECTS= $(SRCS:.c=.dll)
|
||||
CFLAGS=/LD /MD /D MODULE_COMPILE $(CFLAGS) /I"../../include"
|
||||
LFLAGS=/link ../anope.lib wsock32.lib $(LIBS) $(LFLAGS) $(MYSQL_LIB_PATH) /export:init_module /export:destroy_module
|
||||
|
||||
all: $(OBJECTS) subs
|
||||
|
||||
distclean: clean spotless
|
||||
|
||||
.c.dll:
|
||||
$(CC) $(CFLAGS) $(IRCTYPE) $< ..\mod_version.c $(LFLAGS)
|
||||
|
||||
subs:
|
||||
@for %i in ( $(SUBS) ); do \
|
||||
@if exist %i; @cd %i && $(MAKE) $(MAKEARGS) && cd ..
|
||||
|
||||
clean: subs-clean
|
||||
-@del *.obj
|
||||
|
||||
subs-clean:
|
||||
@for %i in ( $(SUBS) ); do \
|
||||
@if exist %i; @cd %i && $(MAKE) $(MAKEARGS) clean && cd ..
|
||||
|
||||
spotless: clean subs-spotless
|
||||
-@del *.dll *.lib *.exp *.manifest
|
||||
|
||||
subs-spotless:
|
||||
@for %i in ( $(SUBS) ); do \
|
||||
@if exist %i; @cd %i && $(MAKE) $(MAKEARGS) spotless && cd ..
|
||||
|
||||
install:
|
||||
-@mkdir ..\..\$(DATDEST)\modules
|
||||
-@mkdir ..\..\$(DATDEST)\modules\runtime
|
||||
-@copy *.dll ..\..\$(DATDEST)\modules
|
||||
|
||||
subs-install: install
|
||||
@for %i in ( $(SUBS) ); do \
|
||||
@if exist %i; @cd %i && $(MAKE) $(MAKEARGS) install && cd ..
|
||||
|
||||
@@ -1,377 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.6
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canoncical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/local/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/local/bin/cmake -E remove -f
|
||||
|
||||
# The program to use to edit the cache.
|
||||
CMAKE_EDIT_COMMAND = /usr/local/bin/ccmake
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /celes/anope
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /celes/anope
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
||||
cd /celes/anope/src/protocol && /usr/local/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/src/protocol && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/src/protocol && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
cd /celes/anope/src/protocol && /usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
cd /celes/anope/src/protocol && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
cd /celes/anope/src/protocol && /usr/local/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles /celes/anope/src/protocol/CMakeFiles/progress.make
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
src/protocol/CMakeFiles/bahamut.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/CMakeFiles/bahamut.so.dir/rule
|
||||
.PHONY : src/protocol/CMakeFiles/bahamut.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
bahamut.so: src/protocol/CMakeFiles/bahamut.so.dir/rule
|
||||
.PHONY : bahamut.so
|
||||
|
||||
# fast build rule for target.
|
||||
bahamut.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/bahamut.so.dir/build.make src/protocol/CMakeFiles/bahamut.so.dir/build
|
||||
.PHONY : bahamut.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/protocol/CMakeFiles/inspircd11.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/CMakeFiles/inspircd11.so.dir/rule
|
||||
.PHONY : src/protocol/CMakeFiles/inspircd11.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
inspircd11.so: src/protocol/CMakeFiles/inspircd11.so.dir/rule
|
||||
.PHONY : inspircd11.so
|
||||
|
||||
# fast build rule for target.
|
||||
inspircd11.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/inspircd11.so.dir/build.make src/protocol/CMakeFiles/inspircd11.so.dir/build
|
||||
.PHONY : inspircd11.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/protocol/CMakeFiles/inspircd12.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/CMakeFiles/inspircd12.so.dir/rule
|
||||
.PHONY : src/protocol/CMakeFiles/inspircd12.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
inspircd12.so: src/protocol/CMakeFiles/inspircd12.so.dir/rule
|
||||
.PHONY : inspircd12.so
|
||||
|
||||
# fast build rule for target.
|
||||
inspircd12.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/inspircd12.so.dir/build.make src/protocol/CMakeFiles/inspircd12.so.dir/build
|
||||
.PHONY : inspircd12.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/protocol/CMakeFiles/ratbox.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/CMakeFiles/ratbox.so.dir/rule
|
||||
.PHONY : src/protocol/CMakeFiles/ratbox.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
ratbox.so: src/protocol/CMakeFiles/ratbox.so.dir/rule
|
||||
.PHONY : ratbox.so
|
||||
|
||||
# fast build rule for target.
|
||||
ratbox.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/ratbox.so.dir/build.make src/protocol/CMakeFiles/ratbox.so.dir/build
|
||||
.PHONY : ratbox.so/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/protocol/CMakeFiles/unreal32.so.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/protocol/CMakeFiles/unreal32.so.dir/rule
|
||||
.PHONY : src/protocol/CMakeFiles/unreal32.so.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
unreal32.so: src/protocol/CMakeFiles/unreal32.so.dir/rule
|
||||
.PHONY : unreal32.so
|
||||
|
||||
# fast build rule for target.
|
||||
unreal32.so/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/unreal32.so.dir/build.make src/protocol/CMakeFiles/unreal32.so.dir/build
|
||||
.PHONY : unreal32.so/fast
|
||||
|
||||
bahamut.o: bahamut.c.o
|
||||
.PHONY : bahamut.o
|
||||
|
||||
# target to build an object file
|
||||
bahamut.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/bahamut.so.dir/build.make src/protocol/CMakeFiles/bahamut.so.dir/bahamut.c.o
|
||||
.PHONY : bahamut.c.o
|
||||
|
||||
bahamut.i: bahamut.c.i
|
||||
.PHONY : bahamut.i
|
||||
|
||||
# target to preprocess a source file
|
||||
bahamut.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/bahamut.so.dir/build.make src/protocol/CMakeFiles/bahamut.so.dir/bahamut.c.i
|
||||
.PHONY : bahamut.c.i
|
||||
|
||||
bahamut.s: bahamut.c.s
|
||||
.PHONY : bahamut.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
bahamut.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/bahamut.so.dir/build.make src/protocol/CMakeFiles/bahamut.so.dir/bahamut.c.s
|
||||
.PHONY : bahamut.c.s
|
||||
|
||||
inspircd11.o: inspircd11.c.o
|
||||
.PHONY : inspircd11.o
|
||||
|
||||
# target to build an object file
|
||||
inspircd11.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/inspircd11.so.dir/build.make src/protocol/CMakeFiles/inspircd11.so.dir/inspircd11.c.o
|
||||
.PHONY : inspircd11.c.o
|
||||
|
||||
inspircd11.i: inspircd11.c.i
|
||||
.PHONY : inspircd11.i
|
||||
|
||||
# target to preprocess a source file
|
||||
inspircd11.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/inspircd11.so.dir/build.make src/protocol/CMakeFiles/inspircd11.so.dir/inspircd11.c.i
|
||||
.PHONY : inspircd11.c.i
|
||||
|
||||
inspircd11.s: inspircd11.c.s
|
||||
.PHONY : inspircd11.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
inspircd11.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/inspircd11.so.dir/build.make src/protocol/CMakeFiles/inspircd11.so.dir/inspircd11.c.s
|
||||
.PHONY : inspircd11.c.s
|
||||
|
||||
inspircd12.o: inspircd12.cpp.o
|
||||
.PHONY : inspircd12.o
|
||||
|
||||
# target to build an object file
|
||||
inspircd12.cpp.o:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/inspircd12.so.dir/build.make src/protocol/CMakeFiles/inspircd12.so.dir/inspircd12.cpp.o
|
||||
.PHONY : inspircd12.cpp.o
|
||||
|
||||
inspircd12.i: inspircd12.cpp.i
|
||||
.PHONY : inspircd12.i
|
||||
|
||||
# target to preprocess a source file
|
||||
inspircd12.cpp.i:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/inspircd12.so.dir/build.make src/protocol/CMakeFiles/inspircd12.so.dir/inspircd12.cpp.i
|
||||
.PHONY : inspircd12.cpp.i
|
||||
|
||||
inspircd12.s: inspircd12.cpp.s
|
||||
.PHONY : inspircd12.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
inspircd12.cpp.s:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/inspircd12.so.dir/build.make src/protocol/CMakeFiles/inspircd12.so.dir/inspircd12.cpp.s
|
||||
.PHONY : inspircd12.cpp.s
|
||||
|
||||
ratbox.o: ratbox.c.o
|
||||
.PHONY : ratbox.o
|
||||
|
||||
# target to build an object file
|
||||
ratbox.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/ratbox.so.dir/build.make src/protocol/CMakeFiles/ratbox.so.dir/ratbox.c.o
|
||||
.PHONY : ratbox.c.o
|
||||
|
||||
ratbox.i: ratbox.c.i
|
||||
.PHONY : ratbox.i
|
||||
|
||||
# target to preprocess a source file
|
||||
ratbox.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/ratbox.so.dir/build.make src/protocol/CMakeFiles/ratbox.so.dir/ratbox.c.i
|
||||
.PHONY : ratbox.c.i
|
||||
|
||||
ratbox.s: ratbox.c.s
|
||||
.PHONY : ratbox.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
ratbox.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/ratbox.so.dir/build.make src/protocol/CMakeFiles/ratbox.so.dir/ratbox.c.s
|
||||
.PHONY : ratbox.c.s
|
||||
|
||||
unreal32.o: unreal32.c.o
|
||||
.PHONY : unreal32.o
|
||||
|
||||
# target to build an object file
|
||||
unreal32.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/unreal32.so.dir/build.make src/protocol/CMakeFiles/unreal32.so.dir/unreal32.c.o
|
||||
.PHONY : unreal32.c.o
|
||||
|
||||
unreal32.i: unreal32.c.i
|
||||
.PHONY : unreal32.i
|
||||
|
||||
# target to preprocess a source file
|
||||
unreal32.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/unreal32.so.dir/build.make src/protocol/CMakeFiles/unreal32.so.dir/unreal32.c.i
|
||||
.PHONY : unreal32.c.i
|
||||
|
||||
unreal32.s: unreal32.c.s
|
||||
.PHONY : unreal32.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
unreal32.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/protocol/CMakeFiles/unreal32.so.dir/build.make src/protocol/CMakeFiles/unreal32.so.dir/unreal32.c.s
|
||||
.PHONY : unreal32.c.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... bahamut.so"
|
||||
@echo "... edit_cache"
|
||||
@echo "... inspircd11.so"
|
||||
@echo "... inspircd12.so"
|
||||
@echo "... install"
|
||||
@echo "... install/local"
|
||||
@echo "... install/strip"
|
||||
@echo "... list_install_components"
|
||||
@echo "... ratbox.so"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... unreal32.so"
|
||||
@echo "... bahamut.o"
|
||||
@echo "... bahamut.i"
|
||||
@echo "... bahamut.s"
|
||||
@echo "... inspircd11.o"
|
||||
@echo "... inspircd11.i"
|
||||
@echo "... inspircd11.s"
|
||||
@echo "... inspircd12.o"
|
||||
@echo "... inspircd12.i"
|
||||
@echo "... inspircd12.s"
|
||||
@echo "... ratbox.o"
|
||||
@echo "... ratbox.i"
|
||||
@echo "... ratbox.s"
|
||||
@echo "... unreal32.o"
|
||||
@echo "... unreal32.i"
|
||||
@echo "... unreal32.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
|
||||
'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \
|
||||
'INCLUDEDIR=${INCLUDEDIR}' 'RM=${RM}' 'CP=${CP}' \
|
||||
'TOUCH=${TOUCH}' 'SHELL=${SHELL}' 'DATDEST=${DATDEST}' \
|
||||
'RUNGROUP=${RUNGROUP}' 'MODULE_PATH=${MODULE_PATH}' \
|
||||
'PROFILE=${PROFILE}' 'SHARED=${SHARED}' 'MODULEFLAGS=${MODULEFLAGS}'
|
||||
|
||||
OBJECTS= $(SRCS:.c=.o)
|
||||
SO_FILES=$(OBJECTS:.o=.s)
|
||||
CDEFS= -rdynamic -Wall
|
||||
|
||||
all: module
|
||||
|
||||
module: $(OBJECTS) so
|
||||
|
||||
distclean: spotless
|
||||
|
||||
.c.o:
|
||||
$(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../ -I../../${INCLUDEDIR} -c $<
|
||||
|
||||
.cpp.o:
|
||||
$(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../ -I../../${INCLUDEDIR} -c $<
|
||||
|
||||
so:
|
||||
$(CC) ${SHARED} $(OBJECTS) -o ../$(TARGET).so ${PROFILE}
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so *.c~ core
|
||||
|
||||
spotless: clean
|
||||
rm -f *~ *.o *.so *.c~ core
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
include ../../Makefile.inc.win32
|
||||
|
||||
SRCS=bahamut.c inspircd11.c inspircd12.cpp \
|
||||
ratbox.c unreal32.c
|
||||
OBJECTS=bahamut.dll inspircd11.dll inspircd12.dll ratbox.dll unreal32.dll
|
||||
|
||||
CFLAGS=/LD /MD /D MODULE_COMPILE $(CFLAGS) /I"../../include"
|
||||
LFLAGS=/link ../anope.lib wsock32.lib $(LIBS) $(LFLAGS) $(MYSQL_LIB_PATH) /export:init_module /export:destroy_module /VERSION:$(VERSION)
|
||||
|
||||
all: $(OBJECTS)
|
||||
|
||||
distclean: clean spotless
|
||||
|
||||
.c.dll:
|
||||
$(CC) $(CFLAGS) $< ..\mod_version.c $(LFLAGS)
|
||||
|
||||
.cpp.dll:
|
||||
$(CC) $(CFLAGS) $< ..\mod_version.c $(LFLAGS)
|
||||
|
||||
clean:
|
||||
-@del *.obj
|
||||
|
||||
spotless: clean
|
||||
-@del *.dll *.lib *.exp *.manifest
|
||||
|
||||
install:
|
||||
-@mkdir ..\..\$(DATDEST)\modules
|
||||
-@mkdir ..\..\$(DATDEST)\modules\runtime
|
||||
-@copy *.dll ..\..\$(DATDEST)\modules
|
||||
Vendored
-60
@@ -1,60 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
oldpath=`pwd`
|
||||
|
||||
if [ $1 ]; then
|
||||
cd $1
|
||||
fi
|
||||
|
||||
echo2 () {
|
||||
$ECHO2 "$*$ECHO2SUF" # these are defined later
|
||||
}
|
||||
|
||||
ECHO2SUF=''
|
||||
if [ "`echo -n a ; echo -n b`" = "ab" ] ; then
|
||||
ECHO2='echo -n'
|
||||
elif [ "`echo 'a\c' ; echo 'b\c'`" = "ab" ] ; then
|
||||
ECHO2='echo' ; ECHO2SUF='\c'
|
||||
elif [ "`printf 'a' 2>&1 ; printf 'b' 2>&1`" = "ab" ] ; then
|
||||
ECHO2='printf "%s"'
|
||||
else
|
||||
# oh well...
|
||||
ECHO2='echo'
|
||||
fi
|
||||
export ECHO2 ECHO2SUF
|
||||
|
||||
|
||||
echo2 "SRCS=" > ./Makefile.inc
|
||||
FIRST=1
|
||||
for oldfile in `ls -1 *.c *.cpp`
|
||||
do
|
||||
if [ "$FIRST" = 1 ] ; then
|
||||
echo2 " "$oldfile >> ./Makefile.inc
|
||||
else
|
||||
echo "\\" >> ./Makefile.inc
|
||||
echo2 " " $oldfile >> ./Makefile.inc
|
||||
fi
|
||||
FIRST=0
|
||||
done
|
||||
echo "" >> ./Makefile.inc
|
||||
|
||||
echo2 "SUBS=" >> ./Makefile.inc
|
||||
FIRST=1
|
||||
for dir in *
|
||||
do
|
||||
if [ -d $dir ] ; then
|
||||
if [ -f $dir/Makefile ] ; then
|
||||
if [ "$FIRST" = 1 ] ; then
|
||||
echo2 " "$dir >> ./Makefile.inc
|
||||
else
|
||||
echo "\\" >> ./Makefile.inc
|
||||
echo2 " " $dir >> ./Makefile.inc
|
||||
fi
|
||||
FIRST=0
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd $oldpath
|
||||
|
||||
exit 0
|
||||
@@ -1,6 +0,0 @@
|
||||
all: DUMMY
|
||||
|
||||
DUMMY:
|
||||
clean:
|
||||
distclean:
|
||||
install:
|
||||
@@ -1,293 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.6
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canoncical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/local/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/local/bin/cmake -E remove -f
|
||||
|
||||
# The program to use to edit the cache.
|
||||
CMAKE_EDIT_COMMAND = /usr/local/bin/ccmake
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /celes/anope
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /celes/anope
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
||||
cd /celes/anope/src/tools && /usr/local/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/src/tools && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
cd /celes/anope/src/tools && /usr/local/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
cd /celes/anope/src/tools && /usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
cd /celes/anope/src/tools && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
cd /celes/anope/src/tools && /usr/local/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles /celes/anope/src/tools/CMakeFiles/progress.make
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/tools/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/tools/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/tools/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/tools/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
src/tools/CMakeFiles/anopesmtp.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/tools/CMakeFiles/anopesmtp.dir/rule
|
||||
.PHONY : src/tools/CMakeFiles/anopesmtp.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
anopesmtp: src/tools/CMakeFiles/anopesmtp.dir/rule
|
||||
.PHONY : anopesmtp
|
||||
|
||||
# fast build rule for target.
|
||||
anopesmtp/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/anopesmtp.dir/build.make src/tools/CMakeFiles/anopesmtp.dir/build
|
||||
.PHONY : anopesmtp/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/tools/CMakeFiles/db-convert.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/tools/CMakeFiles/db-convert.dir/rule
|
||||
.PHONY : src/tools/CMakeFiles/db-convert.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
db-convert: src/tools/CMakeFiles/db-convert.dir/rule
|
||||
.PHONY : db-convert
|
||||
|
||||
# fast build rule for target.
|
||||
db-convert/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/db-convert.dir/build.make src/tools/CMakeFiles/db-convert.dir/build
|
||||
.PHONY : db-convert/fast
|
||||
|
||||
# Convenience name for target.
|
||||
src/tools/CMakeFiles/db-merger.dir/rule:
|
||||
cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 src/tools/CMakeFiles/db-merger.dir/rule
|
||||
.PHONY : src/tools/CMakeFiles/db-merger.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
db-merger: src/tools/CMakeFiles/db-merger.dir/rule
|
||||
.PHONY : db-merger
|
||||
|
||||
# fast build rule for target.
|
||||
db-merger/fast:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/db-merger.dir/build.make src/tools/CMakeFiles/db-merger.dir/build
|
||||
.PHONY : db-merger/fast
|
||||
|
||||
anopesmtp.o: anopesmtp.c.o
|
||||
.PHONY : anopesmtp.o
|
||||
|
||||
# target to build an object file
|
||||
anopesmtp.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/anopesmtp.dir/build.make src/tools/CMakeFiles/anopesmtp.dir/anopesmtp.c.o
|
||||
.PHONY : anopesmtp.c.o
|
||||
|
||||
anopesmtp.i: anopesmtp.c.i
|
||||
.PHONY : anopesmtp.i
|
||||
|
||||
# target to preprocess a source file
|
||||
anopesmtp.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/anopesmtp.dir/build.make src/tools/CMakeFiles/anopesmtp.dir/anopesmtp.c.i
|
||||
.PHONY : anopesmtp.c.i
|
||||
|
||||
anopesmtp.s: anopesmtp.c.s
|
||||
.PHONY : anopesmtp.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
anopesmtp.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/anopesmtp.dir/build.make src/tools/CMakeFiles/anopesmtp.dir/anopesmtp.c.s
|
||||
.PHONY : anopesmtp.c.s
|
||||
|
||||
db-convert.o: db-convert.c.o
|
||||
.PHONY : db-convert.o
|
||||
|
||||
# target to build an object file
|
||||
db-convert.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/db-convert.dir/build.make src/tools/CMakeFiles/db-convert.dir/db-convert.c.o
|
||||
.PHONY : db-convert.c.o
|
||||
|
||||
db-convert.i: db-convert.c.i
|
||||
.PHONY : db-convert.i
|
||||
|
||||
# target to preprocess a source file
|
||||
db-convert.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/db-convert.dir/build.make src/tools/CMakeFiles/db-convert.dir/db-convert.c.i
|
||||
.PHONY : db-convert.c.i
|
||||
|
||||
db-convert.s: db-convert.c.s
|
||||
.PHONY : db-convert.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
db-convert.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/db-convert.dir/build.make src/tools/CMakeFiles/db-convert.dir/db-convert.c.s
|
||||
.PHONY : db-convert.c.s
|
||||
|
||||
db-merger.o: db-merger.c.o
|
||||
.PHONY : db-merger.o
|
||||
|
||||
# target to build an object file
|
||||
db-merger.c.o:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/db-merger.dir/build.make src/tools/CMakeFiles/db-merger.dir/db-merger.c.o
|
||||
.PHONY : db-merger.c.o
|
||||
|
||||
db-merger.i: db-merger.c.i
|
||||
.PHONY : db-merger.i
|
||||
|
||||
# target to preprocess a source file
|
||||
db-merger.c.i:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/db-merger.dir/build.make src/tools/CMakeFiles/db-merger.dir/db-merger.c.i
|
||||
.PHONY : db-merger.c.i
|
||||
|
||||
db-merger.s: db-merger.c.s
|
||||
.PHONY : db-merger.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
db-merger.c.s:
|
||||
cd /celes/anope && $(MAKE) -f src/tools/CMakeFiles/db-merger.dir/build.make src/tools/CMakeFiles/db-merger.dir/db-merger.c.s
|
||||
.PHONY : db-merger.c.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... anopesmtp"
|
||||
@echo "... db-convert"
|
||||
@echo "... db-merger"
|
||||
@echo "... edit_cache"
|
||||
@echo "... install"
|
||||
@echo "... install/local"
|
||||
@echo "... install/strip"
|
||||
@echo "... list_install_components"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... anopesmtp.o"
|
||||
@echo "... anopesmtp.i"
|
||||
@echo "... anopesmtp.s"
|
||||
@echo "... db-convert.o"
|
||||
@echo "... db-convert.i"
|
||||
@echo "... db-convert.s"
|
||||
@echo "... db-merger.o"
|
||||
@echo "... db-merger.i"
|
||||
@echo "... db-merger.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
include ../../Makefile.inc.win32
|
||||
|
||||
SRCS=anopesmtp.c db-merger.c db-convert.c
|
||||
OBJECTS= $(SRCS:.c=.exe)
|
||||
CFLAGS=$(CFLAGS) /I"../../include"
|
||||
LFLAGS=/link wsock32.lib $(LIBS) $(LFLAGS)
|
||||
|
||||
all: $(OBJECTS)
|
||||
|
||||
distclean: clean spotless
|
||||
|
||||
.c.exe:
|
||||
$(CC) $(CFLAGS) $< $(LFLAGS)
|
||||
|
||||
clean:
|
||||
-@del *.obj
|
||||
|
||||
spotless: clean
|
||||
-@del *.exe *.lib *.exp
|
||||
|
||||
install: exe_install manifest_install
|
||||
|
||||
exe_install: FRC
|
||||
-@copy *.exe ..\..\$(DATDEST)\
|
||||
|
||||
manifest_install: FRC
|
||||
-@copy *.manifest ..\..\$(DATDEST)\
|
||||
|
||||
FRC:
|
||||
@@ -1,90 +0,0 @@
|
||||
///Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "../include/resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#define APSTUDIO_HIDDEN_SYMBOLS
|
||||
#include "windows.h"
|
||||
#undef APSTUDIO_HIDDEN_SYMBOLS
|
||||
#include "../include/resource.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifndef _MAC
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VER_ANOPE VERSIONINFO
|
||||
FILEVERSION VERSION_COMMA
|
||||
PRODUCTVERSION VERSION_COMMA
|
||||
FILEFLAGSMASK 0x17L10
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Anope Team"
|
||||
VALUE "FileDescription", "Anope IRC Services"
|
||||
VALUE "FileVersion", "VERSION_FULL"
|
||||
VALUE "InternalName", "Anope"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2003-2008 Anope Team"
|
||||
VALUE "OriginalFilename", "anope.exe"
|
||||
VALUE "ProductName", "Anope"
|
||||
VALUE "ProductVersion", "VERSION_DOTTED"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // !_MAC
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
ICON_APP ICON "anope-icon.ico"
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
Reference in New Issue
Block a user