1 ####################################################################
2 # Microwindows and Nano-X configuration file
4 # This package can be configured to run on Linux (MIPS, ARM, POWERPC or x86)
5 # UNIX, ELKS, DJGPP, or RTEMS.
6 # On Linux, we've got drivers for Linux 2.x framebuffers, X11, or,
7 # svgalib for VGA hardware.
8 # In addition, a gpm or direct serial mouse driver can be configured.
9 # On ELKS, the bios screen driver and serial mouse driver are always used.
11 # Either Microwindows and/or Nano-X can be built.
12 # Microwindows and Nano-X have several demos.
14 # For MSDOS makes, see mcmwin.mak and mcnanox.mak
15 ####################################################################
17 ####################################################################
19 # build target platform
21 # Valid ARCH values are:
34 # note: ELKS can't build client/server nano-X, nor widget lib
36 ####################################################################
39 #ARMTOOLSPREFIX = arm-linux-gnu-
40 ARMTOOLSPREFIX = arm-elf-
41 MIPSTOOLSPREFIX = mipsel-linux-
42 POWERPCTOOLSPREFIX = powerpc-linux-
43 SHTOOLSPREFIX = sh-linux-gnu
44 RTEMSTOOLSPREFIX = i386-rtemself-
46 ####################################################################
50 ####################################################################
55 ####################################################################
57 # Libraries to build: microwin, nano-X, nanowidget, object frameworks
59 ####################################################################
66 ####################################################################
70 ####################################################################
74 ####################################################################
76 # Applications to build
78 ####################################################################
81 ####################################################################
83 # The pixeltype of the native hardware or underlying graphics library.
84 # This definition defines the PIXELVAL to be 32, 16 or 8 bits wide.
85 # If using Linux framebuffer, set to MWPF_TRUECOLOR0888, and use fbset.
86 # It also enables GdArea/GrArea for this particular pixel packing format.
88 # define MWPF_PALETTE /* pixel is packed 8 bits 1, 4 or 8 pal index*/
89 # define MWPF_TRUECOLOR0888 /* pixel is packed 32 bits 8/8/8 truecolor*/
90 # define MWPF_TRUECOLOR888 /* pixel is packed 24 bits 8/8/8 truecolor*/
91 # define MWPF_TRUECOLOR565 /* pixel is packed 16 bits 5/6/5 truecolor*/
92 # define MWPF_TRUECOLOR555 /* pixel is packed 16 bits 5/5/5 truecolor*/
93 # define MWPF_TRUECOLOR332 /* pixel is packed 8 bits 3/3/2 truecolor*/
95 ####################################################################
96 #SCREEN_PIXTYPE = MWPF_TRUECOLOR565
97 SCREEN_PIXTYPE = MWPF_TRUECOLOR555
99 ####################################################################
101 # NanoX: Put Y to the following line to link the nano-X application
102 # with the server. This is required for ELKS, if no network is present,
103 # or for speed or debugging. This affects the nano-X server only.
105 ####################################################################
106 LINK_APP_INTO_SERVER = N
108 ####################################################################
111 # Supporting either below drags in libc stdio, which may not be wanted
113 ####################################################################
116 ####################################################################
117 # BMP, GIF reading support
118 ####################################################################
124 ####################################################################
125 # JPEG support through libjpeg, see README.txt in contrib/jpeg
126 ####################################################################
127 HAVE_JPEG_SUPPORT = Y
128 INCJPEG = ${MW_BASE}/src/jpeg-6b
129 LIBJPEG = ${INCJPEG}/libjpeg.a
131 ####################################################################
132 # PNG support via libpng and libz
133 ####################################################################
136 LIBPNG = /usr/lib/libpng.a
137 LIBZ = /usr/lib/libz.a
139 ####################################################################
140 # T1 adobe type1 font support thru t1lib
141 ####################################################################
142 HAVE_T1LIB_SUPPORT = N
143 INCT1LIB = /usr/include
144 LIBT1LIB = /usr/lib/libt1.a
146 ####################################################################
147 # TrueType font support thru FreeType
148 ####################################################################
149 HAVE_FREETYPE_SUPPORT = N
150 INCFTLIB = /usr/include
151 LIBFTLIB = /usr/lib/libttf.so
152 FREETYPE_FONT_DIR = "/usr/local/microwin/fonts"
154 ####################################################################
155 # Shared memory support for Nano-X client/server protocol speedup
156 ####################################################################
157 HAVE_SHAREDMEM_SUPPORT = N
159 ####################################################################
160 # Chinese Han Zi Ku font support
161 ####################################################################
163 HZK_FONT_DIR = "fonts/chinese"
165 ####################################################################
166 # Chinese BIG5 compiled in font support (big5font.c)
167 ####################################################################
168 HAVE_BIG5_SUPPORT = N
170 ####################################################################
171 # Chinese GB2312 compiled in font support (gb2312font.c)
172 ####################################################################
173 HAVE_GB2312_SUPPORT = N
175 ####################################################################
176 # Generate screen driver interface only with no fonts or clipping
177 ####################################################################
178 NOFONTSORCLIPPING = N
180 ####################################################################
182 # Window move algorithms for Microwindows
183 # Change for tradeoff between cpu speed and looks
184 # ERASEMOVE repaints only backgrounds while window dragging, quicker.
185 # Otherwise an XOR redraw is used for window moves only after button up,
186 # quickest (should set for ELKS)
187 # UPDATEREGIONS paints in update clipping region only for better look and feel
189 ####################################################################
193 ####################################################################
195 # Use MS fonts (default no)
197 ####################################################################
200 ####################################################################
202 # Link with Gray Palette (valid only for 4bpp modes)
204 ####################################################################
207 ####################################################################
209 # If the platform is running UNIX, Linux or RTEMS...
211 ####################################################################
212 ifneq ($(ARCH), ELKS)
214 # X Window screen, mouse and kbd drivers
218 # predefined model or select screen width, height, depth(palette mode only)
224 # You may want to turn this on for XFree86 4.x or if your backing store
225 # isn't functioning properly
230 # framebuffer screen driver (linear and/or vga 4 planes)
231 # set VTSWITCH to include virtual terminal switch code
232 # set PORTRAIT_MODE to L or R for left or right orientation
233 # set FBREVERSE to reverse bit orders in 1,2,4 bpp
234 # set FBVGA=N for all systems without VGA hardware (for MIPS must=N)
242 # svgalib screen driver
245 # direct VGA hardware access screen driver
248 ####################################################################
249 # Mouse or touch screen driver
250 # TPMOUSE for Linux-VR and Embedded Planet
251 # TPHELIO for VTech Helio
252 # ADSMOUSE for ADS Graphics Client
253 # IPAQMOUSE for Compaq iPAQ,Intel Assabet, ARM ucb1200 (/dev/h3600_ts 11,0)
254 # HARRIERMOUSE for NEC Harrier
255 # PSIONMOUSE for the Psion 5
256 ####################################################################
267 # keyboard or null kbd driver
276 ####################################################################
277 # Screen driver specific configuration
278 # SA1100_LCD_LTLEND 4bpp driver with arm SA1100 LCD controller
279 # INVERT4BPP 4bpp inverted pixel driver for VTech Helio
280 ####################################################################
281 SA1100_LCD_LTLEND = N
284 ####################################################################
286 # If the platform is a RTEMS box ....
288 ####################################################################
289 ifeq ($(ARCH), RTEMS)
291 # Location & BSP information of the RTEMS build
292 RTEMS_BUILD = /tools/build-i386-elf-rtems
294 LINK_APP_INTO_SERVER = Y
300 ####################################################################
302 # If the platform is an ELKS box ...
304 ####################################################################
307 # Higher speed asm driver, c driver of hercules screen driver