New macros in Makefile: LIBCURSES (for specify libcurses name and location), WIDE_NCURSES (for select wide-characters version of libcurses)
This commit is contained in:
parent
c3eaefb7aa
commit
3a22e17caf
15
GNUmakef.def
15
GNUmakef.def
@ -108,6 +108,11 @@ EXEEXT=
|
|||||||
OBJEXT=.o
|
OBJEXT=.o
|
||||||
LIBEXT=.a
|
LIBEXT=.a
|
||||||
CFLAGS+=-D__SUNOS__ -D__UNIX__ -DUNIX
|
CFLAGS+=-D__SUNOS__ -D__UNIX__ -DUNIX
|
||||||
|
ifeq ($(WIDE_NCURSES),1)
|
||||||
|
LIBCURSES=-L/opt/csw/lib -lncursesw
|
||||||
|
else
|
||||||
|
LIBCURSES=-L/opt/csw/lib -lncurses
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM),osx) # Mac OSX
|
ifeq ($(PLATFORM),osx) # Mac OSX
|
||||||
CAT=cat
|
CAT=cat
|
||||||
@ -121,6 +126,11 @@ PLATFORM=osx
|
|||||||
EXEEXT=
|
EXEEXT=
|
||||||
OBJEXT=.o
|
OBJEXT=.o
|
||||||
LIBEXT=.a
|
LIBEXT=.a
|
||||||
|
ifeq ($(WIDE_NCURSES),1)
|
||||||
|
LIBCURSES=-lncursesw
|
||||||
|
else
|
||||||
|
LIBCURSES=-lncurses
|
||||||
|
endif
|
||||||
else # Linux, *BSD or another unix-like OS
|
else # Linux, *BSD or another unix-like OS
|
||||||
CAT=cat
|
CAT=cat
|
||||||
SED=sed
|
SED=sed
|
||||||
@ -133,7 +143,12 @@ PLATFORM=lnx
|
|||||||
EXEEXT=
|
EXEEXT=
|
||||||
OBJEXT=.o
|
OBJEXT=.o
|
||||||
LIBEXT=.a
|
LIBEXT=.a
|
||||||
|
ifeq ($(WIDE_NCURSES),1)
|
||||||
CFLAGS+=-I/usr/include/ncursesw/
|
CFLAGS+=-I/usr/include/ncursesw/
|
||||||
|
LIBCURSES=-lncursesw
|
||||||
|
else
|
||||||
|
LIBCURSES=-lncurses
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -36,15 +36,7 @@ endif
|
|||||||
include $(TOP)/GNUmakef.inc
|
include $(TOP)/GNUmakef.inc
|
||||||
|
|
||||||
ifeq ($(USE_NCURSES),1)
|
ifeq ($(USE_NCURSES),1)
|
||||||
ifeq ($(PLATFORM),lnx)
|
STDLIBS+= $(LIBCURSES)
|
||||||
STDLIBS+= -lncurses
|
|
||||||
endif
|
|
||||||
ifeq ($(PLATFORM),sun)
|
|
||||||
STDLIBS+= -L/opt/csw/lib -lncurses
|
|
||||||
endif
|
|
||||||
ifeq ($(PLATFORM),osx)
|
|
||||||
STDLIBS+= -lncurses
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(TOP)/GNUmakef.prg
|
include $(TOP)/GNUmakef.prg
|
||||||
|
Reference in New Issue
Block a user