From c1e735ec8b0481c1ebc631cd495a10f72e47ba32 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 26 Nov 2019 00:33:20 -0500 Subject: Revamped the entire emulator. I finally implemented the other addressing modes, and added a Makefile. Not sure when I will start work on rev2 of Sux, but it will be sometime soon. --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e83e8b2 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +PREFIX := /usr/local +BIN_DIR := $(PREFIX)/bin + +ifdef PCC +PCC_CFLAGS=-D__float128="long double" +else +PCC_CFLAGS= +endif + +CFLAGS = $(PCC_CFLAGS) $(CFLAGS_EXTRA) +OBJS = opcode.o sux.o +OBJ_NAME = cisc-0.2 +all : $(OBJS) + $(CC) $(OBJS) $(CFLAGS) -o $(OBJ_NAME) +sux.o : + $(CC) sux.c -c $(CFLAGS) -o sux.o +opcode.o : + $(CC) opcode.c -c $(CFLAGS) -o opcode.o +clean : + rm -f $(OBJ_NAME) $(OBJS) +install : + install -D -m755 $(OBJ_NAME) $(BIN_DIR)/$(OBJ_NAME) +uninstall : + rm -f $(BIN_DIR)/$(OBJ_NAME) -- cgit v1.2.3-13-gbd6f