xref: /freebsd/contrib/bearssl/conf/Win.mk (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1# Configuration for a native build on a Windows system with Visual Studio.
2
3# Build directory.
4BUILD = build
5
6# Extension for executable files.
7E = .exe
8
9# Extension for object files.
10O = .obj
11
12# Prefix for static library file name.
13LP =
14
15# Extension for static library file name. We add an 's' so that the
16# name is distinct from the 'import library' generated along with the DLL.
17L = s.lib
18
19# Prefix for DLL file name.
20DP =
21
22# Extension for DLL file name.
23D = .dll
24
25# Output file names can be overridden directly. By default, they are
26# assembled using the prefix/extension macros defined above.
27# BEARSSLLIB = bearssls.lib
28# BEARSSLDLL = bearssl.dll
29# BRSSL = brssl.exe
30# TESTCRYPTO = testcrypto.exe
31# TESTSPEED = testspeed.exe
32# TESTX509 = testx509.exe
33
34# File deletion tool.
35RM = del /Q
36
37# Directory creation tool.
38MKDIR = mkdir
39
40# C compiler and flags.
41CC = cl
42CFLAGS = -nologo -W2 -O2
43CCOUT = -c -Fo
44
45# Static library building tool.
46AR = lib
47ARFLAGS = -nologo
48AROUT = -out:
49
50# DLL building tool.
51LDDLL = cl
52LDDLLFLAGS = -nologo -LD -MT
53LDDLLOUT = -Fe
54
55# Static linker.
56LD = cl
57LDFLAGS = -nologo
58LDOUT = -Fe
59
60# C# compiler.
61MKT0COMP = mk$PmkT0.cmd
62RUNT0COMP = T0Comp.exe
63
64# Set the values to 'no' to disable building of the corresponding element
65# by default. Building can still be invoked with an explicit target call
66# (e.g. 'make dll' to force build the DLL).
67#STATICLIB = no
68#DLL = no
69#TOOLS = no
70#TESTS = no
71