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.
8 # -*-Makefile-*-, or close enough
15 # $DJDIR is defined automatically by DJGPP to point
16 # to the root of the DJGPP installation tree.
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
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 = ${bindir}/makeinfo
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
72 INCLUDES = -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\"
74 BUILT_SOURCES = README build.sh.in
76 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
79 mkinstalldirs = ${bindir}/gmkdir -p
80 CONFIG_HEADER = config.h
81 CONFIG_CLEAN_FILES = build.sh
82 PROGRAMS = $(bin_PROGRAMS)
85 DEFS = -I. -I$(srcdir) -I.
86 CPPFLAGS = -DHAVE_CONFIG_H
89 make_OBJECTS = %OBJECTS%
90 make_DEPENDENCIES = glob/libglob.a
93 libglob_a_OBJECTS = %GLOB_OBJECTS%
94 noinst_LIBRARIES = glob/libglob.a
96 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
97 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
99 TEXINFO_TEX = $(srcdir)/texinfo.tex
100 INFO_DEPS = make.info
102 TEXINFOS = make.texinfo
103 man1dir = $(mandir)/man1
107 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
110 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
114 SOURCES = $(make_SOURCES)
115 OBJECTS = $(make_OBJECTS)
116 HEADERS = $(wildcard $(srcdir)/*.h)
121 .SUFFIXES: .S .c .dvi .info .o .ps .s .texi .texinfo .txi
130 maintainer-clean-hdr:
132 mostlyclean-binPROGRAMS:
135 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
137 distclean-binPROGRAMS:
139 maintainer-clean-binPROGRAMS:
141 install-binPROGRAMS: $(bin_PROGRAMS)
143 $(mkinstalldirs) $(DESTDIR)$(bindir)
144 @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
146 uninstall-binPROGRAMS:
148 list='$(bin_PROGRAMS)'; for p in $$list; do rm -f $(bindir)/`echo $$p|sed '$(transform)'`.exe; done
159 clean-noinstLIBRARIES:
160 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
163 -rm -f *.o *.exe make.new core
168 -rm -f *.tab.c *_tab.c
170 maintainer-clean-compile:
172 make: $(make_OBJECTS) $(make_DEPENDENCIES)
173 @command.com /c if exist make del make
174 @command.com /c if exist make.exe del make.exe
175 $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
177 make.info: make.texinfo
178 make.dvi: make.texinfo
184 $(MAKEINFO) $(srcdir)/$< -o ./$@
187 TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
190 $(MAKEINFO) $(srcdir)/$< -o ./$@
193 $(MAKEINFO) $(srcdir)/$< -o ./$@
196 $(MAKEINFO) $(srcdir)/$< -o ./$@
199 TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
202 $(MAKEINFO) $(srcdir)/$< -o ./$@
205 TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
210 install-info-am: $(INFO_DEPS)
212 $(mkinstalldirs) $(DESTDIR)$(infodir)
213 @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
215 @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
219 @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
221 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
223 dist-info: $(INFO_DEPS)
224 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
227 -rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky \
228 make.kys make.ps make.log make.pg make.toc make.tp make.tps \
229 make.vr make.vrs make.op make.tr make.cv make.cn
235 maintainer-clean-aminfo:
236 for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
239 $(mkinstalldirs) $(DESTDIR)$(man1dir)
240 @list='$(man1_MANS)'; \
241 l2='$(man_MANS)'; for i in $$l2; do \
243 *.1*) list="$$list $$i" ;; \
246 for i in $$list; do \
247 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
249 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
250 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
251 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
252 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
253 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
257 @list='$(man1_MANS)'; \
258 l2='$(man_MANS)'; for i in $$l2; do \
260 *.1*) list="$$list $$i" ;; \
263 for i in $$list; do \
264 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
265 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
266 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
267 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
268 rm -f $(DESTDIR)$(man1dir)/$$inst; \
275 $(MAKE) uninstall-man1
277 # Assume that the only thing to do in glob is to build libglob.a,
278 # but do a sanity check: if $SUBDIRS will ever have more than
279 # a single directory, yell bloody murder.
281 ifeq ($(words $(SUBDIRS)), 1)
282 @command.com /c if not exist glob\\nul md glob
283 @echo Making all in $(SUBDIRS)
284 $(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
286 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
293 libglob.a: $(libglob_a_OBJECTS)
294 command.com /c if exist libglob.a del libglob.a
295 $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
298 mostlyclean-recursive clean-recursive distclean-recursive maintainer-clean-recursive:
299 ifeq ($(words $(SUBDIRS)), 1)
300 @echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
301 $(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
303 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
307 tags-in-glob: $(libglob_a_SOURCES)
308 etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
311 ifeq ($(words $(SUBDIRS)), 1)
314 @echo FATAL: There is more than one directory in "($(SUBDIRS))"
320 ID: $(HEADERS) $(SOURCES)
321 mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
323 TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
324 etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
333 maintainer-clean-tags:
335 distdir = $(PACKAGE)-$(VERSION)
336 top_distdir = $(distdir)
338 # This target untars the dist file and tries a VPATH configuration. Then
339 # it guarantees that the distribution is self-contained by making another
343 GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
344 mkdir $(distdir)/=build
345 mkdir $(distdir)/=inst
346 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
348 @echo "========================"; echo "$(distdir).tar.gz is ready for distribution"; echo "========================"
350 -chmod -R a+r $(distdir)
351 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
354 -chmod -R a+r $(distdir)
355 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
357 distdir: $(DISTFILES)
360 -chmod 777 $(distdir)
361 @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
362 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
363 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
365 info: $(INFO_DEPS) info-recursive
366 dvi: $(DVIS) dvi-recursive
368 $(MAKE) check-recursive check-local
369 installcheck: installcheck-recursive
370 all-recursive-am: config.h
371 $(MAKE) all-recursive
373 all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
375 install-exec-am: install-binPROGRAMS
377 install-data-am: install-info-am
379 uninstall-am: uninstall-binPROGRAMS uninstall-info
381 install-exec: install-exec-recursive install-exec-am
384 install-data: install-data-recursive install-data-am
387 install: install-recursive install-exec-am install-data-am
390 uninstall: uninstall-recursive uninstall-am
392 all: all-recursive-am all-am
395 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
396 installdirs: installdirs-recursive
397 $(mkinstalldirs) $(bindir) $(infodir)
401 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
404 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
407 -rm -f Makefile $(DISTCLEANFILES)
408 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
409 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
411 maintainer-clean-generic:
412 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
413 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
414 mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS mostlyclean-compile mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
416 clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-aminfo clean-tags clean-generic mostlyclean-am
418 distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile distclean-aminfo distclean-tags distclean-generic clean-am
420 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS maintainer-clean-compile maintainer-clean-aminfo maintainer-clean-tags maintainer-clean-generic distclean-am
422 mostlyclean: mostlyclean-recursive mostlyclean-am
424 clean: clean-noinstLIBRARIES clean-recursive clean-am
426 distclean: distclean-recursive distclean-am
429 maintainer-clean: maintainer-clean-recursive maintainer-clean-am
430 @echo "This command is intended for maintainers to use;"
431 @echo "it deletes files that may require special tools to rebuild."
434 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
435 maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
436 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
437 install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
438 maintainer-clean-compile install-info-am uninstall-info \
439 mostlyclean-aminfo distclean-aminfo clean-aminfo \
440 maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
441 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
442 uninstalldirs-recursive all-recursive check-recursive \
443 installcheck-recursive info-recursive dvi-recursive \
444 mostlyclean-recursive distclean-recursive clean-recursive \
445 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
446 distclean-tags clean-tags maintainer-clean-tags distdir \
447 mostlyclean-depend distclean-depend clean-depend \
448 maintainer-clean-depend info dvi check-local installcheck \
449 all-recursive-am all-am install-exec-am install-data-am uninstall-am \
450 install-exec install-data install uninstall all installdirs \
451 mostlyclean-generic distclean-generic clean-generic \
452 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
455 # --------------- Local DIST Section
457 # Install the w32 subdirectory
461 w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
463 | (cd $(distdir); tar xfBp -)
465 # --------------- Local CHECK Section
467 check-local: check-loadavg check-regression
468 .PHONY: check-loadavg check-regression
472 loadavg: loadavg.c config.h
474 $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
475 # We copy getloadavg.c into a different file rather than compiling it
476 # directly because some compilers clobber getloadavg.o in the process.
477 loadavg.c: getloadavg.c
478 ln $(srcdir)/getloadavg.c loadavg.c || \
479 cp $(srcdir)/getloadavg.c loadavg.c
480 check-loadavg: loadavg
481 @echo The system uptime program believes the load average to be:
483 @echo The GNU load average checking code believes:
488 # Look for the make test suite, and run it if found. Look in MAKE_TEST if
489 # specified, or else in the srcdir or the distdir, their parents, and _their_
493 here=`pwd`; testdir=""; \
494 case "$(MAKE_TEST)" in "") \
495 for d1 in $$here $(srcdir); do \
496 for d2 in ../.. .. .; do \
497 all=`echo $$d1/$$d2/make-test-[0-9]*/run_make_tests`; \
499 "$$d1/$$d2/make-test-[0-9]*/run_make_tests") : ;; \
500 *) try=`for x in $$all; do echo $$x; done | sort | tail -1`;\
501 testdir=`dirname $$try` ;; esac; \
503 *) testdir="$(MAKE_TEST)" ;; \
505 case "$$testdir" in \
506 "") echo "Couldn't find make-test-* test suite."; exit 0;; \
508 echo "cd $$testdir && ./run_make_tests -make_path $$here/make"; \
509 cd $$testdir && ./run_make_tests -make_path $$here/make
511 # --------------- Maintainer's Section
513 # Note this requires GNU make. Not to worry, since it will only be included
514 # in the Makefile if we're in the maintainer's environment.
515 #include $(srcdir)/maintMakefile
517 # Tell versions [3.59,3.63) of GNU make to not export all variables.
518 # Otherwise a system limit (for SysV at least) may be exceeded.