From 7e8d7666ca5ee0f147e29ae0911ee1c7e5d15801 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sat, 12 Sep 2015 11:00:15 -0500 Subject: add config.mak to allow setting toolchain options --- Makefile | 2 ++ config.mak | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 config.mak diff --git a/Makefile b/Makefile index 726ae6f..ef8ad3a 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ SATURN_OBJCOPY = $(SATURN_CROSS)objcopy SATURN_CFLAGS = -Os -pipe -std=c99 -nostdlib SATURN_LDFLAGS = +-include config.mak + BOOTSRCS = $(sort $(wildcard boot/*.c)) BOOTELFS = $(patsubst %.c,%.elf,$(BOOTSRCS)) BOOTBINS = $(patsubst boot/%.c,share/%.boot,$(BOOTSRCS)) diff --git a/config.mak b/config.mak new file mode 100644 index 0000000..82b079b --- /dev/null +++ b/config.mak @@ -0,0 +1,12 @@ +# Uncomment and modify any of the following as desired. +# These values are the defaults used by the main makefile +# if nothing is overridden here. + +#CFLAGS = -Os -pipe -std=c99 -D_POSIX_C_SOURCE=200809L +#LDFLAGS = +#SATURN_CROSS = saturn- +#SATURN_CC = $(SATURN_CROSS)gcc -m2 -mb +#SATURN_OBJCOPY = $(SATURN_CROSS)objcopy +#SATURN_CFLAGS = -Os -pipe -std=c99 -nostdlib +#SATURN_LDFLAGS = + -- cgit v1.2.3