generated from ThalesGroup/template-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
win-cl-ssl.mk
56 lines (49 loc) · 1.63 KB
/
win-cl-ssl.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/false
##############################################################################
#
# This file is part of the "Luna OpenSSL for PQC" project.
#
# The " Luna OpenSSL for PQC " project is provided under the MIT license (see the
# following Web site for further details: https://mit-license.org/ ).
#
# Copyright © 2024 Thales Group
#
##############################################################################
#
# Description: shared windows compiler settings (little-endian)
# for openssl engine, provider, sautil, engineperf, etc.
#
# flags consistent with openssl
CC="CL.EXE"
CPP="$(CC)" /EP /C
MT="MT.EXE"
RM0="rm"
RM="$(RM0)" -f
CP0="cp"
CP="$(CP0)"
ASFLAGS=
CPPFLAGS=-D"_CRT_SECURE_NO_WARNINGS"
CFLAGS=/W3 /wd4090 /nologo /O2
LD="LINK.EXE"
LDFLAGS=/nologo /debug
EX_LIBS=
CNF_ASFLAGS=/c /Cp /Cx
CNF_CPPFLAGS_BASE=-D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"NDEBUG" -D"L_ENDIAN" -D"_REENTRANT"
CNF_CPPFLAGS=$(CNF_CPPFLAGS_BASE)
CNF_CFLAGS=/Gs0 /GF /Gy /MD
CNF_CXXFLAGS=
CNF_LDFLAGS=
CNF_EX_LIBS=ws2_32.lib gdi32.lib advapi32.lib crypt32.lib user32.lib
DSO_ASFLAGS=$(CNF_ASFLAGS) $(ASFLAGS)
DSO_CPPFLAGS=$(CNF_CPPFLAGS) $(CPPFLAGS)
DSO_CFLAGS=/Zi $(CNF_CFLAGS) $(CFLAGS)
DSO_LDFLAGS=/dll $(CNF_LDFLAGS) $(LDFLAGS)
DSO_EX_LIBS=$(CNF_EX_LIBS) $(EX_LIBS)
BIN_ASFLAGS=$(CNF_ASFLAGS) $(ASFLAGS)
BIN_CPPFLAGS=$(CNF_CPPFLAGS) $(CPPFLAGS)
BIN_CFLAGS=/Zi $(CNF_CFLAGS) $(CFLAGS)
BIN_LDFLAGS=setargv.obj /subsystem:console /opt:ref $(CNF_LDFLAGS) $(LDFLAGS)
BIN_EX_LIBS=$(CNF_EX_LIBS) $(EX_LIBS)
# openssl install directory
CFG_INSTALLDIR=c:\cygwin\usr\local\ssl
#eof