home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / make-3.70-src.lha / src / build / make-3.70 / build.sh next >
Text File  |  1994-02-21  |  2KB  |  69 lines

  1. # Generated automatically from build.sh.in by configure.
  2. #!/bin/sh
  3.  
  4. # Shell script to build GNU Make in the absence of any `make' program.
  5.  
  6. # Copyright (C) 1993 Free Software Foundation, Inc.
  7. # This file is part of GNU Make.
  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. # You should have received a copy of the GNU General Public License
  18. # along with GNU Make; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # See Makefile.in for comments describing these variables.
  22.  
  23. srcdir='/ISO/make/make-3.70-amiga'
  24. CC='gcc'
  25. CFLAGS='-O2'
  26. LDFLAGS=''
  27. defines='-DHAVE_CONFIG_H -DLIBDIR="${libdir}" -DINCLUDEDIR="${includedir}"'
  28. ALLOCA=''
  29. LOADLIBES=''
  30. extras=' getloadavg.o'
  31. REMOTE='stub'
  32.  
  33. # Common prefix for machine-independent installed files.
  34. prefix=/usr/local
  35. # Common prefix for machine-dependent installed files.
  36. exec_prefix=/usr/local
  37. # Directory to find libraries in for `-lXXX'.
  38. libdir=${exec_prefix}/lib
  39. # Directory to search by default for included makefiles.
  40. includedir=${prefix}/include
  41.  
  42. # Exit as soon as any command fails.
  43. set -e
  44.  
  45. # These are all the objects we need to link together.
  46. objs="commands.o job.o dir.o file.o misc.o main.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 glob/glob.o glob/fnmatch.o remote-${REMOTE}.o ${extras} ${ALLOCA}"
  47.  
  48. # Compile the source files into those objects.
  49. for file in `echo ${objs} | sed 's/\.o/.c/g'`; do
  50.   echo compiling ${file}...
  51.   $CC $CFLAGS $defines -c -I. -I${srcdir} -I${srcdir}/glob ${srcdir}/$file
  52. done
  53.  
  54. # The object files were actually all put in the current directory.
  55. # Remove the source directory names from the list.
  56. srcobjs="$objs"
  57. objs=
  58. for obj in $srcobjs; do
  59.   objs="$objs `basename $obj`"
  60. done
  61.  
  62. # Link all the objects together.
  63. echo linking make...
  64. $CC $LDFLAGS $objs $LOADLIBES -o make.new
  65. echo done
  66. mv -f make.new make
  67.