From 5d85baa270b046eedf472d4cb851fe17fb608fc5 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 12 Feb 2018 11:23:17 -0500 Subject: indent fixes, nested conditionals --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f81b589..1d66f11 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ -CC = gcc -m32 +#CC = gcc -m32 +#AR = ar +CC = arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char +AR = arm-none-eabi-ar -CFLAGS = -Wall -Wextra -Wno-strict-aliasing -I. -ggdb -fno-builtin +CFLAGS = -Wall -Wextra -I. -fno-builtin -ggdb all: $(CC) $(CFLAGS) -c shelpers.c @@ -9,4 +12,6 @@ all: $(CC) $(CFLAGS) -c stack.c $(CC) $(CFLAGS) -c ops.c $(CC) $(CFLAGS) -c variable.c - $(CC) $(CFLAGS) shell.c *.o -o shell + $(AR) r libinterp.a *.o + @rm -f *.o + #$(CC) $(CFLAGS) shell.c -o shell -L. -l interp -- cgit v1.2.3