1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 20:16:36 +02:00
Files
anope/makefile.inc.win32
T
trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b 2278e8c77b BUILD : 1.7.8 (607) BUGS : N/A NOTES : Clean up after proxy was removed, some Win32 touch ups
git-svn-id: svn://svn.anope.org/anope/trunk@607 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@455 5417fbe8-f217-4b02-8779-1006273d7864
2005-03-08 05:45:40 +00:00

180 lines
4.6 KiB
Plaintext

#
# Anope IRC Services 1.7.8 for Windows
#
# 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.
#
# Please read and edit the configurations options below.
# Set which IRCd to compile for
# 1 DreamForge 4.6.7 [dated IRCd, upgrade to a current one]
# 2 Bahamut 1.4.27 [or later]
# 3 UnrealIRCd 3.1.1 [or later]
# 4 UltimateIRCd 2.8.2 [or later]
# 5 UltimateIRCd 3.0.0 [alpha26 or later]
# 6 Hybrid IRCd 7.0 [experimental]
# 7 ViagraIRCd 1.3.x [or later]
# 8 PTlink 6.15.0 [experimental]
# 9 RageIRCd 2.0 [beta-3 or later]
# 10 Unreal 3.2 [Unreal 3.2 beta19 or later] (default)
# 11 Solid IRCD 3.4.x [Solid IRCD 3.4.6 or later]
# 12 Plexus 2.0 [or later]
# 13 Ratbox 2.0.6 [or later]
# 14 ShadowIRCD 4.0x [beta 7 or later]
IRCD=10
# Set this to 1 to enable MySQL support
USE_MYSQL=0
# Set this to the path where the MySQL includes can be found
#MYSQL_INC="c:\\mysql\\include\\"
# Set this to the path where the MySQL libraries can be found
#MYSQL_LIB="c:\\mysql\\lib\\opt\\"
# Set this to 1 to enable database encryption
DB_ENCRYPTION=0
# If you want to change the names/locations of files/folders, you
# can do that here.
PROGRAM=anope.exe
BINDEST=bin
DATDEST=data
# If you are compiling using VC6, or get __ftol2 errors, please uncomment
# the following line:
#VC6=/QIfist
# If you are getting errors such as 'Cannot find wsock32.lib', then change
# the following line to the path where the library files can be found.
#LIBPATH=C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\lib
LIBPATH=
# If you edited the line above, uncomment the next line.
LFLAGS=/LIBPATH:"$(LIBPATH)"
###############################################################
#Don't touch anything below unless you know what you are doing#
###############################################################
CC=cl
RC=rc
MAKE=nmake -f Makefile.win32
BASE_CFLAGS=/O2 /MD
LIBS=wsock32.lib advapi32.lib /NODEFAULTLIB:libcmtd.lib
ELIBS=
MLIBS=
!IFNDEF IRCTYPE
!IF $(IRCD) == 1
IRCTYPE=IRC_DREAMFORGE
CAPAB_C=dreamforge.c
CAPAB_O=dreamforge.obj
!ELSEIF $(IRCD) == 2
IRCTYPE=/D IRC_BAHAMUT
CAPAB_C=bahamut.c
CAPAB_O=bahamut.obj
!ELSEIF $(IRCD) == 3
IRCTYPE=/D IRC_UNREAL31
CAPAB_C=unreal31.c
CAPAB_O=unreal31.obj
!ELSEIF $(IRCD) == 4
IRCTYPE=/D IRC_ULTIMATE2
CAPAB_C=ultimate2.c
CAPAB_O=ultimate2.obj
!ELSEIF $(IRCD) == 5
IRCTYPE=/D IRC_ULTIMATE33
CAPAB_C=ultimate3.c
CAPAB_O=ultimate3.obj
!ELSEIF $(IRCD) == 6
IRCTYPE=/D IRC_HYBRID
CAPAB_C=hybrid.c
CAPAB_O=hybrid.obj
!ELSEIF $(IRCD) == 7
IRCTYPE=/D IRC_VIAGRA
CAPAB_C=hybrid.c
CAPAB_O=hybrid.obj
!ELSEIF $(IRCD) == 8
IRCTYPE=/D IRC_PTLINK
CAPAB_C=ptlink.c
CAPAB_O=ptlink.obj
!ELSEIF $(IRCD) == 9
IRCTYPE=/D IRC_RAGE2
CAPAB_C=rageircd.c
CAPAB_O=rageircd.obj
!ELSEIF $(IRCD) == 10
IRCTYPE=/D IRC_UNREAL32
CAPAB_C=unreal32.c
CAPAB_O=unreal32.obj
!ELSEIF $(IRCD) == 11
IRCTYPE=/D IRC_SOLID
CAPAB_C=solidircd.c
CAPAB_O=solidircd.obj
!ELSEIF $(IRCD) == 12
IRCTYPE=/D IRC_PLEXUS
CAPAB_C=plexus.c
CAPAB_O=plexus.obj
!ELSEIF $(IRCD) == 13
IRCTYPE=/D IRC_RATBOX
CAPAB_C=ratbox.c
CAPAB_O=ratbox.obj
!ELSEIF $(IRCD) == 14
IRCTYPE=/D IRC_SHADOWIRCD
CAPAB_C=shadowircd.c
CAPAB_O=shadowircd.obj
!ELSE
!ERROR Invalid IRCd
!ENDIF
!ENDIF
!IF $(USE_MYSQL) == 1
!IF $(MYSQL_LIB) != ""
LIBS=$(LIBS) /LIBPATH:$(MYSQL_LIB)
MYSQL_LIB_PATH=/LIBPATH:$(MYSQL_LIB)
!ENDIF
!IF $(MYSQL_INC) != ""
BASE_CFLAGS=$(BASE_CFLAGS) /I $(MYSQL_INC)
MYSQL_INC_PATH=/I $(MYSQL_INC)
!ENDIF
RDB_C=rdb.c
RDB_O=rdb.obj
MYSQL_C=mysql.c
MYSQL_O=mysql.obj
BASE_CFLAGS=/D USE_MYSQL /D USE_RDB $(BASE_CFLAGS) /D HAVE_MYSQL_MYSQL_H
MYPASQL_BUILD=$(CC) /LD $(MYSQL_INC_PATH) src\mypasql.c /link $(MYSQL_LIB_PATH) $(LFLAGS) \
/DEF:src\mypasql.def libmysql.lib zlib.lib ws2_32.lib advapi32.lib /NODEFAULTLIB:LIBCMTD.lib
LIBS=$(LIBS) libmysql.lib zlib.lib
!ENDIF
!IF $(DB_ENCRYPTION) == 1
BASE_CFLAGS=/D USE_ENCRYPTION /D ENCRYPT_MD5 $(BASE_CFLAGS)
!ENDIF
# Note that changing any of these options (or, in fact, anything in this
# file) will automatically cause a full rebuild of Services.
# Compilation options:
# -DCLEAN_COMPILE Attempt to compile without any warnings (note that
# this may reduce performance)
# -DSTREAMLINED Leave out "fancy" options to enhance performance
CDEFS =
# Add any extra flags you want here. The default line enables warnings and
# debugging symbols on GCC. If you have a non-GCC compiler, you may want
# to comment it out or change it.
MORE_CFLAGS = /I"../include"
CFLAGS = /nologo $(VC6) $(CDEFS) $(BASE_CFLAGS) $(MORE_CFLAGS)