Commit ea2c58c2 authored by Berke Viktor's avatar Berke Viktor
Browse files

Rename files, delete old windows makefiles

parent 52525478
#define LOCALEDIR "./locale"
#define ENABLE_NLS
#define USE_GMODULE
#define USE_PLUGIN
#define PACKAGE_NAME "xchat"
#define PACKAGE_VERSION "2.8.8-Unofficial"
#define XCHATLIBDIR "."
#define XCHATSHAREDIR "."
#define OLD_PERL
#ifndef USE_IPV6
#define socklen_t int
#endif
include "..\..\src\makeinc.mak"
all: checksum.obj checksum.def
link $(LDFLAGS) $(LIBS) /dll /out:xcchecksum.dll /def:checksum.def checksum.obj
checksum.def:
echo EXPORTS > checksum.def
echo xchat_plugin_init >> checksum.def
echo xchat_plugin_deinit >> checksum.def
checksum.obj: checksum.c makefile.mak
cl $(CFLAGS) /I.. checksum.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
DNS_OBJECTS = \
dns.obj \
thread.obj
all: $(DNS_OBJECTS) dns.def
link $(LDFLAGS) $(LIBS) /dll /out:xcdns.dll /def:dns.def $(DNS_OBJECTS)
dns.def:
echo EXPORTS > dns.def
echo xchat_plugin_init >> dns.def
echo xchat_plugin_deinit >> dns.def
.c.obj:
$(CC) $(CFLAGS) $(GLIB) /I.. /c $<
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
all: doat.obj doat.def
link $(LDFLAGS) $(LIBS) /dll /out:xcdoat.dll /def:doat.def doat.obj
doat.def:
echo EXPORTS > doat.def
echo xchat_plugin_init >> doat.def
echo xchat_plugin_deinit >> doat.def
doat.obj: doat.c makefile.mak
cl $(CFLAGS) $(GLIB) /I.. doat.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
all: exec.obj exec.def
link $(LDFLAGS) $(LIBS) /dll /out:xcexec.dll /def:exec.def exec.obj
exec.def:
echo EXPORTS > exec.def
echo xchat_plugin_init >> exec.def
echo xchat_plugin_deinit >> exec.def
exec.obj: exec.c makefile.mak
cl $(CFLAGS) $(GLIB) /I.. exec.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
TARGET = xcfishlim.dll
CFLAGS = $(CFLAGS)
FISHLIM_OBJECTS = \
fish.obj \
irc.obj \
keystore.obj \
misc.obj \
plugin_xchat.obj
all: $(FISHLIM_OBJECTS) fishlim.def
link $(LDFLAGS) $(LIBS) /dll /out:xcfishlim.dll /def:fishlim.def $(FISHLIM_OBJECTS)
fishlim.def:
echo EXPORTS > fishlim.def
echo xchat_plugin_init >> fishlim.def
echo xchat_plugin_deinit >> fishlim.def
echo xchat_plugin_get_info >> fishlim.def
.c.obj:
$(CC) $(CFLAGS) $(GLIB) /I.. /c $<
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
DIRENTLIB = ..\..\src\common\dirent-win32.lib
all: lua.obj lua.def
link $(LDFLAGS) $(LIBS) /dll /out:xclua.dll $(LUALIB).lib $(DIRENTLIB) /def:lua.def lua.obj
lua.def:
echo EXPORTS > lua.def
echo xchat_plugin_init >> lua.def
echo xchat_plugin_deinit >> lua.def
lua.obj: lua.c makefile.mak
cl $(CFLAGS) /I.. /Dsnprintf=g_snprintf lua.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib
all:
@cd checksum
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\gtkpref
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\dns
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\doat
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\exec
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\fishlim
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\lua
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\mpcinfo
@-$(MAKE) /nologo /s /f makefile.mak $@
# @cd ..\nonbmp
# @-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\python
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\tcl
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\upd
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\xsasl
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\xtray
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\winamp
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\winsys
@-$(MAKE) /nologo /s /f makefile.mak $@
@cd ..\wmpa
@-$(MAKE) /nologo /s /f makefile.mak $@
clean:
@cd checksum
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\gtkpref
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\dns
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\doat
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\exec
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\fishlim
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\lua
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\mpcinfo
@-$(MAKE) /nologo /s /f makefile.mak clean $@
# @cd ..\nonbmp
# @-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\python
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\tcl
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\upd
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\xsasl
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\xtray
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\winamp
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\winsys
@-$(MAKE) /nologo /s /f makefile.mak clean $@
@cd ..\wmpa
@-$(MAKE) /nologo /s /f makefile.mak clean $@
include "..\..\src\makeinc.mak"
all: mpcinfo.obj mpcinfo.def
link $(LDFLAGS) $(LIBS) /dll /out:xcmpcinfo.dll /def:mpcinfo.def mpcinfo.obj
mpcinfo.def:
echo EXPORTS > mpcinfo.def
echo xchat_plugin_init >> mpcinfo.def
echo xchat_plugin_deinit >> mpcinfo.def
mpcinfo.obj: mpcinfo.c makefile.mak
cl $(CFLAGS) $(GLIB) /I.. mpcinfo.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
DIRENTLIB = ..\..\src\common\dirent-win32.lib
TARGET = $(PERL512OUTPUT)
all: $(TARGET)
perl.def:
echo EXPORTS > perl.def
echo xchat_plugin_init >> perl.def
echo xchat_plugin_deinit >> perl.def
echo xchat_plugin_get_info >> perl.def
perl.obj: perl.c
$(CC) $(CFLAGS) perl.c $(GLIB) /I$(PERL512PATH)\perl\lib\CORE /I.. /DPERL_DLL=\"$(PERL512LIB).dll\"
perl512.def:
gendef $(PERL512PATH)\perl\bin\perl512.dll
$(PERL512LIB).lib: perl512.def
!ifdef X64
lib /nologo /machine:x64 /def:perl512.def
!else
lib /nologo /machine:x86 /def:perl512.def
!endif
perl.c: xchat.pm.h
xchat.pm.h: lib/Xchat.pm lib/IRC.pm
perl.exe generate_header
$(TARGET): perl.obj perl.def $(PERL512LIB).lib
$(LINK) /DLL /out:$(TARGET) perl.obj $(LDFLAGS) $(PERL512LIB).lib /delayload:$(PERL512LIB).dll $(DIRENTLIB) delayimp.lib user32.lib shell32.lib advapi32.lib /def:perl.def
clean:
@del $(TARGET)
@del *.obj
@del *.def
@del *.lib
@del *.exp
include "..\..\src\makeinc.mak"
DIRENTLIB = ..\..\src\common\dirent-win32.lib
TARGET = $(PERL514OUTPUT)
all: $(TARGET)
perl.def:
echo EXPORTS > perl.def
echo xchat_plugin_init >> perl.def
echo xchat_plugin_deinit >> perl.def
echo xchat_plugin_get_info >> perl.def
# MSVC only supports __inline, while GCC only supports __inline__. This is defined incorretly
# in lib\CORE\config.h in Strawberry Perl, see #define PERL_STATIC_INLINE static __inline__
perl.obj: perl.c
$(CC) $(CFLAGS) perl.c $(GLIB) /I$(PERL514PATH)\perl\lib\CORE /I.. /DPERL_DLL=\"$(PERL514LIB).dll\" /D__inline__=__inline
perl514.def:
gendef $(PERL514PATH)\perl\bin\perl514.dll
$(PERL514LIB).lib: perl514.def
!ifdef X64
lib /nologo /machine:x64 /def:perl514.def
!else
lib /nologo /machine:x86 /def:perl514.def
!endif
perl.c: xchat.pm.h
xchat.pm.h: lib/Xchat.pm lib/IRC.pm
perl.exe generate_header
$(TARGET): perl.obj perl.def $(PERL514LIB).lib
$(LINK) /DLL /out:$(TARGET) perl.obj $(LDFLAGS) $(PERL514LIB).lib /delayload:$(PERL514LIB).dll $(DIRENTLIB) delayimp.lib user32.lib shell32.lib advapi32.lib /def:perl.def
clean:
@del $(TARGET)
@del *.obj
@del *.def
@del *.lib
@del *.exp
include "..\..\src\makeinc.mak"
DIRENTLIB = ..\..\src\common\dirent-win32.lib
TARGET = $(PYTHONOUTPUT)
all: $(TARGET)
python.def:
echo EXPORTS > python.def
echo xchat_plugin_init >> python.def
echo xchat_plugin_deinit >> python.def
echo xchat_plugin_get_info >> python.def
python.obj: python.c
$(CC) $(CFLAGS) /I.. /Dusleep=_sleep /DPATH_MAX=255 python.c $(GLIB) /I$(PYTHONPATH)\include /DPYTHON_DLL=\"$(PYTHONLIB).dll\"
$(TARGET): python.obj python.def
$(LINK) /dll /out:$(TARGET) $(LDFLAGS) python.obj /libpath:$(PYTHONPATH)\libs $(PYTHONLIB).lib $(DIRENTLIB) $(LIBS) /def:python.def
clean:
del $(TARGET)
del *.obj
del python.def
del *.lib
del *.exp
include "..\..\src\makeinc.mak"
TARGET = $(TCLOUTPUT)
all: $(TARGET)
tcl.def:
echo EXPORTS > tcl.def
echo xchat_plugin_init >> tcl.def
echo xchat_plugin_deinit >> tcl.def
echo xchat_plugin_get_info >> tcl.def
tclplugin.obj: tclplugin.c
$(CC) $(CFLAGS) /I.. tclplugin.c /I$(TCLPATH)\include /DTCL_DLL=\"$(TCLLIB).dll\"
$(TARGET): tclplugin.obj tcl.def
$(LINK) /dll /out:$(TARGET) $(LDFLAGS) tclplugin.obj /libpath:$(TCLPATH)\lib $(TCLLIB).lib /delayload:$(TCLLIB).dll delayimp.lib /def:tcl.def
clean:
del $(TARGET)
del *.obj
del tcl.def
include "..\..\src\makeinc.mak"
all: upd.obj upd.def
link $(LDFLAGS) $(LIBS) /dll /out:xcupd.dll /def:upd.def upd.obj
upd.def:
echo EXPORTS > upd.def
echo xchat_plugin_init >> upd.def
echo xchat_plugin_deinit >> upd.def
upd.obj: upd.c makefile.mak
cl $(CFLAGS) $(GLIB) /I.. upd.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
all: winamp.obj winamp.def
link $(LDFLAGS) $(LIBS) /dll /out:xcwinamp.dll /def:winamp.def winamp.obj
winamp.def:
echo EXPORTS > winamp.def
echo xchat_plugin_init >> winamp.def
echo xchat_plugin_deinit >> winamp.def
winamp.obj: winamp.c makefile.mak
cl $(CFLAGS) /I.. winamp.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
all: winsys.obj winsys.def
link $(LDFLAGS) $(LIBS) /NODEFAULTLIB:comsupp.lib wbemuuid.lib vccomsup.lib /dll /out:xcwinsys.dll /def:winsys.def winsys.obj
winsys.def:
echo EXPORTS > winsys.def
echo xchat_plugin_init >> winsys.def
echo xchat_plugin_deinit >> winsys.def
winsys.obj: winsys.cpp makefile.mak
cl $(CFLAGS) $(GLIB) /DUNICODE /D_UNICODE /Zc:wchar_t- /I.. winsys.cpp
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
TARGET = xcwmpa.dll
WMPA_OBJECTS = \
wmpa.obj \
wmpadialog.obj \
wmpcdrom.obj \
wmpcdromcollection.obj \
wmpclosedcaption.obj \
wmpcontrols.obj \
wmpdvd.obj \
wmperror.obj \
wmperroritem.obj \
wmpmedia.obj \
wmpmediacollection.obj \
wmpnetwork.obj \
wmpplayer4.obj \
wmpplayerapplication.obj \
wmpplaylist.obj \
wmpplaylistarray.obj \
wmpplaylistcollection.obj \
wmpsettings.obj \
wmpstringcollection.obj \
xchat-plugin.obj
CPPFLAGS = $(CPPFLAGS) /EHsc /D_AFXDLL /D_AFX_NO_DAO_SUPPORT /D_WINDLL /D_USRDLL
all: $(WMPA_OBJECTS) $(TARGET)
.cpp.obj:
$(CC) $(CPPFLAGS) /Yc"StdAfx.h" /Fp"wmpa.pch" StdAfx.cpp
$(CC) $(CPPFLAGS) /Yu"StdAfx.h" /Fp"wmpa.pch" /c $<
$(TARGET): $(WMPA_OBJECTS)
rc /nologo /D_AFXDLL wmpa.rc
!ifdef X64
midl /nologo /mktyplib203 /char signed /env x64 /h wmpa_h.h /tlb wmpa.tlb wmpa.odl
!else
midl /nologo /mktyplib203 /char signed /env win32 /h wmpa_h.h /tlb wmpa.tlb wmpa.odl
!endif
$(LINK) /DLL /out:$(TARGET) $(LDFLAGS) $(WMPA_OBJECTS) $(LIBS) /def:wmpa.def wmpa.res
clean:
del $(TARGET)
del *.obj
del wmpa.pch
del wmpa.res
del wmpa.tlb
del wmpa_h.h
del wmpa_i.c
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
all: xsasl.obj xsasl.def
link $(LDFLAGS) $(LIBS) /dll /out:xcxsasl.dll /def:xsasl.def xsasl.obj
xsasl.def:
echo EXPORTS > xsasl.def
echo xchat_plugin_init >> xsasl.def
echo xchat_plugin_deinit >> xsasl.def
xsasl.obj: xsasl.c makefile.mak
cl $(CFLAGS) $(GLIB) /I.. xsasl.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib
include "..\..\src\makeinc.mak"
TARGET = xtray.dll
TRAY_OBJECTS = \
callbacks.obj \
sdAlerts.obj \
sdTray.obj \
utility.obj \
xchat.obj \
xtray.obj
CPPFLAGS = $(CPPFLAGS) /D_STL70_ /D_STATIC_CPPLIB /EHsc /DUNICODE /D_UNICODE
all: $(TRAY_OBJECTS) $(TARGET)
xtray.def:
echo EXPORTS > xtray.def
echo xchat_plugin_init >> xtray.def
echo xchat_plugin_deinit >> xtray.def
.cpp.obj:
$(CC) $(CPPFLAGS) /I.. /c $<
res:
rc /nologo resource.rc
$(TARGET): $(TRAY_OBJECTS) xtray.def res
$(LINK) /DLL /out:$(TARGET) $(LDFLAGS) $(TRAY_OBJECTS) ntstc_msvcrt.lib $(LIBS) /def:xtray.def resource.res
clean:
del $(TARGET)
del *.obj
del xtray.def
del resource.res
del *.lib
del *.exp
include "..\makeinc.mak"
COMMON_OBJECTS = \
cfgfiles.obj \
chanopt.obj \
ctcp.obj \
dcc.obj \
dirent-win32.obj \
history.obj \
identd.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 \
ssl.obj \
text.obj \
thread.obj \
tree.obj \
url.obj \
userlist.obj \
util.obj \
xchat.obj
all: $(COMMON_OBJECTS) xchatcommon.lib dirent-win32.lib
xchatcommon.lib: $(COMMON_OBJECTS)
lib /nologo /out:xchatcommon.lib $(COMMON_OBJECTS)
dirent-win32.lib: dirent-win32.obj
lib /nologo /out:dirent-win32.lib dirent-win32.obj
.c.obj::
$(CC) $(CFLAGS) $(GLIB) $<
clean:
@del *.obj
@del xchatcommon.lib
@del dirent-win32.lib
include "..\makeinc.mak"
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 \