blob: e3ab9804bd515f7f8db9cfe36ff43d577fb3a2e8 [file] [log] [blame]
Brian Paul72f680e1999-01-14 03:12:22 +00001
Brian Paulbc547e11999-01-14 03:13:11 +00002Mesa 3.0 for LynxOS builds in the following way:
Brian Paul72f680e1999-01-14 03:12:22 +00003
Brian Paulbc547e11999-01-14 03:13:11 +00004make lynxos
Brian Paul72f680e1999-01-14 03:12:22 +00005
Brian Paulbc547e11999-01-14 03:13:11 +00006This will build all the libraries and demo applications. You should have
7around 400 megabytes free for everything since everything is done with
8static
9libraries.
Brian Paul72f680e1999-01-14 03:12:22 +000010
Brian Paulbc547e11999-01-14 03:13:11 +000011Before using this make file however, you should perform the following
12actions:
130) cd to the Mesa-3.0 directory
141) Copy the GL directory under the include directory to /usr/include.
152) Copy the files in the lib directory to /lib.
163) Make links so that the Mesa libraries look like ordinary OpenGL
17libraries
18in /lib. This is important for compatibility with other OpenGL apps. This
19is done as follows:
20
21cd /lib
22ln -s libMesaGL.a libGL.a
23ln -s libMesaGLU.a libGLU.a
24
25Mesa 3.0 includes the GLUT (GL Utility Toolkit) by default.
26The demo applications are done using this toolkit.
27
28Mesa makefiles for building their apps could be used as well, but the
29following one is much more concise. Note that the order of the X libraries
30is important to the linker so that all symbols get resolved correctly.
31Changing the order may result in having to list a library twice to make
32sure all linkages are made correctly.
33
34----cut here for Makefile -----
35
36FILES = your_app.x
37
38SPECIAL_INCLUDES = -I/usr/include/GL
39
40SPECIAL_CFLAGS = -g -ansi -pedantic -funroll-loops -ffast-math -DSHM
41
42SPECIAL_LIBS = -lglut -lGLU -lGL -lm -L/usr/X11/lib -lXext -lXmu -lXi \
43-lX11 -lbsd -g
44
45STANDARD_OFILES = $(FILES:.x=.o)
46
47%.o: %.c
48 gcc -c $(SPECIAL_CFLAGS) $(SPECIAL_INCLUDES) $< -o $@
49
50all: $(STANDARD_OFILES)
51 gcc -o your_app $(STANDARD_OFILES) $(SPECIAL_LIBS)
52
53
54----cut here for Makefile-----
55
56I have tested Mesa under LynxOS 3.0 and 3.01. It should build fine under
57other
58versions as well. Note, however, that LynxOS versions prior to 3.0 are not
59binary compatible, so you will have to rebuild from source.
60
Brian Paul72f680e1999-01-14 03:12:22 +000061
62Vik Sohal
63vik@lynx.com
Brian Paulbc547e11999-01-14 03:13:11 +000064January 13, 1999