aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3062635..c4d9425 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
# Build dynamic library by default
-DYNAMIC_LIB ?= 1
+DYNAMIC_LIB ?= 0
# Build static library by default
STATIC_LIB ?= 1
# Run tests by default
-TESTS ?= 1
+TESTS ?= 0
UNAME = $(shell sh -c 'uname -s 2>/dev/null || echo not')
DESTDIR =
@@ -15,7 +15,13 @@ REVISION = 7
LIB = libcli.so
LIB_STATIC = libcli.a
-CC = gcc
+CC = arm-none-eabi-gcc
+CFLAGS += -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork
+CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
+CFLAGS += -ffunction-sections -fdata-sections
+CFLAGS += -DCRYPTECH_NO_FDOPEN -DCRYPTECH_NO_SELECT
+CFLAGS += -ggdb -O2 -Wall -Wextra -Warray-bounds -Wl,--gc-sections -specs=nosys.specs -g
+#CC = gcc
AR = ar
ARFLAGS = rcs
DEBUG = -g
@@ -28,7 +34,7 @@ ifeq ($(UNAME),Darwin)
override LDFLAGS += -Wl,-install_name,$(LIB).$(MAJOR).$(MINOR)
else
override LDFLAGS += -Wl,-soname,$(LIB).$(MAJOR).$(MINOR)
-LIBS = -lcrypt
+#LIBS = -lcrypt
endif
ifeq (1,$(DYNAMIC_LIB))