summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-08-05 05:32:54 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-08-05 05:32:54 +1000
commita11980fe90fe62588fdf8103d9ef418283b3fd27 (patch)
tree954d2e327ff5190c8cdcdd977d9a73438ed62ca3 /makefile
parentb8599585fad704b2ec3bdde69dca4dd9c2a6f8fd (diff)
major refactor; doesn't compile (see ToDo)
Diffstat (limited to 'makefile')
-rw-r--r--makefile31
1 files changed, 24 insertions, 7 deletions
diff --git a/makefile b/makefile
index 84c901e..6b45ce4 100644
--- a/makefile
+++ b/makefile
@@ -1,11 +1,28 @@
SDL = -L/usr/lib -lSDL2
-default:
- gcc src/main.c $(SDL) -DGRAPHICAL -o main
+OBJS = build/6502.o build/addressing.o build/instructions.o build/table.o build/apple.o
-interpreter:
- rm interpreter
- gcc src/interpreter.c -o interpreter
+build/6502.o:
+ gcc -c src/cpu/6502.c -o build/6502.o
+build/addressing.o:
+ gcc -c src/cpu/addressing.c -o build/addressing.o
+build/instructions.o:
+ gcc -c src/cpu/instructions.c -o build/instructions.o
+build/table.o:
+ gcc -c src/cpu/table.c -o build/table.o
+build/apple.o:
+ gcc -c src/apple.c -o build/apple.o
-interpreter-illegal:
- gcc src/interpreter.c -o interpreter -D ILLEGAL \ No newline at end of file
+
+
+
+
+
+default: $(OBJS)
+ gcc src/main.c -o build/main
+
+interpreter: $(OBJS)
+ gcc src/interpreter.c -o interpreter $(OBJS)
+
+clean:
+ rm build/* \ No newline at end of file