mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-04-24 20:10:17 +00:00
huge cleanup on build system
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
include "..\..\src\makeinc.mak"
|
||||
|
||||
xcewc.dll: ewc.obj ewc.def
|
||||
all: ewc.obj ewc.def
|
||||
link $(LDFLAGS) $(LIBS) /dll /out:xcewc.dll /def:ewc.def ewc.obj
|
||||
dir xcewc.dll
|
||||
|
||||
ewc.def:
|
||||
echo EXPORTS > ewc.def
|
||||
@@ -10,7 +9,7 @@ ewc.def:
|
||||
echo xchat_plugin_deinit >> ewc.def
|
||||
|
||||
ewc.obj: ewc.c makefile.mak
|
||||
cl $(CFLAGS) /I.. ewc.c
|
||||
cl $(CFLAGS) ewc.c
|
||||
|
||||
clean:
|
||||
del *.obj
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
include "..\..\src\makeinc.mak"
|
||||
|
||||
xclua.dll: lua.obj lua.def
|
||||
all: lua.obj lua.def
|
||||
link $(LDFLAGS) $(LIBS) /dll /out:xclua.dll /libpath:$(LUAPATH)\lib $(LUALIB).lib /def:lua.def lua.obj
|
||||
dir xclua.dll
|
||||
|
||||
lua.def:
|
||||
echo EXPORTS > lua.def
|
||||
@@ -10,7 +9,7 @@ lua.def:
|
||||
echo xchat_plugin_deinit >> lua.def
|
||||
|
||||
lua.obj: lua.c makefile.mak
|
||||
cl $(CFLAGS) /Dsnprintf=g_snprintf /I.. /I$(LUAPATH)\include /I.. lua.c
|
||||
cl $(CFLAGS) /Dsnprintf=g_snprintf /I$(LUAPATH)\include lua.c
|
||||
|
||||
clean:
|
||||
del *.obj
|
||||
|
||||
45
plugins/makefile.mak
Normal file
45
plugins/makefile.mak
Normal file
@@ -0,0 +1,45 @@
|
||||
all:
|
||||
@cd ewc
|
||||
@-$(MAKE) /nologo /s /f makefile.mak $@
|
||||
@cd ..\lua
|
||||
@-$(MAKE) /nologo /s /f makefile.mak $@
|
||||
@cd ..\perl
|
||||
@-$(MAKE) /nologo /s /f makefile.mak $@
|
||||
@cd ..\python
|
||||
@-$(MAKE) /nologo /s /f makefile.mak $@
|
||||
@cd ..\tcl
|
||||
@-$(MAKE) /nologo /s /f makefile.mak $@
|
||||
@cd ..\xdcc
|
||||
@-$(MAKE) /nologo /s /f makefile.mak $@
|
||||
|
||||
clean:
|
||||
@del ewc\*.def
|
||||
@del ewc\*.dll
|
||||
@del ewc\*.exp
|
||||
@del ewc\*.lib
|
||||
@del ewc\*.obj
|
||||
@del lua\*.def
|
||||
@del lua\*.dll
|
||||
@del lua\*.exp
|
||||
@del lua\*.lib
|
||||
@del lua\*.obj
|
||||
@del perl\*.def
|
||||
@del perl\*.dll
|
||||
@del perl\*.exp
|
||||
@del perl\*.lib
|
||||
@del perl\*.obj
|
||||
@del python\*.def
|
||||
@del python\*.dll
|
||||
@del python\*.exp
|
||||
@del python\*.lib
|
||||
@del python\*.obj
|
||||
@del tcl\*.def
|
||||
@del tcl\*.dll
|
||||
@del tcl\*.exp
|
||||
@del tcl\*.lib
|
||||
@del tcl\*.obj
|
||||
@del xdcc\*.def
|
||||
@del xdcc\*.dll
|
||||
@del xdcc\*.exp
|
||||
@del xdcc\*.lib
|
||||
@del xdcc\*.obj
|
||||
@@ -11,7 +11,7 @@ perl.def:
|
||||
echo xchat_plugin_get_info >> perl.def
|
||||
|
||||
perl.obj: perl.c
|
||||
$(CC) $(CFLAGS) perl.c $(GLIB) -I.. -I$(PERLPATH) -DPERL_DLL=\"$(PERLLIB).dll\"
|
||||
$(CC) $(CFLAGS) perl.c $(GLIB) -I$(PERLPATH) -DPERL_DLL=\"$(PERLLIB).dll\"
|
||||
|
||||
perl.c: xchat.pm.h
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@ python.def:
|
||||
echo xchat_plugin_get_info >> python.def
|
||||
|
||||
python.obj: python.c
|
||||
$(CC) $(CFLAGS) /Dusleep=_sleep /DPATH_MAX=255 python.c $(GLIB) /I.. /I$(PYTHONPATH)\include /DPYTHON_DLL=\"$(PYTHONLIB).dll\"
|
||||
$(CC) $(CFLAGS) /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 $(LIBS) /def:python.def
|
||||
$(LINK) /dll /out:$(TARGET) $(LDFLAGS) python.obj /libpath:$(PYTHONPATH)\libs $(PYTHONLIB).lib $(LIBS) /def:python.def
|
||||
|
||||
clean:
|
||||
del $(TARGET)
|
||||
|
||||
@@ -11,10 +11,10 @@ tcl.def:
|
||||
echo xchat_plugin_get_info >> tcl.def
|
||||
|
||||
tclplugin.obj: tclplugin.c
|
||||
$(CC) $(CFLAGS) tclplugin.c /I$(TCLPATH)\include /I../../include /I.. /DTCL_DLL=\"$(TCLLIB).dll\"
|
||||
$(CC) $(CFLAGS) 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
|
||||
$(LINK) /dll /out:$(TARGET) $(LDFLAGS) tclplugin.obj /libpath:$(TCLPATH)\lib $(TCLLIB).lib /delayload:$(TCLLIB).dll delayimp.lib /def:tcl.def
|
||||
|
||||
clean:
|
||||
del $(TARGET)
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
include "..\..\src\makeinc.mak"
|
||||
|
||||
xcxdcc.dll: xdcc.obj xdcc.def
|
||||
all: xdcc.obj xdcc.def
|
||||
link $(LDFLAGS) $(LIBS) /dll /out:xcxdcc.dll /def:xdcc.def xdcc.obj
|
||||
dir xcxdcc.dll
|
||||
|
||||
xdcc.def:
|
||||
echo EXPORTS > xdcc.def
|
||||
@@ -10,7 +9,7 @@ xdcc.def:
|
||||
echo xchat_plugin_deinit >> xdcc.def
|
||||
|
||||
xdcc.obj: xdcc.c makefile.mak
|
||||
cl $(CFLAGS) $(GLIB) /I.. xdcc.c
|
||||
cl $(CFLAGS) $(GLIB) xdcc.c
|
||||
|
||||
clean:
|
||||
del *.obj
|
||||
|
||||
Reference in New Issue
Block a user