Fix ncurses implementation

modified:   Makefile
	modified:   NCURSES.md
This commit is contained in:
Brian Barto 2018-10-24 22:47:26 -04:00
parent 1440337579
commit 61f1f6cfc4
2 changed files with 3 additions and 3 deletions

View File

@ -28,10 +28,10 @@ all: nms sneakers
all-ncurses: nms-ncurses sneakers-ncurses
nms-ncurses: $(OBJ)/input.o $(OBJ)/error.o $(OBJ)/nmscharset.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/nms.o | $(BIN)
$(CC) $(CFLAGS) -o $(BIN)/nms $^ -lncurses
$(CC) $(CFLAGS) -o $(BIN)/nms $^ -lncursesw
sneakers-ncurses: $(OBJ)/nmscharset.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/sneakers.o | $(BIN)
$(CC) $(CFLAGS) -o $(BIN)/sneakers $^ -lncurses
$(CC) $(CFLAGS) -o $(BIN)/sneakers $^ -lncursesw
$(OBJ)/%.o: $(SRC)/%.c | $(OBJ)
$(CC) $(CFLAGS) -o $@ -c $<

View File

@ -8,7 +8,7 @@ operating systems.
```
sudo apt-get update
sudo apt-get install lib32ncurses5-dev
sudo apt-get install lib32ncursesw5-dev
```
#### Fedora Linux