X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=conf%2FUnix.mk;fp=conf%2FUnix.mk;h=a9b6450c5a51e2476fd5fa7f7677abe3401f9f17;hp=0000000000000000000000000000000000000000;hb=3f00688b9d9f483a6ca97e659eea104995ea15b7;hpb=2f454aad577ae53798935cc32438a2d3f02ba31f diff --git a/conf/Unix.mk b/conf/Unix.mk new file mode 100644 index 0000000..a9b6450 --- /dev/null +++ b/conf/Unix.mk @@ -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