diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2019-11-26 00:33:20 -0500 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2019-11-26 00:33:20 -0500 |
commit | c1e735ec8b0481c1ebc631cd495a10f72e47ba32 (patch) | |
tree | e43331c872a35790e070ad2daded086a5ef6f8c7 /Makefile | |
parent | 988c81ae76ab0da47db8938c14865d6e5b3a8024 (diff) |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
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) |