From 32772d7049e14a18e861b3de87a819a5646f13da Mon Sep 17 00:00:00 2001 From: Rickard Date: Thu, 11 Feb 2021 12:03:12 +0100 Subject: [PATCH] Build fix --- Makefile | 12 ++++++++---- README | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 55c7317..24e7a52 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ -CC=clang -COPTS=-o x6502 -O3 -lpthread -Wall -lncurses +CC=gcc +COPTS=-o x6502 -O3 -Wall +LIBS=-lncurses -lpthread DEBUGOPTS=-DDEBUG -O0 -g PYTHON=python @@ -9,7 +10,10 @@ debug-names.h: generate_debug_names.py opcodes.h $(PYTHON) generate_debug_names.py > debug-names.h release: debug-names.h *.c *.h - $(CC) $(COPTS) *.c + $(CC) $(COPTS) *.c $(LIBS) debug: debug-names.h *.c *.h - $(CC) $(COPTS) $(DEBUGOPTS) *.c + $(CC) $(COPTS) $(DEBUGOPTS) *.c $(LIBS) + +clean: + rm -f debug-names.h x6502 diff --git a/README b/README index fea7686..e5ae707 100644 --- a/README +++ b/README @@ -24,7 +24,8 @@ Building and running x6502 To build x6502, just run `make' in the project root. You will need clang and Python installed. To use gcc, change the $(CC) var in the Makefile. No libraries beyond POSIX - libc are used. This will produce the x6502 binary. + libc are used except ncurses. This will produce the + x6502 binary. x6502 takes the compiled 6502 object file as an argument, and runs it until it encounters an EXT