Compiling Your Application; Compiling Opengl Applications - HP zx2000 Supplementary Manual

Hp zx2000: supplementary guide
Table of Contents

Advertisement

This chapter provides information for compiling your application using the OpenGL application
programming interface (API). Compiling examples are given for C.

compiling OpenGL applications

To compile a program that does not use the OpenGL utilities, use a makefile that looks like this:
INCDIR=-I/opt/graphics/OpenGL/include
LIBDIR32=-L/opt/graphics/OpenGL/lib/hpux32
LIBDIR64=-L/opt/graphics/OpenGL/lib/hpux64
LIBS=-lGL -lXext -lX11 -lm -ldld
prog32: prog.c
cc -Ae $(INCDIR) $(LIBDIR32) -o prog32 prog.c $(LIBS)
prog64: prog.c
cc -Ae +DD64 $(INCDIR) $(LIBDIR64) -o prog64 prog.c
$(LIBS)
To compile a program that does use the OpenGL utilities, use a makefile that looks like this:
INCDIR= -I/opt/graphics/OpenGL/include
LIBDIR32=-L/opt/graphics/OpenGL/lib/hpux32
LIBDIR64=-L/opt/graphics/OpenGL/lib/hpux64
LIBS=-lGLU -lGL -lXext -lX11 -lm -ldld
prog32: prog.c
cc -Ae $(INCDIR) $(LIBDIR32) -o prog32 prog.c $(LIBS)
prog64: prog.c
cc -Ae +DD64 $(INCDIR) $(LIBDIR64) -o prog64 prog.c $(LIBS)
Graphics Administration Guide

compiling your application

3
3–1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zx6000

Table of Contents