summaryrefslogtreecommitdiff
path: root/beecrypt/Makefile.mak
diff options
context:
space:
mode:
Diffstat (limited to 'beecrypt/Makefile.mak')
-rw-r--r--beecrypt/Makefile.mak49
1 files changed, 26 insertions, 23 deletions
diff --git a/beecrypt/Makefile.mak b/beecrypt/Makefile.mak
index 5ba22e6ad..fe238cae8 100644
--- a/beecrypt/Makefile.mak
+++ b/beecrypt/Makefile.mak
@@ -4,7 +4,7 @@
# To be used with Microsoft's nmake utility;
# Will need the Visual C Processor Pack installed.
#
-# Copyright (c) 2000, 2001 Virtual Unlimited B.V.
+# Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
#
# Author: Bob Deblier <bob@virtualunlimited.com>
#
@@ -28,9 +28,6 @@ CC=cl.exe
LD=link.exe
RC=rc.exe
-DEFS= \
- win32/beecrypt.def
-
LIBS= \
advapi32.lib \
gdi32.lib \
@@ -39,17 +36,19 @@ LIBS= \
winmm.lib
LIBPATH="C:\Program Files\Microsoft Visual Studio\VC98\Lib"
-JAVAPATH="C:\jdk1.3\include"
+JAVAPATH="C:\j2sdk1.4.0\include"
ASFLAGS=/nologo /c /coff /Gd
-CFLAGS=/nologo /TC /MT /GD /Ox /G5 /DHAVE_CONFIG_H /I.
-LDFLAGS=/nologo /machine:IX86 /libpath:$(LIBPATH) $(LIBS)
+CFLAGS=/nologo /TC /MT /GD /GM /Ox /G5 /I. # /ZI
+LDFLAGS=/nologo /machine:IX86 /libpath:$(LIBPATH) $(LIBS) # /DEBUG
RCFLAGS=/r /L 0x409 /FObeecrypt.res
JAVAFLAGS=/DJAVAGLUE=1 /I$(JAVAPATH) /I$(JAVAPATH)\win32
OBJECTS= \
- base64.obj \
+ aes.obj \
+ aesopt.obj \
+ base64.obj \
beecrypt.obj \
blockmode.obj \
blockpad.obj \
@@ -60,11 +59,10 @@ OBJECTS= \
dlkp.obj \
dlpk.obj \
dlsvdp-dh.obj \
+ dsa.obj \
elgamal.obj \
endianness.obj \
entropy.obj \
- fips180.obj \
- fips180opt.obj \
fips186.obj \
hmac.obj \
hmacmd5.obj \
@@ -72,6 +70,7 @@ OBJECTS= \
hmacsha256.obj \
javaglue.obj \
md5.obj \
+ memchunk.obj \
mp32.obj \
mp32opt.obj \
mp32barrett.obj \
@@ -81,37 +80,41 @@ OBJECTS= \
rsa.obj \
rsakp.obj \
rsapk.obj \
+ sha1.obj \
+ sha1opt.obj \
sha256.obj \
timestamp.obj \
- beecrypt.dll.obj \
beecrypt.res
all: .\beecrypt.dll .\beetest.exe
beecrypt.dll: $(OBJECTS)
- $(LD) $(LDFLAGS) $(OBJECTS) /dll /def:$(DEFS) /out:beecrypt.dll /implib:beecrypt.lib
+ $(LD) $(LDFLAGS) $(OBJECTS) /dll /def:beecrypt.def /out:beecrypt.dll /implib:beecrypt.lib
+
+beetest.obj: tests\beetest.c
+ $(CC) $(CFLAGS) /Fobeetest.obj /c tests\beetest.c
beetest.exe: beecrypt.lib beetest.obj
$(LD) $(LDFLAGS) beetest.obj beecrypt.lib
-beecrypt.dll.obj: win32/beecrypt.dll.c
- $(CC) $(CFLAGS) /c win32/beecrypt.dll.c
-
-beecrypt.res: win32/beecrypt.rc
- $(RC) $(RCFLAGS) win32/beecrypt.rc
+beecrypt.res: beecrypt.rc
+ $(RC) $(RCFLAGS) beecrypt.rc
javaglue.obj: javaglue.c
$(CC) $(CFLAGS) $(JAVAFLAGS) /c javaglue.c
-blowfishopt.obj: win32/masm/blowfishopt.i586.asm
- $(AS) $(ASFLAGS) /Foblowfishopt.obj /c win32/masm/blowfishopt.i586.asm
+aesopt.obj: masm\aesopt.i586.asm
+ $(AS) $(ASFLAGS) /Foaesopt.obj /c masm\aesopt.i586.asm
+
+blowfishopt.obj: masm\blowfishopt.i586.asm
+ $(AS) $(ASFLAGS) /Foblowfishopt.obj /c masm\blowfishopt.i586.asm
-fips180opt.obj: win32/masm/fips180opt.i586.asm
- $(AS) $(ASFLAGS) /Fofips180opt.obj /c win32/masm/fips180opt.i586.asm
+sha1opt.obj: masm\sha1opt.i586.asm
+ $(AS) $(ASFLAGS) /Fosha1opt.obj /c masm\sha1opt.i586.asm
-mp32opt.obj: win32/masm/mp32opt.i386.asm
- $(AS) $(ASFLAGS) /Fomp32opt.obj /c win32/masm/mp32opt.i386.asm
+mp32opt.obj: masm\mp32opt.i386.asm
+ $(AS) $(ASFLAGS) /Fomp32opt.obj /c masm\mp32opt.i386.asm
clean:
del *.obj