configuration changes and README

This commit is contained in:
kub 2019-08-21 18:27:26 +02:00
parent 906a1d1820
commit 0f7a30ede3
11 changed files with 196 additions and 56 deletions

View file

@ -4,6 +4,7 @@ CC = $(CROSS)gcc
AS = $(CROSS)as
AR = $(CROSS)ar
TOOLCHAIN = $(notdir $(CROSS))
LIBGCC ?= ${HOME}/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/gcc/arm-open2x-linux/4.1.1/libgcc.a
CFLAGS += -Ipub -O2 -Wall -fstrict-aliasing -ffast-math
ifneq ($(findstring arm-,$(TOOLCHAIN)),)
@ -34,7 +35,7 @@ real/arm/asmpoly_gcc.o: real/arm/asmpoly_gcc.s
$(LIB) : $(OBJS)
$(AR) r $@ $^
$(SHLIB) : $(OBJS) /home/build/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/gcc/arm-open2x-linux/4.1.1/libgcc.a
$(SHLIB) : $(OBJS) $(LIBGCC)
$(CC) -o $@ -nostdlib -shared $(CFLAGS) $^
clean: