2010-04-02 09:29:16 +04:00
|
|
|
include "..\..\src\makeinc.mak"
|
|
|
|
|
2011-01-14 08:43:56 +03:00
|
|
|
DIRENTLIB = ..\..\src\common\dirent.lib
|
2010-04-02 09:29:16 +04:00
|
|
|
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
|
2010-10-29 21:40:02 +04:00
|
|
|
$(CC) $(CFLAGS) /I.. /Dusleep=_sleep /DPATH_MAX=255 python.c $(GLIB) /I$(PYTHONPATH)\include /DPYTHON_DLL=\"$(PYTHONLIB).dll\"
|
2010-04-02 09:29:16 +04:00
|
|
|
|
|
|
|
$(TARGET): python.obj python.def
|
2011-01-14 08:43:56 +03:00
|
|
|
$(LINK) /dll /out:$(TARGET) $(LDFLAGS) python.obj /libpath:$(PYTHONPATH)\libs $(PYTHONLIB).lib $(DIRENTLIB) $(LIBS) /def:python.def
|
2010-04-02 09:29:16 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
del $(TARGET)
|
|
|
|
del *.obj
|
|
|
|
del python.def
|
|
|
|
del *.lib
|
|
|
|
del *.exp
|