summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt.opengl/motif/gl_library/make_solaris.mak
blob: 1b08b07f47f4f730845daabc83d7698ae1ae0704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#*******************************************************************************
# 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   = /bluebird/teamswt/swt-builddir/ive/bin

# Define the various shared libraries to be made.
SWT_PREFIX   = gl
WS_PREFIX    = motif
SWT_DLL      = lib$(SWT_PREFIX)-$(WS_PREFIX).so
SWT_OBJ      = gl.o glu.o structs.o glx.o
SWT_LIB      = -G -L/usr/lib -lm -lGL -lGLU

#
# 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.
#
CFLAGS = -O -s \
	-xarch=generic \
	-KPIC \
	-I./ \
	-I$(JAVA_HOME)/include

all: make_swt

make_swt: $(SWT_DLL)

$(SWT_DLL): $(SWT_OBJ)
	ld -o $@ $(SWT_OBJ) $(SWT_LIB)

clean:
	rm -f *.so *.o