summaryrefslogtreecommitdiffstats
path: root/RTEMS_Makefiles/Makefile.ncurses
blob: f08a62713f751ea07fcd811e2afdb2664b7858da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Declare supported terminal types.
# This value can be augmented/overridden by the site-configuration file
#
TERMINALS=xterm,vt100,linux,ansi

include ../RTEMS_Makefiles/Makefile.common

#
# The following will work only if you have the latest ncurses version
# of infocmp installed before trying to build for an RTEMS target.
# The cf_cv_type_of_bool hack works around a bug when configuring
# for a cross-target.
#
all:
	cf_cv_type_of_bool=char CXX="$(CC)" TERM=xterm ./configure \
		--host=$(RTEMS_CPU)-rtems \
		--prefix=$(exec_prefix) \
		--libdir=$(exec_prefix)/$(RTEMS_BSP)/lib \
		--includedir=$(exec_prefix)/$(RTEMS_BSP)/lib/include \
		--without-ada \
		--without-progs \
		--without-cxx-binding \
		--disable-sigwinch \
		--disable-database \
		--with-fallbacks="$(TERMINALS)"
	make "TERM=xterm" "HOSTCC=gcc" "HOSTCCFLAGS=-I. -I../include" HOSTLDFLAGS=""
	make install
	make distclean