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 / Makefile < prev   
Makefile  |  1994-02-21  |  10KB  |  301 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # NOTE: If you have no `make' program at all to process this makefile, run
  3. # `build.sh' instead.
  4. #
  5. # Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  6. # This file is part of GNU Make.
  7. # GNU Make is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. #
  12. # GNU Make is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. # You should have received a copy of the GNU General Public License
  17. # along with GNU Make; see the file COPYING.  If not, write to
  18. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. #
  21. #    Makefile for GNU Make
  22. #
  23.  
  24. # Ultrix 2.2 make doesn't expand the value of VPATH.
  25. VPATH = /ISO/make/make-3.70-amiga
  26. srcdir = $(VPATH)
  27.  
  28. CC = gcc
  29.  
  30. CFLAGS = -O2
  31. LDFLAGS = 
  32.  
  33. # How to invoke ranlib.  This is only used by the `glob' subdirectory.
  34. RANLIB = ranlib
  35.  
  36. # Define these for your system as follows:
  37. #    -DNO_ARCHIVES        To disable `ar' archive support.
  38. #    -DNO_FLOAT        To avoid using floating-point numbers.
  39. #    -DENUM_BITFIELDS    If the compiler isn't GCC but groks enum foo:2.
  40. #                Some compilers apparently accept this
  41. #                without complaint but produce losing code,
  42. #                so beware.
  43. # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  44. # See also `config.h'.
  45. defines = -DHAVE_CONFIG_H -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
  46.  
  47. # Which flavor of remote job execution support to use.
  48. # The code is found in `remote-$(REMOTE).c'.
  49. REMOTE = stub
  50.  
  51. # If you are using the GNU C library, or have the GNU getopt functions in
  52. # your C library, you can comment these out.
  53. GETOPT = getopt.o getopt1.o
  54. GETOPT_SRC = $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/getopt.h
  55.  
  56. # If you are using the GNU C library, or have the GNU glob functions in
  57. # your C library, you can comment this out.  GNU make uses special hooks
  58. # into the glob functions to be more efficient (by using make's directory
  59. # cache for globbing), so you must use the GNU functions even if your
  60. # system's C library has the 1003.2 glob functions already.  Also, the glob
  61. # functions in the AIX and HPUX C libraries are said to be buggy.
  62. GLOB = glob/libglob.a
  63.  
  64. # If your system doesn't have alloca, or the one provided is bad, define this.
  65. ALLOCA = 
  66. ALLOCA_SRC = $(srcdir)/alloca.c
  67.  
  68. # If your system needs extra libraries loaded in, define them here.
  69. # System V probably need -lPW for alloca.  HP-UX 7.0's alloca in
  70. # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  71. # alloca.c instead on those machines.
  72. LOADLIBES = 
  73.  
  74. # Any extra object files your system needs.
  75. extras =  getloadavg.o
  76.  
  77. # Common prefix for machine-independent installed files.
  78. prefix = /gnu
  79. # Common prefix for machine-dependent installed files.
  80. exec_prefix = $(prefix)
  81.  
  82. # Name under which to install GNU make.
  83. instname = make
  84. # Directory to install `make' in.
  85. bindir = $(exec_prefix)/bin
  86. # Directory to find libraries in for `-lXXX'.
  87. libdir = $(exec_prefix)/lib
  88. # Directory to search by default for included makefiles.
  89. includedir = $(prefix)/include
  90. # Directory to install the Info files in.
  91. infodir = $(prefix)/info
  92. # Directory to install the man page in.
  93. mandir = $(prefix)/man/man$(manext)
  94. # Number to put on the man page filename.
  95. manext = 1
  96.  
  97. # Whether or not make needs to be installed setgid.
  98. # The value should be either `true' or `false'.
  99. # On many systems, the getloadavg function (used to implement the `-l'
  100. # switch) will not work unless make is installed setgid kmem.
  101. install_setgid = false
  102. # Install make setgid to this group so it can read /dev/kmem.
  103. group = 
  104.  
  105. # Program to install `make'.
  106. INSTALL_PROGRAM = $(INSTALL)
  107. # Program to install the man page.
  108. INSTALL_DATA = $(INSTALL) -m 644
  109. # Generic install program.
  110. INSTALL = /bin/install -c
  111.  
  112. # Program to format Texinfo source into Info files.
  113. MAKEINFO = makeinfo
  114. # Program to format Texinfo source into DVI files.
  115. TEXI2DVI = texi2dvi
  116.  
  117. # Programs to make tags files.
  118. ETAGS = etags -tw
  119. CTAGS = ctags -tw
  120.  
  121. objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o    \
  122.        rule.o implicit.o default.o variable.o expand.o function.o    \
  123.        vpath.o version.o ar.o arscan.o signame.o remote-$(REMOTE).o    \
  124.        $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
  125. srcs = $(srcdir)/commands.c $(srcdir)/job.c $(srcdir)/dir.c        \
  126.        $(srcdir)/file.c $(srcdir)/getloadavg.c $(srcdir)/misc.c        \
  127.        $(srcdir)/main.c $(srcdir)/read.c $(srcdir)/remake.c        \
  128.        $(srcdir)/rule.c $(srcdir)/implicit.c $(srcdir)/default.c    \
  129.        $(srcdir)/variable.c $(srcdir)/expand.c $(srcdir)/function.c    \
  130.        $(srcdir)/vpath.c $(srcdir)/version.c                \
  131.        $(srcdir)/remote-$(REMOTE).c                    \
  132.        $(srcdir)/ar.c $(srcdir)/arscan.c                \
  133.        $(srcdir)/signame.c $(srcdir)/signame.h $(GETOPT_SRC)        \
  134.        $(srcdir)/commands.h $(srcdir)/dep.h $(srcdir)/file.h        \
  135.        $(srcdir)/job.h $(srcdir)/make.h $(srcdir)/rule.h        \
  136.        $(srcdir)/variable.h $(ALLOCA_SRC) $(srcdir)/config.h.in
  137.  
  138.  
  139. .SUFFIXES:
  140. .SUFFIXES: .o .c .h .ps .dvi .info .texinfo
  141.  
  142. all: make
  143. check: # No tests.
  144. info: make.info
  145. dvi: make.dvi
  146. # Some makes apparently use .PHONY as the default goal is it is before `all'.
  147. .PHONY: all check info dvi
  148.  
  149. make.info: make.texinfo
  150.     $(MAKEINFO) -I$(srcdir) $(srcdir)/make.texinfo -o make.info
  151.  
  152. make.dvi: make.texinfo
  153.     $(TEXI2DVI) $(srcdir)/make.texinfo
  154.  
  155. make.ps: make.dvi
  156.     dvi2ps make.dvi > make.ps
  157.  
  158. make: $(objs)
  159.     $(CC) $(LDFLAGS) $(objs) $(LOADLIBES) -o make.new
  160.     mv -f make.new make
  161.  
  162. # -I. is needed to find config.h in the build directory.
  163. .c.o:
  164.     $(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob \
  165.           $(CFLAGS) $< $(OUTPUT_OPTION)
  166.  
  167. # For some losing Unix makes.
  168. SHELL = /bin/sh
  169. MAKE = make
  170.  
  171. glob/libglob.a: FORCE config.h
  172.     cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
  173.              CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
  174.              RANLIB='$(RANLIB)' \
  175.              libglob.a
  176. FORCE:
  177.  
  178. tagsrcs = $(srcs) $(srcdir)/remote-*.c
  179. TAGS: $(tagsrcs)
  180.     $(ETAGS) $(tagsrcs)
  181. tags: $(tagsrcs)
  182.     $(CTAGS) $(tagsrcs)
  183.  
  184. .PHONY: install installdirs
  185. install: installdirs \
  186.      $(bindir)/$(instname) $(infodir)/make.info \
  187.      $(mandir)/$(instname).$(manext)
  188.  
  189. installdirs:
  190.     $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(mandir)
  191.  
  192. $(bindir)/$(instname): make
  193.     $(INSTALL_PROGRAM) make $@.new
  194.     @if $(install_setgid); then \
  195.        if chgrp $(group) $@.new && chmod g+s $@.new; then \
  196.          echo "chgrp $(group) $@.new && chmod g+s $@.new"; \
  197.        else \
  198.          echo "$@ needs to be owned by group $(group) and setgid;"; \
  199.          echo "otherwise the \`-l' option will probably not work."; \
  200.          echo "You may need special priveleges to install $@."; \
  201.        fi; \
  202.      else true; fi
  203. # Some systems can't deal with renaming onto a running binary.
  204.     -rm -f $@.old
  205.     -mv $@ $@.old
  206.     mv $@.new $@
  207.  
  208. $(infodir)/make.info: make.info
  209.     if [ -r ./make.info ]; then dir=.; else dir=$(srcdir); fi; \
  210.     for file in $${dir}/make.info*; do \
  211.       name="`basename $$file`"; \
  212.       $(INSTALL_DATA) $$file \
  213.         `echo $@ | sed "s,make.info\$$,$$name,"`; \
  214.     done
  215. # Run install-info only if it exists.
  216. # Use `if' instead of just prepending `-' to the
  217. # line so we notice real errors from install-info.
  218. # We use `$(SHELL) -c' because some shells do not
  219. # fail gracefully when there is an unknown command.
  220.     if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
  221.       install-info --infodir=$(infodir) $$dir/make.info; \
  222.     else true; fi
  223.  
  224. $(mandir)/$(instname).$(manext): make.man
  225.     $(INSTALL_DATA) $(srcdir)/make.man $@
  226.  
  227.  
  228. loadavg: getloadavg.c config.h
  229.     $(CC) $(defines) -DTEST -I. -I$(srcdir) $(CFLAGS) $(LDFLAGS) \
  230.           $(srcdir)/getloadavg.c $(LOADLIBES) -o $@
  231. check-loadavg: loadavg
  232.     @echo The system uptime program believes the load average to be:
  233.     -uptime
  234.     @echo The GNU load average checking code believes:
  235.     ./loadavg
  236. check: check-loadavg
  237.  
  238.  
  239. .PHONY: clean realclean distclean mostlyclean
  240. clean: glob-clean
  241.     -rm -f make loadavg *.o core make.info* make.dvi
  242. distclean: clean glob-realclean
  243.     -rm -f Makefile config.h config.status build.sh stamp-config
  244.     -rm -f TAGS tags
  245.     -rm -f make.?? make.??s make.log make.toc make.*aux
  246. realclean: distclean
  247. mostlyclean: clean
  248.  
  249. .PHONY: glob-clean glob-realclean
  250. glob-clean glob-realclean:
  251.     cd glob; $(MAKE) $@
  252.  
  253. Makefile: config.status $(srcdir)/Makefile.in
  254.     $(SHELL) config.status
  255. config.h: stamp-config ;
  256. stamp-config: config.status $(srcdir)/config.h.in
  257.     $(SHELL) config.status
  258.     touch stamp-config
  259.  
  260. configure: configure.in
  261.     autoconf $(ACFLAGS)
  262. config.h.in: configure.in
  263.     autoheader $(ACFLAGS)
  264.  
  265. # This tells versions [3.59,3.63) of GNU make not to export all variables.
  266. .NOEXPORT:
  267.  
  268. # The automatically generated dependencies below may omit config.h
  269. # because it is included with ``#include <config.h>'' rather than
  270. # ``#include "config.h"''.  So we add the explicit dependency to make sure.
  271. $(objs): config.h
  272.  
  273. # Automatically generated dependencies will be put at the end of the file.
  274.  
  275. # Automatically generated dependencies.
  276. commands.o : commands.c make.h config.h dep.h commands.h file.h variable.h job.h 
  277. job.o : job.c make.h config.h commands.h job.h file.h variable.h 
  278. dir.o : dir.c make.h config.h 
  279. file.o : file.c make.h config.h commands.h dep.h file.h variable.h 
  280. misc.o : misc.c make.h config.h dep.h 
  281. main.o : main.c make.h config.h commands.h dep.h file.h variable.h job.h getopt.h 
  282. read.o : read.c make.h config.h commands.h dep.h file.h variable.h glob/glob.h 
  283. remake.o : remake.c make.h config.h commands.h job.h dep.h file.h 
  284. rule.o : rule.c make.h config.h commands.h dep.h file.h variable.h rule.h 
  285. implicit.o : implicit.c make.h config.h rule.h dep.h file.h 
  286. default.o : default.c make.h config.h rule.h dep.h file.h commands.h variable.h 
  287. variable.o : variable.c make.h config.h commands.h variable.h dep.h file.h 
  288. expand.o : expand.c make.h config.h commands.h file.h variable.h 
  289. function.o : function.c make.h config.h variable.h dep.h commands.h job.h 
  290. vpath.o : vpath.c make.h config.h file.h variable.h 
  291. version.o : version.c 
  292. ar.o : ar.c make.h config.h file.h dep.h 
  293. arscan.o : arscan.c make.h config.h 
  294. signame.o : signame.c config.h signame.h 
  295. remote-stub.o : remote-stub.c make.h config.h commands.h 
  296. getopt.o : getopt.c config.h getopt.h 
  297. getopt1.o : getopt1.c config.h getopt.h 
  298. getloadavg.o : getloadavg.c config.h 
  299.