diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2016-05-16 11:09:30 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2016-05-16 11:09:30 +0200 |
commit | 1a5727c568e36b927ef2088b2b02bae4c84933f3 (patch) | |
tree | df86b7ba3ebfc53a1d444a17e7b6de97339b002e /Makefile | |
parent | 5ad2af0a9c1a3fab20a3809cc2fdce66876ff456 (diff) |
Update to work in our embedded ARM environment.
The main areas of change are:
1) No dynamic memory allocations
2) Not socket oriented anymore
There are some areas that might need revisiting (such as string
formatting), and I think we ought to fuzz this code to make sure
I did not break it. There are surely some bugs in there, like it
seems one has to press CTRL+A twice to jump to the beginning of
lines.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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)) |