summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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