2010-04-02 01:29:16 -04:00
|
|
|
#X64 = YES
|
2010-05-22 19:51:41 -04:00
|
|
|
#PORTABLE = YES
|
2010-08-10 20:37:13 -04:00
|
|
|
OPENSSL = YES
|
2010-04-02 01:29:16 -04:00
|
|
|
IPV6 = YES
|
|
|
|
|
|
|
|
CC = cl
|
|
|
|
LINK = link
|
2010-06-15 15:36:46 -04:00
|
|
|
CFLAGS = $(CFLAGS) /Ox /c /MD /nologo /DWIN32 /DG_DISABLE_CAST_CHECKS /Dstrcasecmp=stricmp /Dstrncasecmp=strnicmp /Dstrtoull=_strtoui64 /DHAVE_STRTOULL
|
2010-04-02 01:29:16 -04:00
|
|
|
CPPFLAGS = /c /MD /nologo /DWIN32
|
|
|
|
LDFLAGS = /subsystem:windows /nologo
|
|
|
|
LIBS = $(LIBS) gdi32.lib shell32.lib user32.lib advapi32.lib imm32.lib ole32.lib winmm.lib
|
|
|
|
!ifdef X64
|
|
|
|
#############################################################
|
|
|
|
#x64 config
|
|
|
|
GLIB = -Ic:/mozilla-build/build/xchat-dev64/include/glib-2.0 -Ic:/mozilla-build/build/xchat-dev64/lib/glib-2.0/include
|
|
|
|
GTK = -Ic:/mozilla-build/build/xchat-dev64/include/gtk-2.0 -Ic:/mozilla-build/build/xchat-dev64/lib/gtk-2.0/include -Ic:/mozilla-build/build/xchat-dev64/include/atk-1.0 -Ic:/mozilla-build/build/xchat-dev64/include/cairo -Ic:/mozilla-build/build/xchat-dev64/include/pango-1.0 -Ic:/mozilla-build/build/xchat-dev64/include/glib-2.0 -Ic:/mozilla-build/build/xchat-dev64/lib/glib-2.0/include -Ic:/mozilla-build/build/xchat-dev64/include/freetype2 -Ic:/mozilla-build/build/xchat-dev64/include -Ic:/mozilla-build/build/xchat-dev64/include/libpng14
|
|
|
|
LIBS = $(LIBS) /libpath:c:/mozilla-build/build/xchat-dev64/lib gtk-win32-2.0.lib gdk-win32-2.0.lib atk-1.0.lib gio-2.0.lib gdk_pixbuf-2.0.lib pangowin32-1.0.lib gdi32.lib pangocairo-1.0.lib pango-1.0.lib cairo.lib gobject-2.0.lib gmodule-2.0.lib glib-2.0.lib intl.lib
|
|
|
|
|
2010-05-02 14:45:47 -04:00
|
|
|
CFLAGS = $(CFLAGS) /favor:AMD64 /D_WIN64
|
2010-04-02 01:29:16 -04:00
|
|
|
CPPFLAGS = $(CPPFLAGS) /favor:AMD64 /D_WIN64
|
|
|
|
LDFLAGS = $(LDFLAGS) msvcrt_win2003.obj
|
|
|
|
|
|
|
|
PERLPATH = c:\mozilla-build\perl-5.10-x64\lib\CORE
|
2010-08-10 23:49:33 -04:00
|
|
|
PYTHONPATH = c:\mozilla-build\python-2.6-x64
|
2010-07-30 15:55:49 -04:00
|
|
|
TCLPATH = c:\mozilla-build\tcl-8.5-x64
|
2010-04-02 01:29:16 -04:00
|
|
|
!else
|
|
|
|
#############################################################
|
|
|
|
#x86 config
|
|
|
|
GLIB = -Ic:/mozilla-build/build/xchat-dev32/include/glib-2.0 -Ic:/mozilla-build/build/xchat-dev32/lib/glib-2.0/include
|
|
|
|
GTK = -Ic:/mozilla-build/build/xchat-dev32/include/gtk-2.0 -Ic:/mozilla-build/build/xchat-dev32/lib/gtk-2.0/include -Ic:/mozilla-build/build/xchat-dev32/include/atk-1.0 -Ic:/mozilla-build/build/xchat-dev32/include/cairo -Ic:/mozilla-build/build/xchat-dev32/include/pango-1.0 -Ic:/mozilla-build/build/xchat-dev32/include/glib-2.0 -Ic:/mozilla-build/build/xchat-dev32/lib/glib-2.0/include -Ic:/mozilla-build/build/xchat-dev32/include/freetype2 -Ic:/mozilla-build/build/xchat-dev32/include -Ic:/mozilla-build/build/xchat-dev32/include/libpng14
|
|
|
|
LIBS = $(LIBS) /libpath:c:/mozilla-build/build/xchat-dev32/lib gtk-win32-2.0.lib gdk-win32-2.0.lib atk-1.0.lib gio-2.0.lib gdk_pixbuf-2.0.lib pangowin32-1.0.lib gdi32.lib pangocairo-1.0.lib pango-1.0.lib cairo.lib gobject-2.0.lib gmodule-2.0.lib glib-2.0.lib intl.lib
|
|
|
|
|
|
|
|
LDFLAGS = $(LDFLAGS) msvcrt_winxp.obj
|
|
|
|
|
|
|
|
PERLPATH = c:\mozilla-build\perl-5.10-x86\lib\CORE
|
2010-08-10 23:49:33 -04:00
|
|
|
PYTHONPATH = c:\mozilla-build\python-2.6-x86
|
2010-07-30 15:55:49 -04:00
|
|
|
TCLPATH = c:\mozilla-build\tcl-8.5-x86
|
2010-04-02 01:29:16 -04:00
|
|
|
|
|
|
|
MMX = YES
|
|
|
|
!endif
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
PERLLIB = perl510
|
|
|
|
PERLOUTPUT = xcperl.dll
|
|
|
|
|
2010-08-10 23:49:33 -04:00
|
|
|
PYTHONLIB = python26
|
2010-04-02 01:29:16 -04:00
|
|
|
PYTHONOUTPUT = xcpython.dll
|
|
|
|
|
2010-07-30 16:04:30 -04:00
|
|
|
TCLLIB = tcl85
|
2010-04-02 01:29:16 -04:00
|
|
|
TCLOUTPUT = xctcl.dll
|
|
|
|
|
2010-05-22 19:51:41 -04:00
|
|
|
!ifdef PORTABLE
|
|
|
|
CFLAGS = $(CFLAGS) -DPORTABLE_BUILD
|
|
|
|
!endif
|
|
|
|
|
2010-04-02 01:29:16 -04:00
|
|
|
!ifdef IPV6
|
|
|
|
CFLAGS = $(CFLAGS) -DUSE_IPV6
|
|
|
|
LIBS = $(LIBS) ws2_32.lib
|
|
|
|
!else
|
|
|
|
LIBS = $(LIBS) wsock32.lib
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef OPENSSL
|
|
|
|
CFLAGS = $(CFLAGS) /DUSE_OPENSSL
|
|
|
|
LIBS = $(LIBS) libeay32.lib ssleay32.lib
|
|
|
|
SSLOBJ = ssl.obj
|
|
|
|
!endif
|
|
|
|
|
|
|
|
COMMON_OBJECTS = \
|
|
|
|
cfgfiles.obj \
|
|
|
|
chanopt.obj \
|
|
|
|
ctcp.obj \
|
|
|
|
dcc.obj \
|
|
|
|
history.obj \
|
|
|
|
ignore.obj \
|
|
|
|
inbound.obj \
|
|
|
|
modes.obj \
|
|
|
|
network.obj \
|
|
|
|
notify.obj \
|
|
|
|
outbound.obj \
|
|
|
|
plugin.obj \
|
|
|
|
plugin-timer.obj \
|
|
|
|
proto-irc.obj \
|
|
|
|
server.obj \
|
|
|
|
servlist.obj \
|
|
|
|
$(SSLOBJ) \
|
|
|
|
text.obj \
|
|
|
|
tree.obj \
|
|
|
|
url.obj \
|
|
|
|
userlist.obj \
|
|
|
|
util.obj \
|
|
|
|
xchat.obj
|
|
|
|
|
|
|
|
FEGTK_OBJECTS = \
|
|
|
|
about.obj \
|
|
|
|
ascii.obj \
|
|
|
|
banlist.obj \
|
|
|
|
chanlist.obj \
|
|
|
|
chanview.obj \
|
|
|
|
custom-list.obj \
|
|
|
|
dccgui.obj \
|
|
|
|
editlist.obj \
|
|
|
|
fe-gtk.obj \
|
|
|
|
fkeys.obj \
|
|
|
|
gtkutil.obj \
|
|
|
|
ignoregui.obj \
|
|
|
|
joind.obj \
|
|
|
|
maingui.obj \
|
|
|
|
menu.obj \
|
|
|
|
notifygui.obj \
|
|
|
|
palette.obj \
|
|
|
|
pixmaps.obj \
|
|
|
|
plugingui.obj \
|
|
|
|
plugin-tray.obj \
|
|
|
|
rawlog.obj \
|
|
|
|
search.obj \
|
|
|
|
servlistgui.obj \
|
|
|
|
setup.obj \
|
|
|
|
sexy-spell-entry.obj \
|
|
|
|
textgui.obj \
|
|
|
|
urlgrab.obj \
|
|
|
|
userlistgui.obj \
|
|
|
|
xtext.obj
|
|
|
|
|
|
|
|
!ifdef MMX
|
|
|
|
FEGTK_OBJECTS = $(FEGTK_OBJECTS) mmx_cmod.o
|
|
|
|
CFLAGS = $(CFLAGS) -DUSE_MMX
|
|
|
|
!endif
|