summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2015-09-12 11:00:15 -0500
committerBobby Bingham <koorogi@koorogi.info>2015-09-15 22:43:32 -0500
commit7e8d7666ca5ee0f147e29ae0911ee1c7e5d15801 (patch)
tree3a2d1e85486a9ce4e39cc427ac37a7c3b31cee08
parent8abdbbff5f43a6c81d9aae1e71bd340b14e847e1 (diff)
add config.mak to allow setting toolchain options
-rw-r--r--Makefile2
-rw-r--r--config.mak12
2 files changed, 14 insertions, 0 deletions
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 =
+