Make ncurses version work

This commit is contained in:
Greg Shuflin 2023-07-25 23:22:00 -07:00
parent 193817fda6
commit e2d0ce2e59
3 changed files with 7 additions and 2 deletions

View File

@ -28,7 +28,7 @@ all: nms sneakers
all-ncurses: nms-ncurses sneakers-ncurses
nms-ncurses: $(OBJ)/input.o $(OBJ)/error.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/nms.o | $(BIN)
$(CC) $(CFLAGS) -o $(BIN)/nms $^ -lncursesw
$(CC) $(CFLAGS) -o $(BIN)/nms $^ -lncursesw target/release/libnmsrust.a
sneakers-ncurses: $(OBJ)/nmscharset.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/sneakers.o | $(BIN)
$(CC) $(CFLAGS) -o $(BIN)/sneakers $^ -lncursesw

View File

@ -7,6 +7,11 @@ build:
cargo build --release
make nms
# Build ncurses version
build_ncurses:
cargo build --release
make nms-ncurses
# Clean all project files
clean:

View File

@ -18,7 +18,7 @@
// Static settings
static int clearScr = 1; // clearScr flag
static int foregroundColor = COLOR_BLUE; // Foreground color setting
int foregroundColor = COLOR_BLUE; // Foreground color setting
/*
* Initialize and configure the terminal for output. This usually means