1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-27 16:38:06 +11:00

emul+cvm: link to curses instead of ncurses

NetBSD doesn't have ncurses. Linking to curses doesn't seem to change
anything. Tried on OpenBSD and Ubuntu.
This commit is contained in:
Virgil Dupras 2020-11-07 08:45:26 -05:00
parent 0a26acfee6
commit 6cb310c38c
6 changed files with 7 additions and 10 deletions

View File

@ -19,7 +19,7 @@ blkfs: $(BLKPACK)
$(BLKPACK) ../blk > $@ $(BLKPACK) ../blk > $@
forth: forth.c $(OBJS) forth: forth.c $(OBJS)
$(CC) -DBLKFS_PATH=\"`pwd`/blkfs\" forth.c $(OBJS) -lncurses -o $@ $(CC) -DBLKFS_PATH=\"`pwd`/blkfs\" forth.c $(OBJS) -lcurses -o $@
vm.o: vm.c blkfs vm.o: vm.c blkfs
$(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -c -o vm.o vm.c $(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -c -o vm.o vm.c

View File

@ -5,8 +5,7 @@ to run natively on any POSIX environment.
## Requirements ## Requirements
You need `ncurses` to build the `forth` executable. In debian-based distros, You need `curses` to build the `forth` executable.
it's `libncurses5-dev`.
## Build ## Build

View File

@ -8,13 +8,13 @@ BLKFS = $(CDIR)/blkfs
all: $(TARGETS) all: $(TARGETS)
forth: forth.c forth.bin $(OBJS) $(BLKFS) forth: forth.c forth.bin $(OBJS) $(BLKFS)
$(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" forth.c $(OBJS) -lncurses -o $@ $(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" forth.c $(OBJS) -lcurses -o $@
forth.bin: xcomp.fs $(STAGE) forth.bin: xcomp.fs $(STAGE)
$(CDIR)/stage < xcomp.fs > $@ $(CDIR)/stage < xcomp.fs > $@
pcat: pcat.c $(OBJS) $(BLKFS) pcat: pcat.c $(OBJS) $(BLKFS)
$(CC) -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" pcat.c $(OBJS) -lncurses -o $@ $(CC) -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" pcat.c $(OBJS) -lcurses -o $@
$(BLKFS): $(STAGE) $(BLKFS): $(STAGE)

View File

@ -11,8 +11,7 @@ it only cover Collapse OS' own needs.
## Requirements ## Requirements
You need `ncurses` to build the `forth` executable. In debian-based distros, You need `curses` to build the `forth` executable.
it's `libncurses5-dev`.
## Build ## Build

View File

@ -11,7 +11,7 @@ BLKFS = $(CDIR)/blkfs
all: $(TARGETS) all: $(TARGETS)
forth: forth.c $(OBJS) $(BLKFS) forth: forth.c $(OBJS) $(BLKFS)
$(CC) forth.c $(OBJS) -lncurses -o $@ $(CC) forth.c $(OBJS) -lcurses -o $@
rc2014: rc2014.c $(RC2014_OBJS) rc2014: rc2014.c $(RC2014_OBJS)
$(CC) rc2014.c $(RC2014_OBJS) -o $@ $(CC) rc2014.c $(RC2014_OBJS) -o $@

View File

@ -5,8 +5,7 @@ emulator.
## Requirements ## Requirements
You need `ncurses` to build the `forth` executable. In debian-based distros, You need `curses` to build the `forth` executable.
it's `libncurses5-dev`.
For `sms` and `ti84` emulators, you need XCB and pkg-config. For `sms` and `ti84` emulators, you need XCB and pkg-config.