Home | History | Annotate | Download | only in docs
      1 
      2 Mesa 3.0 for LynxOS builds in the following way:
      3 
      4 make lynxos
      5 
      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 
      8 static
      9 libraries.
     10 
     11 Before using this make file however, you should perform the following 
     12 actions:
     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 
     17 libraries
     18 in /lib. This is important for compatibility with other OpenGL apps. This
     19 is done as follows:
     20 
     21 cd /lib
     22 ln -s libMesaGL.a libGL.a
     23 ln -s libMesaGLU.a libGLU.a
     24 
     25 Mesa 3.0 includes the GLUT (GL Utility Toolkit) by default.
     26 The demo applications are done using this toolkit.
     27 
     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.
     33 
     34 ----cut here for Makefile -----
     35 
     36 FILES = your_app.x
     37 
     38 SPECIAL_INCLUDES = -I/usr/include/GL
     39 
     40 SPECIAL_CFLAGS = -g  -ansi -pedantic -funroll-loops -ffast-math -DSHM
     41 
     42 SPECIAL_LIBS = -lglut -lGLU -lGL -lm -L/usr/X11/lib -lXext -lXmu -lXi \
     43 -lX11 -lbsd -g
     44 
     45 STANDARD_OFILES = $(FILES:.x=.o)
     46 
     47 %.o: %.c
     48 	gcc -c $(SPECIAL_CFLAGS) $(SPECIAL_INCLUDES) $< -o $@
     49 
     50 all: $(STANDARD_OFILES)
     51 	gcc -o your_app $(STANDARD_OFILES) $(SPECIAL_LIBS)
     52 
     53 
     54 ----cut here for Makefile-----
     55 
     56 I have tested Mesa under LynxOS 3.0 and 3.01. It should build fine under 
     57 other
     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.
     60 
     61 
     62 Vik Sohal
     63 vik (a] lynx.com
     64 January 13, 1999
     65