Make ncurses version work
This commit is contained in:
parent
193817fda6
commit
e2d0ce2e59
2
Makefile
2
Makefile
@ -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
|
||||
|
5
justfile
5
justfile
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user