#******************************************************************************* | |
# Copyright (c) 2000, 2003 IBM Corporation and others. | |
# All rights reserved. This program and the accompanying materials | |
# are made available under the terms of the Common Public License v1.0 | |
# which accompanies this distribution, and is available at | |
# http://www.eclipse.org/legal/cpl-v10.html | |
# | |
# Contributors: | |
# IBM Corporation - initial API and implementation | |
#******************************************************************************* | |
# Define the installation directories for various products. | |
JAVA_HOME = /opt/java1.3 | |
# Define the various shared libraries to be made. | |
SWT_PREFIX = gl | |
WS_PREFIX = motif | |
SWT_DLL = lib$(SWT_PREFIX)-$(WS_PREFIX).sl | |
SWT_OBJ = gl.o glu.o structs.o glx.o | |
SWT_LIB = -L/usr/lib -L/opt/graphics/OpenGL/lib -G -lGL -lGLU -lc -ldld -lm | |
# | |
# The following CFLAGS are for compiling the SWT OpenGL library. | |
# | |
# Note: | |
# The flag -xarch=generic ensure the compiled modules will be targeted | |
# for 32-bit architectures. If this flag is not | |
# | |
CFLAGS = -Ae +z \ | |
-DNO_XINERAMA_EXTENSIONS \ | |
-D_HPUX -D_POSIX_C_SOURCE=199506L \ | |
-I./ \ | |
-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/hp-ux \ | |
-I/opt/graphics/OpenGL/include | |
all: make_swt | |
make_swt: $(SWT_DLL) | |
$(SWT_DLL): $(SWT_OBJ) | |
ld -b -z -o $@ $(SWT_OBJ) $(SWT_LIB) | |
clean: | |
rm -f *.sl *.o |