home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / make-3.70-src.lha / src / amiga / make-3.70 / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-02-21  |  10.2 KB  |  300 lines

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