summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fa8f61b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+OBJECTS = lex.o parse.o output.o assembler.o tok_util.o
+
+all: assembler
+
+assembler: $(OBJECTS)
+
+lex.o: lex.h
+
+parse.o: lex.h parse.h instruction.h tok_util.h
+
+output.o: parse.h
+
+tok_util.o: lex.h
+
+
+.PHONY: clean
+clean:
+ - rm -f assembler $(OBJECTS)