summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-07-06 20:04:41 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-07-06 20:04:41 -0400
commit756c606af68be8ccca7aced3b9c3d56fb2d5087f (patch)
treefbc02b63feb1933a213d26ae68ab1b1a104e4ef3 /Makefile
parent887802efcdb3b56263069cc6778a8f53ed89d599 (diff)
- Implemented a new opcode table.
- Added a new preifx called the OF prefix, which adds the contents of a specific register to the current operand. - Added a table generator, which parses opcode table csv files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0bf43f0..454ea42 100644
--- a/Makefile
+++ b/Makefile
@@ -37,11 +37,14 @@ 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)
-OBJS2 = subasm.o subeditor.o
+
OBJ_NAME = cisc-0.2
OBJ_NAME2 = subeditor-c
+OBJ_NAME3 = opcode-gen
all : clean $(OBJ_NAME)
@@ -49,11 +52,12 @@ subeditor : clean $(OBJS2)
$(CC) $(OBJS2) $(CFLAGS) -lcurses -ltinfo -o $(OBJ_NAME2)
cisc-0.2: $(OBJS)
$(CC) $(OBJS) $(CFLAGS) -lpthread -lcurses -ltinfo -o $(OBJ_NAME)
-
+opcode-gen : clean $(OBJS3)
+ $(CC) $(OBJS3) $(CFLAGS) -o $(OBJ_NAME3)
%.o : %.c
$(CC) -c $< -o $@ $(CFLAGS)
clean :
- rm -f $(OBJ_NAME) $(OBJ_NAME2) *.o
+ rm -f $(OBJ_NAME) $(OBJ_NAME2) $(OBJ_NAME3) *.o
install :
install -D -m755 $(OBJ_NAME) $(BIN_DIR)/$(OBJ_NAME)
uninstall :