2 Mesa 3.0 for LynxOS builds in the following way:
6 This will build all the libraries and demo applications. You should have
7 around 400 megabytes free for everything since everything is done with
11 Before using this make file however, you should perform the following
13 0) cd to the Mesa-3.0 directory
14 1) Copy the GL directory under the include directory to /usr/include.
15 2) Copy the files in the lib directory to /lib.
16 3) Make links so that the Mesa libraries look like ordinary OpenGL
18 in /lib. This is important for compatibility with other OpenGL apps. This
22 ln -s libMesaGL.a libGL.a
23 ln -s libMesaGLU.a libGLU.a
25 Mesa 3.0 includes the GLUT (GL Utility Toolkit) by default.
26 The demo applications are done using this toolkit.
28 Mesa makefiles for building their apps could be used as well, but the
29 following one is much more concise. Note that the order of the X libraries
30 is important to the linker so that all symbols get resolved correctly.
31 Changing the order may result in having to list a library twice to make
32 sure all linkages are made correctly.
34 ----cut here for Makefile -----
38 SPECIAL_INCLUDES = -I/usr/include/GL
40 SPECIAL_CFLAGS = -g -ansi -pedantic -funroll-loops -ffast-math -DSHM
42 SPECIAL_LIBS = -lglut -lGLU -lGL -lm -L/usr/X11/lib -lXext -lXmu -lXi \
45 STANDARD_OFILES = $(FILES:.x=.o)
48 gcc -c $(SPECIAL_CFLAGS) $(SPECIAL_INCLUDES) $< -o $@
50 all: $(STANDARD_OFILES)
51 gcc -o your_app $(STANDARD_OFILES) $(SPECIAL_LIBS)
54 ----cut here for Makefile-----
56 I have tested Mesa under LynxOS 3.0 and 3.01. It should build fine under
58 versions as well. Note, however, that LynxOS versions prior to 3.0 are not
59 binary compatible, so you will have to rebuild from source.