summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-05-05 02:13:51 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-05-05 02:13:51 -0400
commit1a93e04fe50d59f0c524e8f4dd53d48a287adfde (patch)
treed374692f894b09b0ac869d3e0c7cb4df47e3a738 /makefile
Initial Commit
Diffstat (limited to 'makefile')
-rw-r--r--makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..e5c8228
--- /dev/null
+++ b/makefile
@@ -0,0 +1,13 @@
+CC=gcc
+CFLAGS=-Wall -Werror -pedantic --std=c17
+OBJS=mips.o
+TARGET=mips
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $@ $^
+
+all: $(TARGET)
+
+mips: $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $^
+