home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / make-3.69 / makefile < prev    next >
Encoding:
Makefile  |  1993-11-27  |  10.0 KB  |  263 lines

  1. # Makefile generated by "configure.bat"
  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 = .
  26. srcdir = $(VPATH)
  27.  
  28. CC = gcc
  29.  
  30. CFLAGS = -O2 -g -DHAVE_CONFIG_H
  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 =
  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 = 
  76.  
  77. # Common prefix for machine-independent installed files.
  78. prefix = /usr/local
  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 = @NEED_SETGID@
  102. # Install make setgid to this group so it can read /dev/kmem.
  103. group = @KMEM_GROUP@
  104.  
  105. # Program to install `make'.
  106. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  107. # Program to install the man page.
  108. INSTALL_DATA = @INSTALL_DATA@
  109. # Generic install program.
  110. INSTALL = @INSTALL@
  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 rule.o implicit.o default.o variable.o expand.o function.o vpath.o version.o ar.o arscan.o signame.o remote-$(REMOTE).o $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
  122. srcs = $(srcdir)/commands.c $(srcdir)/job.c $(srcdir)/dir.c $(srcdir)/file.c $(srcdir)/getloadavg.c $(srcdir)/misc.c $(srcdir)/main.c $(srcdir)/read.c $(srcdir)/remake.c $(srcdir)/rule.c $(srcdir)/implicit.c $(srcdir)/default.c $(srcdir)/variable.c $(srcdir)/expand.c $(srcdir)/function.c $(srcdir)/vpath.c $(srcdir)/version.c $(srcdir)/remote-$(REMOTE).c $(srcdir)/ar.c $(srcdir)/arscan.c $(srcdir)/signame.c $(srcdir)/signame.h $(GETOPT_SRC) $(srcdir)/commands.h $(srcdir)/dep.h $(srcdir)/file.h $(srcdir)/job.h $(srcdir)/make.h $(srcdir)/rule.h $(srcdir)/variable.h $(ALLOCA_SRC) $(srcdir)/config.h.in
  123.  
  124.  
  125. .SUFFIXES:
  126. .SUFFIXES: .o .c .h .ps .dvi .info .texinfo
  127.  
  128. all: make
  129. check: # No tests.
  130. info: make.info
  131. dvi: make.dvi
  132. # Some makes apparently use .PHONY as the default goal is it is before `all'.
  133. .PHONY: all check info dvi
  134.  
  135. make.info: make.texinfo
  136.     $(MAKEINFO) -I$(srcdir) $(srcdir)/make.texinfo -o make.info
  137.  
  138. make.dvi: make.texinfo
  139.     $(TEXI2DVI) $(srcdir)/make.texinfo
  140.  
  141. make.ps: make.dvi
  142.     dvi2ps make.dvi > make.ps
  143.  
  144. make: $(objs)
  145.     $(CC) $(LDFLAGS) $(objs) $(LOADLIBES) -o make.new
  146.  
  147. # -I. is needed to find config.h in the build directory.
  148. .c.o:
  149.     $(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob $(CFLAGS) $< $(OUTPUT_OPTION)
  150.  
  151. # For some losing Unix makes.
  152. SHELL = /bin/sh
  153. MAKE = make
  154.  
  155. glob/libglob.a: FORCE config.h
  156.     $(MAKE) -C glob CC='$(CC)' CFLAGS='$(CFLAGS) -I..' CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' RANLIB='$(RANLIB)' libglob.a
  157. FORCE:
  158.  
  159. tagsrcs = $(srcs) $(srcdir)/remote-*.c
  160. TAGS: $(tagsrcs)
  161.     $(ETAGS) $(tagsrcs)
  162. tags: $(tagsrcs)
  163.     $(CTAGS) $(tagsrcs)
  164.  
  165. .PHONY: install installdirs
  166. install: installdirs $(bindir)/$(instname) $(infodir)/make.info $(mandir)/$(instname).$(manext)
  167.  
  168. installdirs:
  169.     $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(mandir)
  170.  
  171. $(bindir)/$(instname): make
  172.     $(INSTALL_PROGRAM) make $@.new
  173.     @if $(install_setgid); then if chgrp $(group) $@.new && chmod g+s $@.new; then echo "chgrp $(group) $@.new && chmod g+s $@.new"; else echo "$@ needs to be owned by group $(group) and setgid;"; echo "otherwise the \`-l' option will probably not work."; echo "You may need special priveleges to install $@."; fi; else true; fi
  174. # Some systems can't deal with renaming onto a running binary.
  175.     -rm -f $@.old
  176.     -mv $@ $@.old
  177.     mv $@.new $@
  178.  
  179. $(infodir)/make.info: make.info
  180.     if [ -r ./make.info ]; then dir=.; else dir=$(srcdir); fi; for file in $${dir}/make.info*; do name="`basename $$file`"; $(INSTALL_DATA) $$file `echo $@ | sed "s,make.info\$$,$$name,"`; done
  181. # Run install-info only if it exists.
  182. # Use `if' instead of just prepending `-' to the
  183. # line so we notice real errors from install-info.
  184. # We use `$(SHELL) -c' because some shells do not
  185. # fail gracefully when there is an unknown command.
  186.     if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then install-info --infodir=$(infodir) $$d/foo.info; else true; fi
  187.  
  188. $(mandir)/$(instname).$(manext): make.man
  189.     $(INSTALL_DATA) $(srcdir)/make.man $@
  190.  
  191.  
  192. loadavg: getloadavg.c config.h
  193.     $(CC) $(defines) -DTEST -I. -I$(srcdir) $(CFLAGS) $(LDFLAGS) $(srcdir)/getloadavg.c $(LOADLIBES) -o $@
  194. check-loadavg: loadavg
  195.     @echo The system uptime program believes the load average to be:
  196.     -uptime
  197.     @echo The GNU load average checking code believes:
  198.     ./loadavg
  199. check: check-loadavg
  200.  
  201.  
  202. .PHONY: clean realclean distclean mostlyclean
  203. clean: glob-clean
  204.     -rm -f make loadavg *.o core make.info* make.dvi
  205. distclean: clean glob-realclean
  206.     -rm -f Makefile config.h config.status build.sh stamp-config
  207.     -rm -f TAGS tags
  208.     -rm -f make.?? make.??s make.log make.toc make.*aux
  209. realclean: distclean
  210. mostlyclean: clean
  211.  
  212. .PHONY: glob-clean glob-realclean
  213. glob-clean glob-realclean:
  214.     $(MAKE) -C glob $@
  215.  
  216. _Makefile: config.status $(srcdir)/Makefile.in
  217.     $(SHELL) config.status
  218. _config.h: stamp-config ;
  219. stamp-config: config.status $(srcdir)/config.h.in
  220.     $(SHELL) config.status
  221.     touch stamp-config
  222.  
  223. configure: configure.in
  224.     autoconf $(ACFLAGS)
  225. config.h.in: configure.in
  226.     autoheader $(ACFLAGS)
  227.  
  228. # This tells versions [3.59,3.63) of GNU make not to export all variables.
  229. .NOEXPORT:
  230.  
  231. # The automatically generated dependencies below may omit config.h
  232. # because it is included with ``#include <config.h>'' rather than
  233. # ``#include "config.h"''.  So we add the explicit dependency to make sure.
  234. $(objs): config.h
  235.  
  236. # Automatically generated dependencies will be put at the end of the file.
  237.  
  238. # Automatically generated dependencies.
  239. commands.o : commands.c make.h dep.h commands.h file.h variable.h job.h 
  240. job.o : job.c make.h commands.h job.h file.h variable.h 
  241. dir.o : dir.c make.h config.h 
  242. file.o : file.c make.h commands.h dep.h file.h variable.h 
  243. misc.o : misc.c make.h config.h dep.h 
  244. read.o : read.c make.h commands.h dep.h file.h variable.h glob/glob.h 
  245. remake.o : remake.c make.h commands.h job.h dep.h file.h 
  246. rule.o : rule.c make.h commands.h dep.h file.h variable.h rule.h 
  247. implicit.o : implicit.c make.h rule.h dep.h file.h 
  248. default.o : default.c make.h rule.h dep.h file.h commands.h variable.h 
  249. variable.o : variable.c make.h commands.h variable.h dep.h file.h 
  250. expand.o : expand.c make.h commands.h file.h variable.h 
  251. function.o : function.c make.h variable.h dep.h commands.h job.h 
  252. vpath.o : vpath.c make.h config.h file.h variable.h 
  253. version.o : version.c 
  254. ar.o : ar.c make.h config.h file.h dep.h 
  255. arscan.o : arscan.c make.h config.h 
  256. signame.o : signame.c config.h signame.h 
  257. remote-stub.o : remote-stub.c make.h config.h commands.h 
  258. getopt.o : getopt.c config.h getopt.h 
  259. getopt1.o : getopt1.c config.h getopt.h 
  260. getloadavg.o : getloadavg.c config.h 
  261.