summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-08-13 17:25:09 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-08-13 17:25:09 -0400
commit7e57608dff1e768d2ee5d6b6a28a319865530ed0 (patch)
tree26a0f3795c29f8fd9e55cf63bcac278ddf55302a /Makefile
parenta9860417f53216a2f3b0b490afec46ab5db70181 (diff)
Refactored get_addr(), and all of the effective
address handling. It's now all done using several functions for each addressing mode, with the result being the effective address. I did this to make the codebase cleaner, and more readable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 454ea42..4f234e4 100644
--- a/Makefile
+++ b/Makefile
@@ -35,12 +35,18 @@ else
IO_CFLAGS=-DIO=0
endif
+ifdef GET_CLK
+CLK_CFLAGS=-Dgetclk=1
+else
+CLK_CFLAGS=-Dgetclk=0
+endif
+
OBJS = sux.o io.o $(DBG_OBJ) asmmon.o assemble.o lexer.o
OBJS2 = subasm.o subeditor.o
OBJS3 = opcode-gen.o csv-parse.o
-CFLAGS = $(PCC_CFLAGS) $(DBG_CFLAGS) $(IO_CFLAGS) $(BENCH_CFLAGS) $(CFLAGS_EXTRA)
+CFLAGS = $(PCC_CFLAGS) $(DBG_CFLAGS) $(IO_CFLAGS) $(CLK_CFLAGS) $(BENCH_CFLAGS) $(CFLAGS_EXTRA)
OBJ_NAME = cisc-0.2
OBJ_NAME2 = subeditor-c