2006-02-25 20:48:17 +01:00
|
|
|
|
|
|
|
include ..\Makefile.inc
|
|
|
|
|
|
|
|
EFLAGS = -I .. -pz ..
|
|
|
|
|
2007-12-17 23:23:56 +01:00
|
|
|
OUTDIR = ..
|
2008-09-30 18:12:05 +02:00
|
|
|
BEAMS = ..\ejabberd_zlib.beam
|
2006-02-25 20:48:17 +01:00
|
|
|
|
|
|
|
SOURCE = ejabberd_zlib_drv.c
|
|
|
|
OBJECT = ejabberd_zlib_drv.o
|
|
|
|
DLL = $(OUTDIR)\ejabberd_zlib_drv.dll
|
|
|
|
|
2007-12-17 23:23:56 +01:00
|
|
|
ALL : $(DLL) $(BEAMS)
|
2006-02-25 20:48:17 +01:00
|
|
|
|
|
|
|
CLEAN :
|
|
|
|
-@erase $(DLL)
|
|
|
|
-@erase $(OUTDIR)\ejabberd_zlib_drv.exp
|
|
|
|
-@erase $(OUTDIR)\ejabberd_zlib_drv.lib
|
|
|
|
-@erase $(OBJECT)
|
2007-12-17 23:23:56 +01:00
|
|
|
-@erase $(BEAMS)
|
2006-02-25 20:48:17 +01:00
|
|
|
|
|
|
|
$(OUTDIR)\ejabberd_zlib.beam : ejabberd_zlib.erl
|
|
|
|
erlc -W $(EFLAGS) -o $(OUTDIR) ejabberd_zlib.erl
|
|
|
|
|
|
|
|
CC=cl.exe
|
|
|
|
CC_FLAGS=-nologo -D__WIN32__ -DWIN32 -DWINDOWS -D_WIN32 -DNT -MD -Ox -I"$(ERLANG_DIR)\usr\include" -I"$(EI_DIR)\include" -I"$(ZLIB_DIR)\include"
|
|
|
|
|
|
|
|
LD=link.exe
|
|
|
|
LD_FLAGS=-release -nologo -incremental:no -dll "$(EI_DIR)\lib\ei_md.lib" "$(EI_DIR)\lib\erl_interface_md.lib" "$(ZLIB_LIB)" MSVCRT.LIB kernel32.lib advapi32.lib gdi32.lib user32.lib comctl32.lib comdlg32.lib shell32.lib
|
|
|
|
|
|
|
|
$(DLL) : $(OBJECT)
|
|
|
|
$(LD) $(LD_FLAGS) -out:$(DLL) $(OBJECT)
|
|
|
|
|
|
|
|
$(OBJECT) : $(SOURCE)
|
|
|
|
$(CC) $(CC_FLAGS) -c -Fo$(OBJECT) $(SOURCE)
|
|
|
|
|