Browse Source

use libncurses instead of libncursesw in examples, as there is less porting hassle

pull/1/head
Sami Vaarala 11 years ago
parent
commit
4b99ee9711
  1. 7
      examples/Makefile.example
  2. 2
      examples/cmdline/duk_ncurses.c

7
examples/Makefile.example

@ -106,7 +106,7 @@ DUKTAPE_CMDLINE_SOURCES = \
# on the size of -Os code, e.g. gcc-4.6 is much worse than gcc-4.5.
CC = gcc
CCOPTS = -Os -pedantic -ansi -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
CCOPTS += -I./src-combined # for combined sources
#CCOPTS += -I./src-separate # for separate sources
CCLIBS = -lm
@ -120,8 +120,9 @@ CCLIBS = -lm
# These are only needed by the example modules (duk_socket, duk_curses.c),
# and are not needed for embedding Duktape into your own project.
CCOPTS += -I/usr/include/ncursesw
CCLIBS += -lreadline -lncursesw
CCOPTS += -I/usr/include/ncurses
CCLIBS += -lreadline
CCLIBS += -lncurses
# Example target for one profile (using duk_cmdline.c as the "main" program)
duk: $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES)

2
examples/cmdline/duk_ncurses.c

@ -1,7 +1,7 @@
/*
* Ncurses bindings example.
*
* Debian: install libncursesw5-dev
* Debian: install libncurses5-dev
*/
#include <curses.h>

Loading…
Cancel
Save