aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-05-17 16:50:46 +0000
committerAndy Polyakov <appro@openssl.org>2005-05-17 16:50:46 +0000
commit53d899676411c52c2389451887d0a0b2cd452802 (patch)
treef56b29de0312c65316e4b3434f060870869f7cc4
parent32b1843ec608f156e2910dd807dcf1960ff9502d (diff)
downloadopenssl-53d899676411c52c2389451887d0a0b2cd452802.tar.gz
Engage Applink for VC builds.
-rw-r--r--crypto/asn1/a_type.c2
-rw-r--r--crypto/bio/Makefile2
-rw-r--r--util/pl/VC-32.pl28
3 files changed, 29 insertions, 3 deletions
diff --git a/crypto/asn1/a_type.c b/crypto/asn1/a_type.c
index 2292d49b93..a6acef16f3 100644
--- a/crypto/asn1/a_type.c
+++ b/crypto/asn1/a_type.c
@@ -57,8 +57,8 @@
*/
#include <stdio.h>
-#include <openssl/asn1t.h>
#include "cryptlib.h"
+#include <openssl/asn1t.h>
int ASN1_TYPE_get(ASN1_TYPE *a)
{
diff --git a/crypto/bio/Makefile b/crypto/bio/Makefile
index 5daedd1eba..1522147036 100644
--- a/crypto/bio/Makefile
+++ b/crypto/bio/Makefile
@@ -35,7 +35,7 @@ LIBOBJ= bio_lib.o bio_cb.o bio_err.o \
SRC= $(LIBSRC)
EXHEADER= bio.h
-HEADER= bss_file.c $(EXHEADER)
+HEADER= bio_lcl.h $(EXHEADER)
ALL= $(GENERAL) $(SRC) $(HEADER)
diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl
index 285b04b2e3..6334317cd7 100644
--- a/util/pl/VC-32.pl
+++ b/util/pl/VC-32.pl
@@ -11,7 +11,7 @@ $rm='del';
# C compiler stuff
$cc='cl';
-$cflags=' /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32';
+$cflags=' /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0333 -DL_ENDIAN -DDSO_WIN32';
$lflags="/nologo /subsystem:console /machine:I386 /opt:ref";
$mlflags='';
@@ -95,6 +95,32 @@ if ($shlib)
$lib_cflag=" -D_WINDLL";
$out_def="out32dll";
$tmp_def="tmp32dll";
+ #
+ # Engage Applink...
+ #
+ $app_ex_obj.=" \$(OBJ_D)\\applink.obj /implib:\$(TMP_D)\\junk.lib";
+ $cflags.=" -DOPENSSL_USE_APPLINK";
+ # I'm open for better suggestions than overriding $banner...
+ $banner=<<'___';
+ @echo Building OpenSSL
+
+$(OBJ_D)\applink.obj: ms\applink.c
+ $(CC) /Fo$(OBJ_D)\applink.obj $(APP_CFLAGS) -c ms\applink.c
+$(OBJ_D)\uplink.obj: ms\uplink.c $(OBJ_D)\applink.c
+ $(CC) /Fo$(OBJ_D)\uplink.obj $(SHLIB_CFLAGS) -c ms\uplink.c
+$(INCL_D)\uplink.h: ms\uplink.h
+ $(CP) ms\uplink.h $(INCL_D)\uplink.h
+$(INCO_D)\applink.c: ms\applink.c
+ $(CP) ms\applink.c $(INCO_D)\applink.c
+$(OBJ_D)\applink.c: ms\applink.c
+ $(CP) ms\applink.c $(OBJ_D)\applink.c
+
+HEADER=$(HEADER) $(INCL_D)\uplink.h
+EXHEADER= $(EXHEADER) $(INCO_D)\applink.c
+
+LIBS_DEP=$(LIBS_DEP) $(OBJ_D)\applink.obj
+CRYPTOOBJ=$(OBJ_D)\uplink.obj $(CRYPTOOBJ)
+___
}
$cflags.=" /Fd$out_def";