2004-10-10 19:15:24 +02: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 = ..\tls.beam
|
2004-10-10 19:15:24 +02:00
|
|
|
|
2010-06-21 18:34:27 +02:00
|
|
|
SOURCE = tls_drv.c sha_drv.c
|
|
|
|
OBJECT = tls_drv.o sha_drv.o
|
|
|
|
DLL = $(OUTDIR)\tls_drv.dll $(OUTPUT)\sha_drv.dll
|
2004-10-10 19:15:24 +02:00
|
|
|
|
2007-12-17 23:23:56 +01:00
|
|
|
ALL : $(DLL) $(BEAMS)
|
2004-10-10 19:15:24 +02:00
|
|
|
|
|
|
|
CLEAN :
|
|
|
|
-@erase $(DLL)
|
|
|
|
-@erase $(OUTDIR)\tls_drv.exp
|
|
|
|
-@erase $(OUTDIR)\tls_drv.lib
|
2010-06-21 18:34:27 +02:00
|
|
|
-@erase $(OUTDIR)\sha_drv.exp
|
|
|
|
-@erase $(OUTDIR)\sha_drv.lib
|
2004-10-10 19:15:24 +02:00
|
|
|
-@erase $(OBJECT)
|
2007-12-17 23:23:56 +01:00
|
|
|
-@erase $(BEAMS)
|
2004-10-10 19:15:24 +02:00
|
|
|
|
|
|
|
$(OUTDIR)\tls.beam : tls.erl
|
|
|
|
erlc -W $(EFLAGS) -o $(OUTDIR) tls.erl
|
|
|
|
|
|
|
|
CC=cl.exe
|
2009-01-13 17:33:17 +01:00
|
|
|
CC_FLAGS=-nologo -D__WIN32__ -DWIN32 -DWINDOWS -D_WIN32 -DNT -MD -Ox -I"$(ERLANG_DIR)\usr\include" -I"$(EI_DIR)\include" -I"$(OPENSSL_DIR)\include" -I"."
|
2004-10-10 19:15:24 +02:00
|
|
|
|
|
|
|
LD=link.exe
|
2007-12-01 16:14:41 +01:00
|
|
|
LD_FLAGS=-release -nologo -incremental:no -dll "$(EI_DIR)\lib\ei_md.lib" "$(EI_DIR)\lib\erl_interface_md.lib" "$(OPENSSL_DIR)\lib\VC\ssleay32MD.lib" "$(OPENSSL_DIR)\lib\VC\libeay32MD.lib" MSVCRT.LIB kernel32.lib advapi32.lib gdi32.lib user32.lib comctl32.lib comdlg32.lib shell32.lib
|
2004-10-10 19:15:24 +02:00
|
|
|
|
|
|
|
$(DLL) : $(OBJECT)
|
|
|
|
$(LD) $(LD_FLAGS) -out:$(DLL) $(OBJECT)
|
|
|
|
|
|
|
|
$(OBJECT) : $(SOURCE)
|
|
|
|
$(CC) $(CC_FLAGS) -c -Fo$(OBJECT) $(SOURCE)
|
|
|
|
|