diff options
Diffstat (limited to 'src/pdclib/Makefile')
-rw-r--r-- | src/pdclib/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pdclib/Makefile b/src/pdclib/Makefile index ebb0ad4..bef1e19 100644 --- a/src/pdclib/Makefile +++ b/src/pdclib/Makefile @@ -24,8 +24,10 @@ REGDEPFILES := $(patsubst %,$(BUILDDIR)/%.d,$(REGFILES)) # All files belonging to the source distribution ALLFILES := $(SRCFILES) $(HDRFILES) $(AUXFILES) +CC = arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -fsigned-char --specs=nosys.specs + WARNINGS := -Wall -Wextra -pedantic -Wno-unused-parameter -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wuninitialized -Wstrict-prototypes -Wdeclaration-after-statement -CFLAGS := -fno-builtin -g -std=c99 -I./testing -I../user -I./platform/stmos/include $(WARNINGS) $(USERFLAGS) +CFLAGS := -fno-builtin -g -std=c99 -I./testing -I./platform/stmos/include $(WARNINGS) $(USERFLAGS) .PHONY: all clean srcdist tests testdrivers regtests regtestdrivers todos fixmes help @@ -58,7 +60,7 @@ all: $(BUILDDIR)/pdclib.a #testdrivers regtestdrivers $(BUILDDIR)/pdclib.a: $(OBJFILES) @echo " AR $@" - @ar rc $(BUILDDIR)/pdclib.a $? + @arm-none-eabi-ar rc $(BUILDDIR)/pdclib.a $? @echo tests: testdrivers |