summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 =
+