Updates for GNU make 3.75.92.
[make.git] / Makefile.DOS.template
blobe2f8135897ac3b17b692a2713b3a1237f75b2847
1 # -*-Makefile-*- template for DJGPP
2 # Makefile.in generated automatically by automake 1.2 from Makefile.am
4 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
5 # This Makefile.DOS is free software; the Free Software Foundation
6 # gives unlimited permission to copy, distribute and modify it.
8 # -*-Makefile-*-, or close enough
11 SHELL = /bin/sh
13 srcdir = .
14 VPATH = $(srcdir)
15 # $DJDIR is defined automatically by DJGPP to point
16 # to the root of the DJGPP installation tree.
17 prefix = ${DJDIR}
18 exec_prefix = ${prefix}
20 bindir = ${exec_prefix}/bin
21 datadir = ${prefix}/share
22 libdir = ${prefix}/lib
23 infodir = ${prefix}/info
24 # DJGPP doesn't have separate man tree, use info instead.
25 mandir = ${prefix}/info
26 includedir = ${prefix}/include
27 oldincludedir = c:/djgpp/include
29 pkgdatadir = $(datadir)/make
30 pkglibdir = $(libdir)/make
31 pkgincludedir = $(includedir)/make
33 INSTALL = ${bindir}/ginstall -c
34 INSTALL_PROGRAM = ${bindir}/ginstall -c
35 INSTALL_DATA = ${bindir}/ginstall -c -m 644
36 INSTALL_SCRIPT = ${bindir}/ginstall -c
37 transform = s,x,x,
39 # This will fail even if they don't have a Unix-like shell (stock DOS
40 # shell doesn't know about `false').  The only difference is that they
41 # get "Error -1" instead of "Error 1".
42 EXIT_FAIL = false
44 NORMAL_INSTALL = true
45 PRE_INSTALL = true
46 POST_INSTALL = true
47 NORMAL_UNINSTALL = true
48 PRE_UNINSTALL = true
49 POST_UNINSTALL = true
50 AR = ar
51 CC = gcc
52 CPP = gcc -E
53 LIBOBJS =
54 MAKEINFO = ${bindir}/makeinfo
55 PACKAGE = make
56 RANLIB = ranlib
57 REMOTE = stub
58 VERSION = %VERSION%
60 AUTOMAKE_OPTIONS = 1.2
62 bin_PROGRAMS =  %PROGRAMS%
64 make_SOURCES =  %SOURCES%
65 # This should include the glob/ prefix
66 libglob_a_SOURCES =     %GLOB_SOURCES%
67 make_LDADD =      glob/libglob.a
69 info_TEXINFOS = make.texinfo
71 INCLUDES =      -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\"
73 BUILT_SOURCES = README build.sh.in
75 EXTRA_DIST =    make.man $(BUILT_SOURCES) remote-cstms.c  make-stds.texi texinfo.tex SCOPTIONS SMakefile  Makefile.ami README.Amiga config.ami amiga.c amiga.h  NMakefile README.DOS configh.dos configure.bat makefile.com  README.W32 build_w32.bat config.h.W32 subproc.bat make.lnk  config.h-vms makefile.vms readme.vms vmsdir.h vmsfunctions.c  vmsify.c
77 SUBDIRS =       glob
78 mkinstalldirs = ${bindir}/gmkdir -p
79 CONFIG_HEADER = config.h
80 CONFIG_CLEAN_FILES =  build.sh
81 PROGRAMS =  $(bin_PROGRAMS)
84 DEFS =  -I. -I$(srcdir) -I.
85 CPPFLAGS = -DHAVE_CONFIG_H
86 LDFLAGS =
87 LIBS =
88 make_OBJECTS =  %OBJECTS%
89 make_DEPENDENCIES =    glob/libglob.a
90 make_LDFLAGS =
91 libglob_a_LIBADD =
92 libglob_a_OBJECTS =  %GLOB_OBJECTS%
93 noinst_LIBRARIES =      glob/libglob.a
94 CFLAGS = -O2 -g
95 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
96 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
97 TEXI2DVI = texi2dvi
98 TEXINFO_TEX = $(srcdir)/texinfo.tex
99 INFO_DEPS = make.info
100 DVIS = make.dvi
101 TEXINFOS = make.texinfo
102 DIST_COMMON =  README AUTHORS COPYING ChangeLog INSTALL Makefile.am  Makefile.in NEWS acconfig.h aclocal.m4 alloca.c build.sh.in config.h.in  configure configure.in getloadavg.c install-sh missing mkinstalldirs  stamp-h.in texinfo.tex
105 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
107 TAR = gtar
108 GZIP = --best
109 SOURCES = $(make_SOURCES)
110 OBJECTS = $(make_OBJECTS)
111 HEADERS = $(wildcard $(srcdir)/*.h)
113 default: all
115 .SUFFIXES:
116 .SUFFIXES: .c .dvi .info .o .ps .texi .texinfo
118 distclean-hdr:
119         rm -f config.h
121 maintainer-clean-hdr:
123 mostlyclean-binPROGRAMS:
125 clean-binPROGRAMS:
126         test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
128 distclean-binPROGRAMS:
130 maintainer-clean-binPROGRAMS:
132 install-binPROGRAMS: $(bin_PROGRAMS)
133         @$(NORMAL_INSTALL)
134         $(mkinstalldirs) $(bindir)
135         @list='$(bin_PROGRAMS)'; for p in $$list; do    if test -f $$p; then      echo "  $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p | sed '$(transform)'`";       $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p | sed '$(transform)'`;    else :; fi;  done
137 uninstall-binPROGRAMS:
138         $(NORMAL_UNINSTALL)
139         list='$(bin_PROGRAMS)'; for p in $$list; do    rm -f $(bindir)/`echo $$p|sed '$(transform)'`;  done
141 .c.o:
142         $(COMPILE) -c $<
144 clean-noinstLIBRARIES:
145         test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
147 mostlyclean-compile:
148         rm -f *.o *.exe make.new core
150 clean-compile:
152 distclean-compile:
153         rm -f *.tab.c
155 maintainer-clean-compile:
157 make: $(make_OBJECTS) $(make_DEPENDENCIES)
158         @command.com /c if exist make del make
159         @command.com /c if exist make.exe del make.exe
160         $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
162 make.info: make.texinfo
163 make.dvi: make.texinfo
166 DVIPS = dvips
168 .texi.info:
169         $(MAKEINFO) $(srcdir)/$< -o ./$@
171 .texi.dvi:
172         TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
174 .texi:
175         $(MAKEINFO) $(srcdir)/$< -o ./$@
177 .texinfo.info:
178         $(MAKEINFO) $(srcdir)/$< -o ./$@
180 .texinfo:
181         $(MAKEINFO) $(srcdir)/$< -o ./$@
183 .texinfo.dvi:
184         TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
186 .dvi.ps:
187         $(DVIPS) $< -o $@
189 install-info-am: $(INFO_DEPS)
190         @$(NORMAL_INSTALL)
191         $(mkinstalldirs) $(infodir)
192         @for file in $(INFO_DEPS) make.i; do    d=$(srcdir);    for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]`; do      if test -f $$d/$$ifile; then        echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; else : ; fi;    done;  done
193         @$(POST_INSTALL)
194         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then    for file in $(INFO_DEPS); do      echo " install-info --info-dir=$(infodir) $(infodir)/$$file";     install-info --info-dir=$(infodir) $(infodir)/$$file || :;   done;  else : ; fi
196 uninstall-info:
197         $(PRE_UNINSTALL)
198         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then    ii=yes;  else ii=; fi;  for file in $(INFO_DEPS); do    test -z $ii || install-info --info-dir=$(infodir) --remove $$file;  done
199         $(NORMAL_UNINSTALL)
200         for file in $(INFO_DEPS) make.i; do    (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]);  done
202 dist-info: $(INFO_DEPS)
203         for base in $(INFO_DEPS); do    d=$(srcdir);    for file in `cd $$d && eval echo $$base*`; do      test -f $(distdir)/$$file      || ln $$d/$$file $(distdir)/$$file 2> /dev/null      || cp -p $$d/$$file $(distdir)/$$file;    done;  done
205 mostlyclean-aminfo:
206         rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky    make.log make.pg make.toc make.tp make.tps make.vr make.vrs    make.op make.tr make.cv
208 clean-aminfo:
210 distclean-aminfo:
212 maintainer-clean-aminfo:
213         for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
215 # Assume that the only thing to do in glob is to build libglob.a,
216 # but do a sanity check: if $SUBDIRS will ever have more than
217 # a single directory, yell bloody murder.
218 all-recursive:
219 ifeq ($(words $(SUBDIRS)), 1)
220         @command.com /c if not exist glob\\nul md glob
221         @echo Making all in $(SUBDIRS)
222         $(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
223 else
224         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
225         @$(EXIT_FAIL)
226 endif
228 $(SUBDIRS):
229         command.com /c md $@
231 libglob.a: $(libglob_a_OBJECTS)
232         command.com /c if exist libglob.a del libglob.a
233         $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
234         $(RANLIB) libglob.a
236 mostlyclean-recursive clean-recursive distclean-recursive  maintainer-clean-recursive:
237 ifeq ($(words $(SUBDIRS)), 1)
238         @echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
239         $(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
240 else
241         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
242         @$(EXIT_FAIL)
243 endif
245 tags-in-glob: $(libglob_a_SOURCES)
246         etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
248 tags-recursive:
249 ifeq ($(words $(SUBDIRS)), 1)
250         $(MAKE) tags-in-glob
251 else
252         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
253         @$(EXIT_FAIL)
254 endif
256 tags: TAGS
258 ID: $(HEADERS) $(SOURCES)
259         mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
261 TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
262         etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
264 mostlyclean-tags:
266 clean-tags:
268 distclean-tags:
269         rm -f TAGS ID
271 maintainer-clean-tags:
273 distdir = $(PACKAGE)-$(VERSION)
274 top_distdir = $(distdir)
276 # This target untars the dist file and tries a VPATH configuration.  Then
277 # it guarantees that the distribution is self-contained by making another
278 # tarfile.
279 distcheck: dist
280         rm -rf $(distdir)
281         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
282         mkdir $(distdir)/=build
283         mkdir $(distdir)/=inst
284         dc_install_base=`cd $(distdir)/=inst && pwd`;  cd $(distdir)/=build    && ../configure --srcdir=.. --prefix=$$dc_install_base    && $(MAKE)    && $(MAKE) dvi    && $(MAKE) check    && $(MAKE) install    && $(MAKE) installcheck    && $(MAKE) dist
285         rm -rf $(distdir)
286         @echo "========================";  echo "$(distdir).tar.gz is ready for distribution";  echo "========================"
287 dist: distdir
288         -chmod -R a+r $(distdir)
289         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
290         rm -rf $(distdir)
291 dist-all: distdir
292         -chmod -R a+r $(distdir)
293         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
294         rm -rf $(distdir)
295 distdir: $(DISTFILES)
296         rm -rf $(distdir)
297         mkdir $(distdir)
298         -chmod 777 $(distdir)
299         @for file in $(DISTFILES); do    d=$(srcdir);    test -f $(distdir)/$$file    || ln $$d/$$file $(distdir)/$$file 2> /dev/null    || cp -p $$d/$$file $(distdir)/$$file;  done
300         for subdir in $(SUBDIRS); do   test -d $(distdir)/$$subdir   || mkdir $(distdir)/$$subdir   || exit 1;   chmod 777 $(distdir)/$$subdir;   (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir)/$$subdir distdir=../$(distdir)/$$subdir distdir)      || exit
301 1;  done
302         $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
303         $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
304 alloca.o alloca.lo: alloca.c config.h
305 ar.o ar.lo: ar.c make.h config.h filedef.h dep.h glob/fnmatch.h
306 arscan.o arscan.lo: arscan.c make.h config.h
307 commands.o commands.lo: commands.c make.h config.h dep.h filedef.h  variable.h job.h commands.h
308 default.o default.lo: default.c make.h config.h rule.h dep.h filedef.h  job.h commands.h variable.h
309 dir.o dir.lo: dir.c make.h config.h glob/glob.h
310 expand.o expand.lo: expand.c make.h config.h filedef.h job.h commands.h  variable.h
311 file.o file.lo: file.c make.h config.h dep.h filedef.h job.h commands.h  variable.h
312 function.o function.lo: function.c make.h config.h filedef.h variable.h  dep.h job.h commands.h
313 getloadavg.o getloadavg.lo: getloadavg.c config.h
314 getopt.o getopt.lo: getopt.c config.h getopt.h
315 getopt1.o getopt1.lo: getopt1.c config.h getopt.h
316 implicit.o implicit.lo: implicit.c make.h config.h rule.h dep.h  filedef.h
317 job.o job.lo: job.c make.h config.h job.h filedef.h commands.h  variable.h
318 main.o main.lo: main.c make.h config.h dep.h filedef.h variable.h job.h  commands.h getopt.h
319 misc.o misc.lo: misc.c make.h config.h dep.h
320 read.o read.lo: read.c make.h config.h dep.h filedef.h job.h commands.h  variable.h glob/glob.h
321 remake.o remake.lo: remake.c make.h config.h filedef.h job.h commands.h  dep.h
322 remote-stub.o remote-stub.lo: remote-stub.c make.h config.h filedef.h  job.h commands.h
323 rule.o rule.lo: rule.c make.h config.h dep.h filedef.h job.h commands.h  variable.h rule.h
324 signame.o signame.lo: signame.c config.h signame.h
325 variable.o variable.lo: variable.c make.h config.h dep.h filedef.h job.h  commands.h variable.h
326 version.o version.lo: version.c config.h
327 vpath.o vpath.lo: vpath.c make.h config.h filedef.h variable.h
328 fnmatch.o fnmatch.lo: fnmatch.c fnmatch.h ../config.h
329 glob.o glob.lo: glob.c fnmatch.h glob.h ../config.h
331 info: $(INFO_DEPS) info-recursive
332 dvi: $(DVIS) dvi-recursive
333 check: all-am
334         $(MAKE) check-recursive check-local
335 installcheck: installcheck-recursive
336 all-recursive-am: config.h
337         $(MAKE) all-recursive
339 all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
341 install-exec-am: install-binPROGRAMS
343 install-data-am: install-info-am
345 uninstall-am: uninstall-binPROGRAMS uninstall-info
347 install-exec: install-exec-recursive install-exec-am
348         @$(NORMAL_INSTALL)
350 install-data: install-data-recursive install-data-am
351         @$(NORMAL_INSTALL)
353 install: install-recursive install-exec-am install-data-am
354         @:
356 uninstall: uninstall-recursive uninstall-am
358 all: all-recursive-am all-am
360 install-strip:
361         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
362 installdirs: installdirs-recursive
363         $(mkinstalldirs)  $(bindir) $(infodir)
366 mostlyclean-generic:
367         test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
369 clean-generic:
370         test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
372 distclean-generic:
373         rm -f Makefile $(DISTCLEANFILES)
374         rm -f config.cache config.log stamp-h stamp-h[0-9]*
375         test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
377 maintainer-clean-generic:
378         test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
379         test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
380 mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS  mostlyclean-compile mostlyclean-aminfo mostlyclean-tags  mostlyclean-generic
382 clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-aminfo  clean-tags clean-generic mostlyclean-am
384 distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile  distclean-aminfo distclean-tags distclean-generic  clean-am
386 maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS  maintainer-clean-compile maintainer-clean-aminfo  maintainer-clean-tags maintainer-clean-generic  distclean-am
388 mostlyclean:  mostlyclean-recursive mostlyclean-am
390 clean: clean-noinstLIBRARIES clean-recursive clean-am
392 distclean:  distclean-recursive distclean-am
393         rm -f config.status
395 maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
396         @echo "This command is intended for maintainers to use;"
397         @echo "it deletes files that may require special tools to rebuild."
398         rm -f config.status
400 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr  maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS  clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS  install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile  maintainer-clean-compile install-info-am uninstall-info  mostlyclean-aminfo distclean-aminfo clean-aminfo  maintainer-clean-aminfo install-data-recursive uninstall-data-recursive  install-exec-recursive uninstall-exec-recursive installdirs-recursive  uninstalldirs-recursive all-recursive check-recursive  installcheck-recursive info-recursive dvi-recursive  mostlyclean-recursive distclean-recursive clean-recursive  maintainer-clean-recursive tags tags-recursive mostlyclean-tags  distclean-tags clean-tags maintainer-clean-tags distdir info dvi  check-local installcheck all-recursive-am all-am install-exec-am  install-data-am uninstall-am install-exec install-data install  uninstall all installdirs mostlyclean-generic distclean-generic  clean-generic maintainer-clean-generic clean mostlyclean distclean  maintainer-clean
403 # --------------- Local DIST Section
405 # Install the w32 subdirectory
407 dist-hook:
408         (cd $(srcdir); \
409          w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
410          tar chf - $$w32) \
411         | (cd $(distdir); tar xfBp -)
413 # --------------- Local CHECK Section
415 check-local: check-loadavg check-regression
416 .PHONY: check-loadavg check-regression
418 # > check-loadavg
420 loadavg: loadavg.c config.h
421         @rm -f loadavg
422         $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
423 # We copy getloadavg.c into a different file rather than compiling it
424 # directly because some compilers clobber getloadavg.o in the process.
425 loadavg.c: getloadavg.c
426         ln $(srcdir)/getloadavg.c loadavg.c || \
427         cp $(srcdir)/getloadavg.c loadavg.c
428 check-loadavg: loadavg
429         @echo The system uptime program believes the load average to be:
430         -uptime
431         @echo The GNU load average checking code believes:
432         -./loadavg
434 # > check-regression
436 # Look for the make test suite, and run it if found.  Look in MAKE_TEST if
437 # specified, or else in the srcdir or the distdir, their parents, and _their_
438 # parents.
440 check-regression:
441         here=`pwd`; testdir=""; \
442           case "$(MAKE_TEST)" in "") \
443             for d1 in $$here $(srcdir); do \
444               for d2 in ../.. .. .; do \
445                 all=`echo $$d1/$$d2/make-test-[0-9]*/run_make_tests`; \
446                 case "$$all" in \
447                   "$$d1/$$d2/make-test-[0-9]*/run_make_tests") : ;; \
448                   *) try=`for x in $$all; do echo $$x; done | sort | tail -1`;\
449                      testdir=`dirname $$try` ;; esac; \
450             done; done ;; \
451             *) testdir="$(MAKE_TEST)" ;; \
452           esac; \
453           case "$$testdir" in \
454             "") echo "Couldn't find make-test-* test suite."; exit 0;; \
455           esac; \
456           echo "cd $$testdir && ./run_make_tests -make_path $$here/make"; \
457           cd $$testdir && ./run_make_tests -make_path $$here/make
459 # --------------- Maintainer's Section
461 # Note this requires GNU make.  Not to worry, since it will only be included
462 # in the Makefile if we're in the maintainer's environment.
463 #include $(srcdir)/maintMakefile
465 # Tell versions [3.59,3.63) of GNU make to not export all variables.
466 # Otherwise a system limit (for SysV at least) may be exceeded.
467 .NOEXPORT: