Skip to main content
summaryrefslogtreecommitdiffstats
blob: afec19dd74e2108f775e70598f0f16224cc2335b (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
#*******************************************************************************
# Copyright (c) 2000, 2005 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at 
# http://www.eclipse.org/legal/epl-v10.html
# 
# Contributors:
#     IBM Corporation - initial API and implementation
#     Kevin Cornell (Rational Software Corporation)
#     Tom Tromey (Red Hat, Inc.)
#     Sridhar Bidigalu (ICS)
#*******************************************************************************

cd `dirname $0`

# Determine the operating system being built
makefile=""
OS=`uname -s`
MODEL=`uname -m`

case $OS in
	"AIX")
		JAVA_HOME=/bluebird/teamswt/swt-builddir/aixj9
		MOTIF_HOME=/usr
		CDE_HOME=/usr/dt
		makefile="make_aix.mak"
		echo "Building AIX version of SWT"
		;;
	"Linux")
		JAVA_HOME=/bluebird/teamswt/swt-builddir/IBMJava2-141
		MOTIF_HOME=/bluebird/teamswt/swt-builddir/motif21
		QT_HOME=$QTDIR
		makefile="make_linux.mak"
		echo "Building Linux version of SWT"
		;;
	"SunOS")
		JAVA_HOME=/usr/java
		MOTIF_HOME=/usr/dt
		CDE_HOME=/usr/dt
		PATH=/opt/SUNWspro/bin:$PATH
		export PATH		
		makefile="make_solaris.mak"
		echo "Building Solaris version of SWT"
		;;
	"HP-UX")
		JAVA_HOME=/opt/jdk14101
		MOTIF_HOME=/usr
		CDE_HOME=/usr/dt
		case $MODEL in
			"ia64")
				makefile="make_hpux_ia64.mak"
				echo "Building HPUX ia64 version of SWT"
				;;
			*)
				makefile="make_hpux_PA_RISC.mak"
				echo "Building HPUX risc version of SWT"
				;;
		esac
		;;

	*)
		echo "Unknown OS -- build aborted"
		;;
esac

export JAVA_HOME MOTIF_HOME CDE_HOME QT_HOME

make -f $makefile $1 $2 $3 $4

Back to the top