~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/3rdparty/qmake/build.sh.in

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Shell script to build GNU Make in the absence of any `make' program.
 
3
# @configure_input@
 
4
 
 
5
# Copyright (C) 1993, 1994, 1997 Free Software Foundation, Inc.
 
6
# This file is part of GNU Make.
 
7
#
 
8
# GNU Make is free software; you can redistribute it and/or modify
 
9
# it under the terms of the GNU General Public License as published by
 
10
# the Free Software Foundation; either version 2, or (at your option)
 
11
# any later version.
 
12
#
 
13
# GNU Make is distributed in the hope that it will be useful,
 
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
# GNU General Public License for more details.
 
17
#
 
18
# You should have received a copy of the GNU General Public License
 
19
# along with GNU Make; see the file COPYING.  If not, write to
 
20
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
21
# Boston, MA 02111-1307, USA.
 
22
 
 
23
# See Makefile.in for comments describing these variables.
 
24
 
 
25
srcdir='@srcdir@'
 
26
CC='@CC@'
 
27
CFLAGS='@CFLAGS@'
 
28
CPPFLAGS='@CPPFLAGS@'
 
29
LDFLAGS='@LDFLAGS@'
 
30
defines='@DEFS@ -DLIBDIR="${libdir}" -DINCLUDEDIR="${includedir}"'
 
31
ALLOCA='@ALLOCA@'
 
32
LOADLIBES='@LIBS@'
 
33
extras='@LIBOBJS@'
 
34
REMOTE='@REMOTE@'
 
35
GLOBLIB='@GLOBLIB@'
 
36
 
 
37
# Common prefix for machine-independent installed files.
 
38
prefix='@prefix@'
 
39
# Common prefix for machine-dependent installed files.
 
40
exec_prefix='@exec_prefix@'
 
41
# Directory to find libraries in for `-lXXX'.
 
42
libdir=${exec_prefix}/lib
 
43
# Directory to search by default for included makefiles.
 
44
includedir=${prefix}/include
 
45
 
 
46
# Exit as soon as any command fails.
 
47
set -e
 
48
 
 
49
# These are all the objects we need to link together.
 
50
objs="main.o commands.o job.o dir.o file.o misc.o read.o remake.o rule.o implicit.o default.o variable.o expand.o function.o vpath.o version.o ar.o arscan.o signame.o getopt.o getopt1.o remote-${REMOTE}.o ${extras} ${ALLOCA}"
 
51
 
 
52
if [ x"$GLOBLIB" != x ]; then
 
53
  objs="$objs glob/fnmatch.o glob/glob.o"
 
54
fi
 
55
 
 
56
# Compile the source files into those objects.
 
57
for file in `echo ${objs} | sed 's/\.o/.c/g'`; do
 
58
  echo compiling ${file}...
 
59
  $CC $defines $CPPFLAGS $CFLAGS \
 
60
      -c -I. -I${srcdir} ${srcdir}/$file
 
61
done
 
62
 
 
63
# The object files were actually all put in the current directory.
 
64
# Remove the source directory names from the list.
 
65
srcobjs="$objs"
 
66
objs=
 
67
for obj in $srcobjs; do
 
68
  objs="$objs `basename $obj`"
 
69
done
 
70
 
 
71
# Link all the objects together.
 
72
echo linking make...
 
73
$CC $LDFLAGS $objs $LOADLIBES -o make.new
 
74
echo done
 
75
mv -f make.new make