####################################################################
|
####################################################################
|
# Microwindows and Nano-X configuration file
|
# Microwindows and Nano-X configuration file
|
#
|
#
|
# This package can be configured to run on Linux (MIPS, ARM, x86)
|
# This package can be configured to run on Linux (MIPS, ARM, x86)
|
# UNIX, ELKS, DJGPP, or RTEMS.
|
# UNIX, ELKS, DJGPP, or RTEMS.
|
# On Linux, we've got drivers for Linux 2.x framebuffers, X11, or,
|
# On Linux, we've got drivers for Linux 2.x framebuffers, X11, or,
|
# svgalib for VGA hardware.
|
# svgalib for VGA hardware.
|
# In addition, a gpm or direct serial mouse driver can be configured.
|
# In addition, a gpm or direct serial mouse driver can be configured.
|
# On ELKS, the bios screen driver and serial mouse driver are always used.
|
# On ELKS, the bios screen driver and serial mouse driver are always used.
|
#
|
#
|
# Either Microwindows and/or Nano-X can be built.
|
# Either Microwindows and/or Nano-X can be built.
|
# Microwindows and Nano-X have several demos.
|
# Microwindows and Nano-X have several demos.
|
#
|
#
|
# For MSDOS makes, see mcmwin.mak and mcnanox.mak
|
# For MSDOS makes, see mcmwin.mak and mcnanox.mak
|
####################################################################
|
####################################################################
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# build target platform
|
# build target platform
|
#
|
#
|
# Valid ARCH values are:
|
# Valid ARCH values are:
|
#
|
#
|
# LINUX-NATIVE
|
# LINUX-NATIVE
|
# LINUX-ARM
|
# LINUX-ARM
|
# LINUX-MIPS
|
# LINUX-MIPS
|
# SOLARIS
|
# SOLARIS
|
# RTEMS
|
# RTEMS
|
# DJGPP
|
# DJGPP
|
# ELKS
|
# ELKS
|
#
|
#
|
# note: ELKS can't build client/server nano-X, nor widget lib
|
# note: ELKS can't build client/server nano-X, nor widget lib
|
#
|
#
|
####################################################################
|
####################################################################
|
ARCH = LINUX-ARM
|
ARCH = LINUX-ARM
|
ARMTOOLSPREFIX = arm-linux-
|
ARMTOOLSPREFIX = arm-linux-
|
MIPSTOOLSPREFIX = mipsel-linux-
|
MIPSTOOLSPREFIX = mipsel-linux-
|
RTEMSTOOLSPREFIX = i386-rtemself-
|
RTEMSTOOLSPREFIX = i386-rtemself-
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# Compiling options
|
# Compiling options
|
#
|
#
|
####################################################################
|
####################################################################
|
OPTIMIZE = Y
|
OPTIMIZE = Y
|
DEBUG = N
|
DEBUG = N
|
VERBOSE = N
|
VERBOSE = N
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# Libraries to build: microwin, nano-X, nanowidget, object frameworks
|
# Libraries to build: microwin, nano-X, nanowidget, object frameworks
|
#
|
#
|
####################################################################
|
####################################################################
|
MICROWIN = Y
|
MICROWIN = Y
|
NANOX = Y
|
NANOX = Y
|
SHAREDLIBS = N
|
SHAREDLIBS = N
|
NWIDGET = N
|
NWIDGET = N
|
OBJFRAMEWORK = N
|
OBJFRAMEWORK = N
|
|
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# Demos to build
|
# Demos to build
|
#
|
#
|
####################################################################
|
####################################################################
|
MICROWINDEMO = Y
|
MICROWINDEMO = Y
|
NANOXDEMO = Y
|
NANOXDEMO = Y
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# Applications to build
|
# Applications to build
|
#
|
#
|
####################################################################
|
####################################################################
|
NANOWM = Y
|
NANOWM = Y
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# The pixeltype of the native hardware or underlying graphics library.
|
# The pixeltype of the native hardware or underlying graphics library.
|
# This definition defines the PIXELVAL to be 32, 16 or 8 bits wide.
|
# This definition defines the PIXELVAL to be 32, 16 or 8 bits wide.
|
# If using Linux framebuffer, set to MWPF_TRUECOLOR0888, and use fbset.
|
# If using Linux framebuffer, set to MWPF_TRUECOLOR0888, and use fbset.
|
# It also enables GdArea/GrArea for this particular pixel packing format.
|
# It also enables GdArea/GrArea for this particular pixel packing format.
|
#
|
#
|
# define MWPF_PALETTE /* pixel is packed 8 bits 1, 4 or 8 pal index*/
|
# define MWPF_PALETTE /* pixel is packed 8 bits 1, 4 or 8 pal index*/
|
# define MWPF_TRUECOLOR0888 /* pixel is packed 32 bits 8/8/8 truecolor*/
|
# define MWPF_TRUECOLOR0888 /* pixel is packed 32 bits 8/8/8 truecolor*/
|
# define MWPF_TRUECOLOR888 /* pixel is packed 24 bits 8/8/8 truecolor*/
|
# define MWPF_TRUECOLOR888 /* pixel is packed 24 bits 8/8/8 truecolor*/
|
# define MWPF_TRUECOLOR565 /* pixel is packed 16 bits 5/6/5 truecolor*/
|
# define MWPF_TRUECOLOR565 /* pixel is packed 16 bits 5/6/5 truecolor*/
|
# define MWPF_TRUECOLOR332 /* pixel is packed 8 bits 3/3/2 truecolor*/
|
# define MWPF_TRUECOLOR332 /* pixel is packed 8 bits 3/3/2 truecolor*/
|
#
|
#
|
####################################################################
|
####################################################################
|
SCREEN_PIXTYPE = MWPF_TRUECOLOR0888
|
SCREEN_PIXTYPE = MWPF_TRUECOLOR0888
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# NanoX: Put Y to the following line to link the nano-X application
|
# NanoX: Put Y to the following line to link the nano-X application
|
# with the server. This is required for ELKS, if no network is present,
|
# with the server. This is required for ELKS, if no network is present,
|
# or for speed or debugging. This affects the nano-X server only.
|
# or for speed or debugging. This affects the nano-X server only.
|
#
|
#
|
####################################################################
|
####################################################################
|
LINK_APP_INTO_SERVER = N
|
LINK_APP_INTO_SERVER = N
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# File I/O support
|
# File I/O support
|
# Supporting either below drags in libc stdio, which may not be wanted
|
# Supporting either below drags in libc stdio, which may not be wanted
|
#
|
#
|
####################################################################
|
####################################################################
|
HAVE_FILEIO = Y
|
HAVE_FILEIO = Y
|
|
|
####################################################################
|
####################################################################
|
# BMP, GIF reading support
|
# BMP, GIF reading support
|
####################################################################
|
####################################################################
|
HAVE_BMP_SUPPORT = Y
|
HAVE_BMP_SUPPORT = Y
|
HAVE_GIF_SUPPORT = Y
|
HAVE_GIF_SUPPORT = Y
|
HAVE_PNM_SUPPORT = Y
|
HAVE_PNM_SUPPORT = Y
|
HAVE_XPM_SUPPORT = Y
|
HAVE_XPM_SUPPORT = Y
|
|
|
####################################################################
|
####################################################################
|
# JPEG support through libjpeg, see README.txt in contrib/jpeg
|
# JPEG support through libjpeg, see README.txt in contrib/jpeg
|
####################################################################
|
####################################################################
|
HAVE_JPEG_SUPPORT = N
|
HAVE_JPEG_SUPPORT = N
|
INCJPEG = .
|
INCJPEG = .
|
LIBJPEG = /usr/lib/libjpeg.a
|
LIBJPEG = /usr/lib/libjpeg.a
|
|
|
####################################################################
|
####################################################################
|
# PNG support via libpng and libz
|
# PNG support via libpng and libz
|
####################################################################
|
####################################################################
|
HAVE_PNG_SUPPORT = N
|
HAVE_PNG_SUPPORT = N
|
INCPNG = .
|
INCPNG = .
|
LIBPNG = /usr/lib/libpng.a
|
LIBPNG = /usr/lib/libpng.a
|
LIBZ = /usr/lib/libz.a
|
LIBZ = /usr/lib/libz.a
|
|
|
####################################################################
|
####################################################################
|
# T1 adobe type1 font support thru t1lib
|
# T1 adobe type1 font support thru t1lib
|
####################################################################
|
####################################################################
|
HAVE_T1LIB_SUPPORT = N
|
HAVE_T1LIB_SUPPORT = N
|
INCT1LIB = /usr/include
|
INCT1LIB = /usr/include
|
LIBT1LIB = /usr/lib/libt1.a
|
LIBT1LIB = /usr/lib/libt1.a
|
|
|
####################################################################
|
####################################################################
|
# TrueType font support thru FreeType
|
# TrueType font support thru FreeType
|
####################################################################
|
####################################################################
|
HAVE_FREETYPE_SUPPORT = N
|
HAVE_FREETYPE_SUPPORT = N
|
INCFTLIB = /usr/include
|
INCFTLIB = /usr/include
|
LIBFTLIB = /usr/lib/libttf.so
|
LIBFTLIB = /usr/lib/libttf.so
|
|
|
####################################################################
|
####################################################################
|
# Shared memory support for Nano-X client/server protocol speedup
|
# Shared memory support for Nano-X client/server protocol speedup
|
####################################################################
|
####################################################################
|
HAVE_SHAREDMEM_SUPPORT = N
|
HAVE_SHAREDMEM_SUPPORT = N
|
|
|
####################################################################
|
####################################################################
|
# Chinese Han Zi Ku font support
|
# Chinese Han Zi Ku font support
|
####################################################################
|
####################################################################
|
HAVE_HZK_SUPPORT = N
|
HAVE_HZK_SUPPORT = N
|
HZK_FONT_DIR = "fonts/chinese"
|
HZK_FONT_DIR = "fonts/chinese"
|
|
|
####################################################################
|
####################################################################
|
# Chinese GB2312 compiled in font support (gb2312font.c)
|
# Chinese GB2312 compiled in font support (gb2312font.c)
|
####################################################################
|
####################################################################
|
HAVE_GB2312_SUPPORT = N
|
HAVE_GB2312_SUPPORT = N
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# Window move algorithms for Microwindows
|
# Window move algorithms for Microwindows
|
# Change for tradeoff between cpu speed and looks
|
# Change for tradeoff between cpu speed and looks
|
# ERASEMOVE repaints only backgrounds while window dragging, quicker.
|
# ERASEMOVE repaints only backgrounds while window dragging, quicker.
|
# Otherwise an XOR redraw is used for window moves only after button up,
|
# Otherwise an XOR redraw is used for window moves only after button up,
|
# quickest (should set for ELKS)
|
# quickest (should set for ELKS)
|
# UPDATEREGIONS paints in update clipping region only for better look and feel
|
# UPDATEREGIONS paints in update clipping region only for better look and feel
|
#
|
#
|
####################################################################
|
####################################################################
|
ERASEMOVE = Y
|
ERASEMOVE = Y
|
UPDATEREGIONS = Y
|
UPDATEREGIONS = Y
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# Use MS fonts (default no)
|
# Use MS fonts (default no)
|
#
|
#
|
####################################################################
|
####################################################################
|
HAVEMSFONTS = N
|
HAVEMSFONTS = N
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# Link with Gray Palette (valid only for 4bpp modes)
|
# Link with Gray Palette (valid only for 4bpp modes)
|
#
|
#
|
####################################################################
|
####################################################################
|
GRAYPALETTE = N
|
GRAYPALETTE = N
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# If the platform is running UNIX, Linux or RTEMS...
|
# If the platform is running UNIX, Linux or RTEMS...
|
#
|
#
|
####################################################################
|
####################################################################
|
ifneq ($(ARCH), ELKS)
|
ifneq ($(ARCH), ELKS)
|
|
|
# X Window screen, mouse and kbd drivers
|
# X Window screen, mouse and kbd drivers
|
X11 = N
|
X11 = N
|
|
|
ifeq ($(X11), Y)
|
ifeq ($(X11), Y)
|
# predefined model or select screen width, height, depth(palette mode only)
|
# predefined model or select screen width, height, depth(palette mode only)
|
SCREEN_E15 = N
|
SCREEN_E15 = N
|
SCREEN_WIDTH = 640
|
SCREEN_WIDTH = 640
|
SCREEN_HEIGHT = 480
|
SCREEN_HEIGHT = 480
|
SCREEN_DEPTH = 4
|
SCREEN_DEPTH = 4
|
|
|
else
|
else
|
|
|
# framebuffer screen driver (linear and/or vga 4 planes)
|
# framebuffer screen driver (linear and/or vga 4 planes)
|
# set VTSWITCH to include virtual terminal switch code
|
# set VTSWITCH to include virtual terminal switch code
|
# set PORTRAIT_MODE to L or R for left or right orientation
|
# set PORTRAIT_MODE to L or R for left or right orientation
|
FRAMEBUFFER = Y
|
FRAMEBUFFER = Y
|
FBVGA = Y
|
FBVGA = Y
|
VTSWITCH = Y
|
VTSWITCH = Y
|
PORTRAIT_MODE = N
|
PORTRAIT_MODE = N
|
|
|
# svgalib screen driver
|
# svgalib screen driver
|
VGALIB = N
|
VGALIB = N
|
|
|
# direct VGA hardware access screen driver
|
# direct VGA hardware access screen driver
|
HWVGA = N
|
HWVGA = N
|
|
|
####################################################################
|
####################################################################
|
# Mouse or touch screen driver
|
# Mouse or touch screen driver
|
# TPMOUSE for Linux-VR and Embedded Planet
|
# TPMOUSE for Linux-VR and Embedded Planet
|
# ADSMOUSE for ADS Graphics Client
|
# ADSMOUSE for ADS Graphics Client
|
# IPAQMOUSE for Compaq iPAQ
|
# IPAQMOUSE for Compaq iPAQ
|
####################################################################
|
####################################################################
|
GPMMOUSE = N
|
GPMMOUSE = N
|
SERMOUSE = N
|
SERMOUSE = N
|
TPMOUSE = N
|
TPMOUSE = N
|
ADSMOUSE = Y
|
ADSMOUSE = Y
|
IPAQMOUSE = N
|
IPAQMOUSE = N
|
NOMOUSE = N
|
NOMOUSE = N
|
|
|
# keyboard or null kbd driver
|
# keyboard or null kbd driver
|
TTYKBD = N
|
TTYKBD = N
|
NOKBD = Y
|
NOKBD = Y
|
|
|
endif
|
endif
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# If the platform is a LINUX-ARM box ....
|
# If the platform is a LINUX-ARM box ....
|
#
|
#
|
####################################################################
|
####################################################################
|
ifeq ($(ARCH), LINUX-ARM)
|
ifeq ($(ARCH), LINUX-ARM)
|
|
|
# If 4bpp driver with arm SA1100 LCD controller is used ...
|
# If 4bpp driver with arm SA1100 LCD controller is used ...
|
SA1100_LCD_LTLEND = N
|
SA1100_LCD_LTLEND = N
|
|
|
endif
|
endif
|
|
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# If the platform is a RTEMS box ....
|
# If the platform is a RTEMS box ....
|
#
|
#
|
####################################################################
|
####################################################################
|
ifeq ($(ARCH), RTEMS)
|
ifeq ($(ARCH), RTEMS)
|
|
|
# Location & BSP information of the RTEMS build
|
# Location & BSP information of the RTEMS build
|
RTEMS_BUILD = /tools/build-i386-elf-rtems
|
RTEMS_BUILD = /tools/build-i386-elf-rtems
|
RTEMS_BSP = pc386
|
RTEMS_BSP = pc386
|
LINK_APP_INTO_SERVER = Y
|
LINK_APP_INTO_SERVER = Y
|
|
|
endif
|
endif
|
|
|
endif
|
endif
|
|
|
####################################################################
|
####################################################################
|
#
|
#
|
# If the platform is an ELKS box ...
|
# If the platform is an ELKS box ...
|
#
|
#
|
####################################################################
|
####################################################################
|
ifeq ($(ARCH), ELKS)
|
ifeq ($(ARCH), ELKS)
|
|
|
# Higher speed asm driver, c driver of hercules screen driver
|
# Higher speed asm driver, c driver of hercules screen driver
|
ASMVGADRIVER = Y
|
ASMVGADRIVER = Y
|
CVGADRIVER = N
|
CVGADRIVER = N
|
HERCDRIVER = N
|
HERCDRIVER = N
|
DBGDRIVER = N
|
DBGDRIVER = N
|
|
|
# Mouse support
|
# Mouse support
|
SERMOUSE = Y
|
SERMOUSE = Y
|
|
|
endif
|
endif
|
|
|