### EDIT THESE ################################################
#OPENSSL = YES
#IPV6 = YES
#MMX = YES
GLIB = editme
GTK = editme
LIBS = editme
# optimize for Pentium and size
CFLAGS = /G5 /O1
###############################################################

PERLPATH = C:\PERL\LIB\CORE
PERLLIB = perl58
PERLOUTPUT = xcperl.dll

PYTHONPATH = C:\PYTHON24
PYTHONLIB = python24
PYTHONOUTPUT = xcpython.dll

TCLPATH = C:\TCL
TCLLIB = tcl84
TCLOUTPUT = xctcl.dll

CC = cl
LINK = link
CFLAGS = $(CFLAGS) -Dstrcasecmp=stricmp -Dstrncasecmp=strnicmp /MD /nologo /DWIN32 /DG_DISABLE_CAST_CHECKS
LIBS = $(LIBS) dirent.lib gdi32.lib shell32.lib user32.lib advapi32.lib imm32.lib ole32.lib winmm.lib

!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 libssl32.lib
SSLOBJ = ssl.obj
!ENDIF

COMMON_OBJECTS = \
cfgfiles.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 \
dccgui.obj \
editlist.obj \
fe-gtk.obj \
fkeys.obj \
gtkutil.obj \
ignoregui.obj \
maingui.obj \
menu.obj \
notifygui.obj \
palette.obj \
pixmaps.obj \
plugingui.obj \
rawlog.obj \
search.obj \
servlistgui.obj \
setup.obj \
tabs.obj \
textgui.obj \
urlgrab.obj \
userlistgui.obj \
xtext.obj

!IFDEF MMX
FEGTK_OBJECTS = $(FEGTK_OBJECTS) mmx_cmod.o
CFLAGS = $(CFLAGS) -DUSE_MMX
!ENDIF
