#################################################################### # Microwindows and Nano-X configuration file # # This package can be configured to run on Linux (MIPS, ARM, POWERPC or x86) # UNIX, ELKS, DJGPP, or RTEMS. # On Linux, we've got drivers for Linux 2.x framebuffers, X11, or, # svgalib for VGA hardware. # 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. # # Either Microwindows and/or Nano-X can be built. # Microwindows and Nano-X have several demos. # # For MSDOS makes, see mcmwin.mak and mcnanox.mak #################################################################### #################################################################### # # build target platform # # Valid ARCH values are: # # LINUX-NATIVE # LINUX-TCC # LINUX-ARM # LINUX-MIPS # LINUX-POWERPC (BIGENDIAN=Y) # LINUX-SPARC (BIGENDIAN=Y) # LINUX-SH # FREEBSD-X86 # SOLARIS (BIGENDIAN=Y) # TRIMEDIA # RTEMS # DJGPP # ELKS # # note: ELKS can't build client/server nano-X, nor widget lib # #################################################################### ARCH = RTEMS BIGENDIAN = N ARMTOOLSPREFIX = arm-linux- MIPSTOOLSPREFIX = mipsel-linux- RTEMSTOOLSPREFIX = i386-rtems- #################################################################### # # Compiling options # #################################################################### OPTIMIZE = Y DEBUG = N VERBOSE = Y THREADSAFE = N GPROF = N #################################################################### # # Libraries to build: microwin, nano-X, nanowidget, object frameworks # #################################################################### MICROWIN = Y NANOX = Y SHAREDLIBS = N OBJFRAMEWORK = N #################################################################### # # Demos to build # #################################################################### MICROWINDEMO = N NANOXDEMO = N #################################################################### # # Applications to build # #################################################################### NANOWM = N #################################################################### # # The pixeltype of the native hardware or underlying graphics library. # This definition defines the PIXELVAL to be 32, 16 or 8 bits wide. # If using Linux framebuffer, set to MWPF_TRUECOLOR0888, and use fbset. # 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_TRUECOLOR8888 /* pixel is packed 32 bits 8/8/8/8 truecolor w/alpha*/ # 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_TRUECOLOR565 /* pixel is packed 16 bits 5/6/5 truecolor*/ # define MWPF_TRUECOLOR555 /* pixel is packed 16 bits 5/5/5 truecolor*/ # define MWPF_TRUECOLOR332 /* pixel is packed 8 bits 3/3/2 truecolor*/ # #################################################################### SCREEN_PIXTYPE = MWPF_PALETTE #################################################################### # # 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, # or for speed or debugging. This affects the nano-X server only. # #################################################################### LINK_APP_INTO_SERVER = Y #################################################################### # Shared memory support for Nano-X client/server protocol speedup #################################################################### HAVE_SHAREDMEM_SUPPORT = N #################################################################### # # File I/O support # Supporting either below drags in libc stdio, which may not be wanted # #################################################################### HAVE_FILEIO = Y #################################################################### # BMP, GIF reading support #################################################################### HAVE_BMP_SUPPORT = Y HAVE_GIF_SUPPORT = Y HAVE_PNM_SUPPORT = Y HAVE_XPM_SUPPORT = Y #################################################################### # JPEG support through libjpeg, see README.txt in contrib/jpeg #################################################################### HAVE_JPEG_SUPPORT = N INCJPEG = . LIBJPEG = /usr/lib/libjpeg.a #################################################################### # PNG support via libpng and libz #################################################################### HAVE_PNG_SUPPORT = N INCPNG = /usr/include LIBPNG = /usr/lib/libpng.a LIBZ = /usr/lib/libz.a #################################################################### # TIFF support through libtiff #################################################################### HAVE_TIFF_SUPPORT = N INCTIFF = /usr/include LIBTIFF = /usr/lib/libtiff.a #################################################################### # native .fnt loadable font support #################################################################### HAVE_FNT_SUPPORT = N HAVE_FNTGZ_SUPPORT = N FNT_FONT_DIR = "fonts/bdf" #################################################################### # T1 adobe type1 font support thru t1lib #################################################################### HAVE_T1LIB_SUPPORT = N INCT1LIB = /usr/include LIBT1LIB = /usr/lib/libt1.a #################################################################### # TrueType font support thru FreeType 1.x #################################################################### HAVE_FREETYPE_SUPPORT = N INCFTLIB = /usr/include LIBFTLIB = /usr/lib/libttf.so FREETYPE_FONT_DIR = "fonts/truetype" #################################################################### # Support for many kinds of font thru FreeType 2.x # Must also set FREETYPE_FONT_DIR in the Freetype 1.x section #################################################################### HAVE_FREETYPE_2_SUPPORT = N INCFT2LIB = /usr/include LIBFT2LIB = /usr/lib/libfreetype.a #################################################################### # Chinese Han Zi Ku loadable font support #################################################################### HAVE_HZK_SUPPORT = N HZK_FONT_DIR = "fonts/chinese" #################################################################### # Chinese GB2312 compiled in font support (gb2312font.c) #################################################################### HAVE_GB2312_SUPPORT = N #################################################################### # # Window move algorithms for Microwindows # Change for tradeoff between cpu speed and looks # ERASEMOVE repaints only backgrounds while window dragging, quicker. # Otherwise an XOR redraw is used for window moves only after button up, # quickest (should set for ELKS) # UPDATEREGIONS paints in update clipping region only for better look and feel # #################################################################### ERASEMOVE = Y UPDATEREGIONS = Y #################################################################### # # Link with Gray Palette (valid only for 4bpp modes) # #################################################################### GRAYPALETTE = N #################################################################### # # If the platform is running UNIX, Linux or RTEMS... # #################################################################### ifneq ($(ARCH), ELKS) # X Window screen, mouse and kbd drivers X11 = N ifeq ($(X11), Y) # startup screen width, height, (depth for palette mode only) SCREEN_WIDTH = 640 SCREEN_HEIGHT = 480 SCREEN_DEPTH = 4 # You may want to turn this on for XFree86 4.x or if your backing store # isn't functioning properly USE_EXPOSURE = Y else # framebuffer screen driver (linear and/or vga 4 planes) # set VTSWITCH to include virtual terminal switch code # set FBREVERSE to reverse bit orders in 1,2,4 bpp # set FBVGA=N for all systems without VGA hardware (for MIPS must=N) FRAMEBUFFER = Y FBVGA = Y VTSWITCH = N FBREVERSE = N # set HAVETEXTMODE=Y for systems that can switch between text & graphics. # On a graphics-only embedded system, such as Osprey and Embedded # Planet boards, set HAVETEXTMODE=N HAVETEXTMODE = Y # svgalib screen driver VGALIB = N # direct VGA hardware access screen driver HWVGA = N #################################################################### # Mouse drivers #################################################################### GPMMOUSE = N SERMOUSE = N SUNMOUSE = N NOMOUSE = N IPAQMOUSE = N ZAURUSMOUSE = N TUXMOUSE = N ADSMOUSE = N ADS7846MOUSE = N EPMOUSE = N VHMOUSE = N MTMOUSE = N PSIONMOUSE = N YOPYMOUSE = N HARRIERMOUSE = N # keyboard or null kbd driver TTYKBD = N SCANKBD = N PIPEKBD = N IPAQKBD = N LIRCKBD = N NOKBD = N endif #################################################################### # Screen driver specific configuration # SA1100_LCD_LTLEND 4bpp driver with arm SA1100 LCD controller # INVERT4BPP 4bpp inverted pixel driver for VTech Helio #################################################################### SA1100_LCD_LTLEND = N INVERT4BPP = N #################################################################### # # If the platform is a RTEMS box .... # #################################################################### ifeq ($(ARCH), RTEMS) # Location & BSP information of the RTEMS build RTEMS_BUILD = /opt/rtems-4.6 RTEMS_BSP = pc386 LINK_APP_INTO_SERVER = Y RTEMS_TARGET = i386-rtems endif endif #################################################################### # # If the platform is an ELKS box ... # #################################################################### ifeq ($(ARCH), ELKS) # Higher speed asm driver, c driver of hercules screen driver ASMVGADRIVER = Y CVGADRIVER = N HERCDRIVER = N DBGDRIVER = N # Mouse support SERMOUSE = Y endif