New Makefile structure; added compatibility with Windows + Visual C + nmake.
This commit is contained in:
parent
2f454aad57
commit
3f00688b9d
29 changed files with 2240 additions and 1069 deletions
69
conf/Unix.mk
Normal file
69
conf/Unix.mk
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
# Configuration for a native build on a generic Unix-like system.
|
||||
|
||||
# Build directory.
|
||||
BUILD = build
|
||||
|
||||
# Extension for executable files.
|
||||
E =
|
||||
|
||||
# Extension for object files.
|
||||
O = .o
|
||||
|
||||
# Prefix for library file name.
|
||||
LP = lib
|
||||
|
||||
# Extension for library file name.
|
||||
L = .a
|
||||
|
||||
# Prefix for DLL file name.
|
||||
DP = lib
|
||||
|
||||
# Extension for DLL file name.
|
||||
D = .so
|
||||
|
||||
# Output file names can be overridden directly. By default, they are
|
||||
# assembled using the prefix/extension macros defined above.
|
||||
# BEARSSLLIB = libbearssl.a
|
||||
# BEARSSLDLL = libbearssl.so
|
||||
# BRSSL = brssl
|
||||
# TESTCRYPTO = testcrypto
|
||||
# TESTSPEED = testspeed
|
||||
# TESTX509 = testx509
|
||||
|
||||
# File deletion tool.
|
||||
RM = rm -f
|
||||
|
||||
# Directory creation tool.
|
||||
MKDIR = mkdir -p
|
||||
|
||||
# C compiler and flags.
|
||||
CC = gcc
|
||||
CFLAGS = -W -Wall -Os -fPIC
|
||||
CCOUT = -c -o
|
||||
|
||||
# Static library building tool.
|
||||
AR = ar
|
||||
ARFLAGS = -rcs
|
||||
AROUT =
|
||||
|
||||
# DLL building tool.
|
||||
LDDLL = gcc
|
||||
LDDLLFLAGS = -shared
|
||||
LDDLLOUT = -o
|
||||
|
||||
# Static linker.
|
||||
LD = gcc
|
||||
LDFLAGS =
|
||||
LDOUT = -o
|
||||
|
||||
# C# compiler; we assume usage of Mono.
|
||||
MKT0COMP = mk$PmkT0.sh
|
||||
RUNT0COMP = mono T0Comp.exe
|
||||
|
||||
# Set the values to 'no' to disable building of the corresponding element
|
||||
# by default. Building can still be invoked with an explicit target call
|
||||
# (e.g. 'make dll' to force build the DLL).
|
||||
#STATICLIB = no
|
||||
#DLL = no
|
||||
#TOOLS = no
|
||||
#TESTS = no
|
||||
70
conf/Win.mk
Normal file
70
conf/Win.mk
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# Configuration for a native build on a Windows system with Visual Studio.
|
||||
|
||||
# Build directory.
|
||||
BUILD = build
|
||||
|
||||
# Extension for executable files.
|
||||
E = .exe
|
||||
|
||||
# Extension for object files.
|
||||
O = .obj
|
||||
|
||||
# Prefix for static library file name.
|
||||
LP =
|
||||
|
||||
# Extension for static library file name. We add an 's' so that the
|
||||
# name is distinct from the 'import library' generated along with the DLL.
|
||||
L = s.lib
|
||||
|
||||
# Prefix for DLL file name.
|
||||
DP =
|
||||
|
||||
# Extension for DLL file name.
|
||||
D = .dll
|
||||
|
||||
# Output file names can be overridden directly. By default, they are
|
||||
# assembled using the prefix/extension macros defined above.
|
||||
# BEARSSLLIB = bearssls.lib
|
||||
# BEARSSLDLL = bearssl.dll
|
||||
# BRSSL = brssl.exe
|
||||
# TESTCRYPTO = testcrypto.exe
|
||||
# TESTSPEED = testspeed.exe
|
||||
# TESTX509 = testx509.exe
|
||||
|
||||
# File deletion tool.
|
||||
RM = del /Q
|
||||
|
||||
# Directory creation tool.
|
||||
MKDIR = mkdir
|
||||
|
||||
# C compiler and flags.
|
||||
CC = cl
|
||||
CFLAGS = -nologo -W2 -O2
|
||||
CCOUT = -c -Fo
|
||||
|
||||
# Static library building tool.
|
||||
AR = lib
|
||||
ARFLAGS = -nologo
|
||||
AROUT = -out:
|
||||
|
||||
# DLL building tool.
|
||||
LDDLL = cl
|
||||
LDDLLFLAGS = -nologo -LD -MT
|
||||
LDDLLOUT = -Fe
|
||||
|
||||
# Static linker.
|
||||
LD = cl
|
||||
LDFLAGS = -nologo
|
||||
LDOUT = -Fe
|
||||
|
||||
# C# compiler.
|
||||
MKT0COMP = mk$PmkT0.cmd
|
||||
RUNT0COMP = T0Comp.exe
|
||||
|
||||
# Set the values to 'no' to disable building of the corresponding element
|
||||
# by default. Building can still be invoked with an explicit target call
|
||||
# (e.g. 'make dll' to force build the DLL).
|
||||
#STATICLIB = no
|
||||
#DLL = no
|
||||
#TOOLS = no
|
||||
#TESTS = no
|
||||
20
conf/samd20.mk
Normal file
20
conf/samd20.mk
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Example configuration file for compiling for an Atmel SAM D20 Xplained
|
||||
# Pro evaluation kit, on a Unix-like system, with a GNU toolchain.
|
||||
|
||||
# We are on a Unix system so we assume a Single Unix compatible 'make'
|
||||
# utility, and Unix defaults.
|
||||
include conf/Unix.mk
|
||||
|
||||
# We override the build directory.
|
||||
BUILD = samd20
|
||||
|
||||
# C compiler, linker, and static library builder.
|
||||
CC = arm-none-eabi-gcc
|
||||
CFLAGS = -W -Wall -Os -mthumb -ffunction-sections -fdata-sections -mcpu=cortex-m0plus
|
||||
LD = arm-none-eabi-gcc
|
||||
AR = arm-none-eabi-ar
|
||||
|
||||
# We compile only the static library.
|
||||
DLL = no
|
||||
TOOLS = no
|
||||
TESTS = no
|
||||
Loading…
Add table
Add a link
Reference in a new issue