1 # -*-Makefile-*- template for DJGPP
2 # Makefile.in generated automatically by automake 1.2 from Makefile.am
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
5 # 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
6 # This file is part of GNU Make.
8 # GNU Make is free software; you can redistribute it and/or modify it under
9 # the terms of the GNU General Public License as published by the Free Software
10 # Foundation; either version 3 of the License, or (at your option) any later
13 # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
14 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18 # You should have received a copy of the GNU General Public License along with
19 # this program. If not, see <http://www.gnu.org/licenses/>.
25 # $DJDIR is defined automatically by DJGPP to point
26 # to the root of the DJGPP installation tree.
27 prefix = /dev/env/DJDIR
28 exec_prefix = ${prefix}
36 oldincludedir = c:/djgpp/include
38 DESTDIR = /dev/env/DJDIR
40 pkgdatadir = $(datadir)/make
41 pkglibdir = $(libdir)/make
42 pkgincludedir = $(includedir)/make
43 localedir = $(datadir)/locale
45 INSTALL = ${exec_prefix}/bin/ginstall -c
46 INSTALL_PROGRAM = ${exec_prefix}/bin/ginstall -c
47 INSTALL_DATA = ${exec_prefix}/bin/ginstall -c -m 644
48 INSTALL_SCRIPT = ${exec_prefix}/bin/ginstall -c
51 # This will fail even if they don't have a Unix-like shell (stock DOS
52 # shell doesn't know about `false'). The only difference is that they
53 # get "Error -1" instead of "Error 1".
70 MAKEINFO = ${exec_prefix}/bin/makeinfo
77 AUTOMAKE_OPTIONS = 1.2
79 bin_PROGRAMS = %PROGRAMS%$(EXEEXT)
81 make_SOURCES = %SOURCES%
82 # This should include the glob/ prefix
83 libglob_a_SOURCES = %GLOB_SOURCES%
84 make_LDADD = glob/libglob.a
86 info_TEXINFOS = make.texinfo
89 INCLUDES = -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\" -DLOCALEDIR=\"$(localedir)\"
91 BUILT_SOURCES = README build.sh-in
93 EXTRA_DIST = $(BUILT_SOURCES) $(man_MANS) README.customs 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
96 mkinstalldirs = ${exec_prefix}/bin/gmkdir -p
97 CONFIG_HEADER = config.h
98 CONFIG_CLEAN_FILES = build.sh
99 PROGRAMS = $(bin_PROGRAMS)
101 MAKE_HOST = i386-pc-msdosdjgpp
104 DEFS = -I. -I$(srcdir) -I.
105 CPPFLAGS = -DHAVE_CONFIG_H
108 make_OBJECTS = %OBJECTS%
109 make_DEPENDENCIES = glob/libglob.a
112 libglob_a_OBJECTS = %GLOB_OBJECTS%
113 noinst_LIBRARIES = glob/libglob.a
115 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
116 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
118 TEXINFO_TEX = $(srcdir)/config/texinfo.tex
119 INFO_DEPS = make.info
121 TEXINFOS = make.texinfo
122 man1dir = $(mandir)/man1
126 DIST_COMMON = README ABOUT-NLS 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
128 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
132 SOURCES = $(make_SOURCES)
133 OBJECTS = $(make_OBJECTS)
134 HEADERS = $(wildcard $(srcdir)/*.h)
139 .SUFFIXES: .c .dvi .info .o .obj .ps .texinfo .tex
148 maintainer-clean-hdr:
150 mostlyclean-binPROGRAMS:
153 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
155 distclean-binPROGRAMS:
157 maintainer-clean-binPROGRAMS:
159 install-binPROGRAMS: $(bin_PROGRAMS)
161 $(mkinstalldirs) $(DESTDIR)$(bindir)
162 @list='$(bin_PROGRAMS)'; for p in $$list; do if test -f $$p; then echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p | sed '$(transform)'`"; $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p | sed '$(transform)'`; else :; fi; done
164 uninstall-binPROGRAMS:
166 list='$(bin_PROGRAMS)'; for p in $$list; do rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`.exe; done
171 clean-noinstLIBRARIES:
172 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
175 -rm -f *.$(OBJEXT) *$(EXEEXT) make.new core
180 -rm -f *.tab.c *_tab.c
182 maintainer-clean-compile:
184 make$(EXEEXT): $(make_OBJECTS) $(make_DEPENDENCIES)
185 @command.com /c if exist make del make
186 @command.com /c if exist make.exe del make.exe
187 $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
189 make.info: make.texinfo
190 make.dvi: make.texinfo
196 @command.com /c if exist make.info* del make.info*
197 @command.com /c if exist make.i* del make.i*
198 $(MAKEINFO) -I$(srcdir) $< -o ./$@
201 @command.com /c if exist make.info* del make.info*
202 @command.com /c if exist make.i* del make.i*
203 $(MAKEINFO) -I$(srcdir) $< -o ./$@
206 TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
212 install-info-am: $(INFO_DEPS)
214 $(mkinstalldirs) $(DESTDIR)$(infodir)
215 @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 $(DESTDIR)$(infodir)/$$ifile"; $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; else : ; fi; done; done
217 @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=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file"; install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :; done; else : ; fi
221 @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=$(DESTDIR)$(infodir) --remove $$file; done
223 for file in $(INFO_DEPS) make.i; do (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]); done
225 dist-info: $(INFO_DEPS)
226 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
229 -rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky \
230 make.kys make.ps make.log make.pg make.toc make.tp make.tps \
231 make.vr make.vrs make.op make.tr make.cv make.cn
237 maintainer-clean-aminfo:
238 for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
241 $(mkinstalldirs) $(DESTDIR)$(man1dir)
242 @list='$(man1_MANS)'; \
243 l2='$(man_MANS)'; for i in $$l2; do \
245 *.1*) list="$$list $$i" ;; \
248 for i in $$list; do \
249 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
251 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
252 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
253 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
254 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
255 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
259 @list='$(man1_MANS)'; \
260 l2='$(man_MANS)'; for i in $$l2; do \
262 *.1*) list="$$list $$i" ;; \
265 for i in $$list; do \
266 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
267 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
268 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
269 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
270 rm -f $(DESTDIR)$(man1dir)/$$inst; \
277 $(MAKE) uninstall-man1
279 # Assume that the only thing to do in glob is to build libglob.a,
280 # but do a sanity check: if $SUBDIRS will ever have more than
281 # a single directory, yell bloody murder.
283 ifeq ($(words $(SUBDIRS)), 1)
284 @command.com /c if not exist glob\\nul md glob
285 @echo Making all in $(SUBDIRS)
286 $(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
288 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
295 libglob.a: $(libglob_a_OBJECTS)
296 command.com /c if exist libglob.a del libglob.a
297 $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
300 mostlyclean-recursive clean-recursive distclean-recursive \
301 maintainer-clean-recursive check-recursive:
302 ifeq ($(words $(SUBDIRS)), 1)
303 @echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
304 $(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
306 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
310 tags-in-glob: $(libglob_a_SOURCES)
311 etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
314 ifeq ($(words $(SUBDIRS)), 1)
317 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
323 ID: $(HEADERS) $(SOURCES)
324 mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
326 TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
327 etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
336 maintainer-clean-tags:
338 distdir = $(PACKAGE)-$(VERSION)
339 top_distdir = $(distdir)
341 # This target untars the dist file and tries a VPATH configuration. Then
342 # it guarantees that the distribution is self-contained by making another
346 GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
347 mkdir $(distdir)/=build
348 mkdir $(distdir)/=inst
349 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
351 @echo "========================"; echo "$(distdir).tar.gz is ready for distribution"; echo "========================"
353 -chmod -R a+r $(distdir)
354 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
357 -chmod -R a+r $(distdir)
358 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
360 distdir: $(DISTFILES)
363 -chmod 777 $(distdir)
364 @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; 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 1; done
365 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
366 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
368 info: $(INFO_DEPS) info-recursive
369 dvi: $(DVIS) dvi-recursive
370 check: all-am check-recursive check-local
372 installcheck: installcheck-recursive
373 all-recursive-am: config.h
374 $(MAKE) all-recursive
376 all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
378 install-exec-am: install-binPROGRAMS
380 install-data-am: install-info-am
382 uninstall-am: uninstall-binPROGRAMS uninstall-info
384 install-exec: install-exec-recursive install-exec-am
387 install-data: install-data-recursive install-data-am
390 install-recursive uninstall-recursive:
393 install: install-recursive install-exec-am install-data-am
396 uninstall: uninstall-recursive uninstall-am
398 all: all-recursive-am all-am
401 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
402 installdirs: installdirs-recursive
403 $(mkinstalldirs) $(bindir) $(infodir)
407 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
410 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
413 -rm -f Makefile $(DISTCLEANFILES)
414 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
415 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
417 maintainer-clean-generic:
418 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
419 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
420 mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS mostlyclean-compile mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
422 clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-aminfo clean-tags clean-generic mostlyclean-am
424 distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile distclean-aminfo distclean-tags distclean-generic clean-am
426 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS maintainer-clean-compile maintainer-clean-aminfo maintainer-clean-tags maintainer-clean-generic distclean-am
428 mostlyclean: mostlyclean-recursive mostlyclean-am
430 clean: clean-noinstLIBRARIES clean-recursive clean-am
432 distclean: distclean-recursive distclean-am
435 maintainer-clean: maintainer-clean-recursive maintainer-clean-am
436 @echo "This command is intended for maintainers to use;"
437 @echo "it deletes files that may require special tools to rebuild."
440 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
441 maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
442 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
443 install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
444 maintainer-clean-compile install-info-am uninstall-info \
445 mostlyclean-aminfo distclean-aminfo clean-aminfo \
446 maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
447 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
448 uninstalldirs-recursive all-recursive check-recursive check-am \
449 installcheck-recursive info-recursive dvi-recursive \
450 mostlyclean-recursive distclean-recursive clean-recursive \
451 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
452 distclean-tags clean-tags maintainer-clean-tags distdir \
453 mostlyclean-depend distclean-depend clean-depend \
454 maintainer-clean-depend info dvi check-local installcheck \
455 all-recursive-am all-am install-exec-am install-data-am uninstall-am \
456 install-exec install-data install uninstall all installdirs \
457 mostlyclean-generic distclean-generic clean-generic \
458 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
461 # --------------- Local DIST Section
463 # Install the w32 subdirectory
467 w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
469 | (cd $(distdir); tar xfBp -)
471 # --------------- Local CHECK Section
473 # Note: check-loadavg is NOT a prerequisite of check-local, since
474 # there's no uptime utility, and the test it does doesn't make sense
476 check-local: check-shell check-regression
477 @banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
478 dashes=`echo "$$banner" | sed s/./=/g`; \
485 .PHONY: check-loadavg check-shell check-regression
489 # check-shell is designed to fail if they don't have a Unixy shell
490 # installed. The test suite requires such a shell.
492 @echo If Make says Error -1, you do not have Unix-style shell installed
497 loadavg: loadavg.c config.h
499 $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
500 # We copy getloadavg.c into a different file rather than compiling it
501 # directly because some compilers clobber getloadavg.o in the process.
502 loadavg.c: getloadavg.c
503 ln $(srcdir)/getloadavg.c loadavg.c || \
504 cp $(srcdir)/getloadavg.c loadavg.c
505 check-loadavg: loadavg
506 @echo The system uptime program believes the load average to be:
508 @echo The GNU load average checking code believes:
513 # Look for the make test suite, and run it if found. Look in MAKE_TEST if
514 # specified, or else in the srcdir or the distdir, their parents, and _their_
518 @if test -f "$(srcdir)/tests/run_make_tests"; then \
519 if $(PERL) -v >/dev/null 2>&1; then \
520 case `cd $(srcdir); pwd` in `pwd`) : ;; \
521 *) test -d tests || mkdir tests; \
522 for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
523 rm -rf tests/$$f; cp -pr $(srcdir)/tests/$$f tests; \
526 echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS)"; \
527 cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS); \
529 echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
532 echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
535 # --------------- Maintainer's Section
537 # Note this requires GNU make. Not to worry, since it will only be included
538 # in the Makefile if we're in the maintainer's environment.
539 #include $(srcdir)/maintMakefile
541 # Tell versions [3.59,3.63) of GNU make to not export all variables.
542 # Otherwise a system limit (for SysV at least) may be exceeded.
545 # --------------- DEPENDENCIES