Skip to content

Commit

Permalink
Fix ncurses implementation
Browse files Browse the repository at this point in the history
	modified:   Makefile
	modified:   NCURSES.md
  • Loading branch information
bartobri committed Oct 25, 2018
1 parent 1440337 commit 61f1f6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<
Expand Down
2 changes: 1 addition & 1 deletion NCURSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ operating systems.

```
sudo apt-get update
sudo apt-get install lib32ncurses5-dev
sudo apt-get install lib32ncursesw5-dev
```

#### Fedora Linux
Expand Down

0 comments on commit 61f1f6c

Please sign in to comment.