1 # -*-Makefile-*- template for DJGPP
2 # Makefile.in generated automatically by automake 1.2 from Makefile.am
4 # Copyright (C) 1994, 1995-1998, 1999 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.
13 # $DJDIR is defined automatically by DJGPP to point
14 # to the root of the DJGPP installation tree.
15 prefix = /dev/env/DJDIR
16 exec_prefix = ${prefix}
24 oldincludedir = c:/djgpp/include
26 DESTDIR = /dev/env/DJDIR
28 pkgdatadir = $(datadir)/make
29 pkglibdir = $(libdir)/make
30 pkgincludedir = $(includedir)/make
31 localedir = $(datadir)/locale
33 INSTALL = ${exec_prefix}/bin/ginstall -c
34 INSTALL_PROGRAM = ${exec_prefix}/bin/ginstall -c
35 INSTALL_DATA = ${exec_prefix}/bin/ginstall -c -m 644
36 INSTALL_SCRIPT = ${exec_prefix}/bin/ginstall -c
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".
54 MAKEINFO = ${exec_prefix}/bin/makeinfo
61 AUTOMAKE_OPTIONS = 1.2
63 bin_PROGRAMS = %PROGRAMS%
65 make_SOURCES = %SOURCES%
66 # This should include the glob/ prefix
67 libglob_a_SOURCES = %GLOB_SOURCES%
68 make_LDADD = glob/libglob.a
70 info_TEXINFOS = make.texinfo
73 INCLUDES = -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\" -DLOCALEDIR=\"$(localedir)\"
75 BUILT_SOURCES = README build.sh-in
77 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
80 mkinstalldirs = ${exec_prefix}/bin/gmkdir -p
81 CONFIG_HEADER = config.h
82 CONFIG_CLEAN_FILES = build.sh
83 PROGRAMS = $(bin_PROGRAMS)
85 MAKE_HOST = i386-pc-msdosdjgpp
88 DEFS = -I. -I$(srcdir) -I.
89 CPPFLAGS = -DHAVE_CONFIG_H
92 make_OBJECTS = %OBJECTS%
93 make_DEPENDENCIES = glob/libglob.a
96 libglob_a_OBJECTS = %GLOB_OBJECTS%
97 noinst_LIBRARIES = glob/libglob.a
99 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
100 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
102 TEXINFO_TEX = $(srcdir)/texinfo.tex
103 INFO_DEPS = make.info
105 TEXINFOS = make.texinfo
106 man1dir = $(mandir)/man1
110 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 gettext.c install-sh missing mkinstalldirs stamp-h.in texinfo.tex
113 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
117 SOURCES = $(make_SOURCES)
118 OBJECTS = $(make_OBJECTS)
119 HEADERS = $(wildcard $(srcdir)/*.h)
124 .SUFFIXES: .S .c .dvi .info .o .ps .s .texi .texinfo .txi
133 maintainer-clean-hdr:
135 mostlyclean-binPROGRAMS:
138 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
140 distclean-binPROGRAMS:
142 maintainer-clean-binPROGRAMS:
144 install-binPROGRAMS: $(bin_PROGRAMS)
146 $(mkinstalldirs) $(DESTDIR)$(bindir)
147 @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
149 uninstall-binPROGRAMS:
151 list='$(bin_PROGRAMS)'; for p in $$list; do rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`.exe; done
162 clean-noinstLIBRARIES:
163 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
166 -rm -f *.o *.exe make.new core
171 -rm -f *.tab.c *_tab.c
173 maintainer-clean-compile:
175 make: $(make_OBJECTS) $(make_DEPENDENCIES)
176 @command.com /c if exist make del make
177 @command.com /c if exist make.exe del make.exe
178 $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
180 make.info: make.texinfo
181 make.dvi: make.texinfo
187 $(MAKEINFO) $(srcdir)/$< -o ./$@
190 TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
193 $(MAKEINFO) $(srcdir)/$< -o ./$@
196 $(MAKEINFO) $(srcdir)/$< -o ./$@
199 $(MAKEINFO) $(srcdir)/$< -o ./$@
202 TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
205 $(MAKEINFO) $(srcdir)/$< -o ./$@
208 TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
213 install-info-am: $(INFO_DEPS)
215 $(mkinstalldirs) $(DESTDIR)$(infodir)
216 @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
218 @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
222 @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
224 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
226 dist-info: $(INFO_DEPS)
227 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
230 -rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky \
231 make.kys make.ps make.log make.pg make.toc make.tp make.tps \
232 make.vr make.vrs make.op make.tr make.cv make.cn
238 maintainer-clean-aminfo:
239 for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
242 $(mkinstalldirs) $(DESTDIR)$(man1dir)
243 @list='$(man1_MANS)'; \
244 l2='$(man_MANS)'; for i in $$l2; do \
246 *.1*) list="$$list $$i" ;; \
249 for i in $$list; do \
250 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
252 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
253 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
254 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
255 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
256 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
260 @list='$(man1_MANS)'; \
261 l2='$(man_MANS)'; for i in $$l2; do \
263 *.1*) list="$$list $$i" ;; \
266 for i in $$list; do \
267 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
268 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
269 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
270 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
271 rm -f $(DESTDIR)$(man1dir)/$$inst; \
278 $(MAKE) uninstall-man1
280 # Assume that the only thing to do in glob is to build libglob.a,
281 # but do a sanity check: if $SUBDIRS will ever have more than
282 # a single directory, yell bloody murder.
284 ifeq ($(words $(SUBDIRS)), 1)
285 @command.com /c if not exist glob\\nul md glob
286 @echo Making all in $(SUBDIRS)
287 $(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
289 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
296 libglob.a: $(libglob_a_OBJECTS)
297 command.com /c if exist libglob.a del libglob.a
298 $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
301 mostlyclean-recursive clean-recursive distclean-recursive \
302 maintainer-clean-recursive check-recursive:
303 ifeq ($(words $(SUBDIRS)), 1)
304 @echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
305 $(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
307 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
311 tags-in-glob: $(libglob_a_SOURCES)
312 etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
315 ifeq ($(words $(SUBDIRS)), 1)
318 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
324 ID: $(HEADERS) $(SOURCES)
325 mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
327 TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
328 etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
337 maintainer-clean-tags:
339 distdir = $(PACKAGE)-$(VERSION)
340 top_distdir = $(distdir)
342 # This target untars the dist file and tries a VPATH configuration. Then
343 # it guarantees that the distribution is self-contained by making another
347 GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
348 mkdir $(distdir)/=build
349 mkdir $(distdir)/=inst
350 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
352 @echo "========================"; echo "$(distdir).tar.gz is ready for distribution"; echo "========================"
354 -chmod -R a+r $(distdir)
355 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
358 -chmod -R a+r $(distdir)
359 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
361 distdir: $(DISTFILES)
364 -chmod 777 $(distdir)
365 @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
366 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
367 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
369 info: $(INFO_DEPS) info-recursive
370 dvi: $(DVIS) dvi-recursive
371 check: all-am check-recursive check-local
373 installcheck: installcheck-recursive
374 all-recursive-am: config.h
375 $(MAKE) all-recursive
377 all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
379 install-exec-am: install-binPROGRAMS
381 install-data-am: install-info-am
383 uninstall-am: uninstall-binPROGRAMS uninstall-info
385 install-exec: install-exec-recursive install-exec-am
388 install-data: install-data-recursive install-data-am
391 install-recursive uninstall-recursive:
394 install: install-recursive install-exec-am install-data-am
397 uninstall: uninstall-recursive uninstall-am
399 all: all-recursive-am all-am
402 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
403 installdirs: installdirs-recursive
404 $(mkinstalldirs) $(bindir) $(infodir)
408 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
411 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
414 -rm -f Makefile $(DISTCLEANFILES)
415 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
416 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
418 maintainer-clean-generic:
419 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
420 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
421 mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS mostlyclean-compile mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
423 clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-aminfo clean-tags clean-generic mostlyclean-am
425 distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile distclean-aminfo distclean-tags distclean-generic clean-am
427 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS maintainer-clean-compile maintainer-clean-aminfo maintainer-clean-tags maintainer-clean-generic distclean-am
429 mostlyclean: mostlyclean-recursive mostlyclean-am
431 clean: clean-noinstLIBRARIES clean-recursive clean-am
433 distclean: distclean-recursive distclean-am
436 maintainer-clean: maintainer-clean-recursive maintainer-clean-am
437 @echo "This command is intended for maintainers to use;"
438 @echo "it deletes files that may require special tools to rebuild."
441 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
442 maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
443 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
444 install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
445 maintainer-clean-compile install-info-am uninstall-info \
446 mostlyclean-aminfo distclean-aminfo clean-aminfo \
447 maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
448 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
449 uninstalldirs-recursive all-recursive check-recursive check-am \
450 installcheck-recursive info-recursive dvi-recursive \
451 mostlyclean-recursive distclean-recursive clean-recursive \
452 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
453 distclean-tags clean-tags maintainer-clean-tags distdir \
454 mostlyclean-depend distclean-depend clean-depend \
455 maintainer-clean-depend info dvi check-local installcheck \
456 all-recursive-am all-am install-exec-am install-data-am uninstall-am \
457 install-exec install-data install uninstall all installdirs \
458 mostlyclean-generic distclean-generic clean-generic \
459 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
462 # --------------- Local DIST Section
464 # Install the w32 subdirectory
468 w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
470 | (cd $(distdir); tar xfBp -)
472 # --------------- Local CHECK Section
474 # Note: check-loadavg is NOT a prerequisite of check-local, since
475 # there's no uptime utility, and the test it does doesn't make sense
477 check-local: check-shell check-regression
478 @banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
479 dashes=`echo "$$banner" | sed s/./=/g`; \
486 .PHONY: check-loadavg check-shell check-regression
490 # check-shell is designed to fail if they don't have a Unixy shell
491 # installed. The test suite requires such a shell.
493 @echo If Make says Error -1, you do not have Unix-style shell installed
498 loadavg: loadavg.c config.h
500 $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
501 # We copy getloadavg.c into a different file rather than compiling it
502 # directly because some compilers clobber getloadavg.o in the process.
503 loadavg.c: getloadavg.c
504 ln $(srcdir)/getloadavg.c loadavg.c || \
505 cp $(srcdir)/getloadavg.c loadavg.c
506 check-loadavg: loadavg
507 @echo The system uptime program believes the load average to be:
509 @echo The GNU load average checking code believes:
514 # Look for the make test suite, and run it if found. Look in MAKE_TEST if
515 # specified, or else in the srcdir or the distdir, their parents, and _their_
519 @if test -f "$(srcdir)/tests/run_make_tests"; then \
520 if $(PERL) -v >/dev/null 2>&1; then \
521 case `cd $(srcdir); pwd` in `pwd`) : ;; \
522 *) test -d tests || mkdir tests; \
523 for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
524 rm -rf tests/$$f; cp -pr $(srcdir)/tests/$$f tests; \
527 echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS)"; \
528 cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS); \
530 echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
533 echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
536 # --------------- Maintainer's Section
538 # Note this requires GNU make. Not to worry, since it will only be included
539 # in the Makefile if we're in the maintainer's environment.
540 #include $(srcdir)/maintMakefile
542 # Tell versions [3.59,3.63) of GNU make to not export all variables.
543 # Otherwise a system limit (for SysV at least) may be exceeded.