summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-09 12:41:49 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-09 12:41:49 -0400
commit2ed275821676a0d5baea6c7fd843d71c72c2342c (patch)
tree480297f28e5c42d02a47b3b94027a7abe507d010 /config.mk
downloadmips-2ed275821676a0d5baea6c7fd843d71c72c2342c.tar.gz
mips-2ed275821676a0d5baea6c7fd843d71c72c2342c.tar.bz2
mips-2ed275821676a0d5baea6c7fd843d71c72c2342c.zip
initial mips32 (r2000ish mips32r6) assembler
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..682002b
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,24 @@
+# ======================= COMPILE OPTIONS ==
+
+CC=cc
+LD=cc
+
+CFLAGS += -pipe
+CFLAGS += -Wall -Wextra -pedantic
+CFLAGS += -O3 -g
+
+# ======================== CONFIG OPTIONS ==
+#
+# MAX LEX LENGTH
+# Specifies how long a ident, register,
+# instruction name, or any type of variable
+# length text can be inside the lexer
+#
+# CFLAGS+= -DMAX_LEX_LENGTH=24
+#
+#
+# MAX_ARG_LENGTH
+# Specifies how many max arguments a given
+# directive can hold
+#
+# CFLAGS+= -DMAX_ARG_LENGTH=12