~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/3rdparty/qmake/Makefile.DOS

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*-Makefile-*- template for DJGPP
 
2
# Makefile.in generated automatically by automake 1.2 from Makefile.am
 
3
 
 
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.
 
7
 
 
8
# -*-Makefile-*-, or close enough
 
9
 
 
10
 
 
11
SHELL = /bin/sh
 
12
 
 
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}
 
19
 
 
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
 
28
 
 
29
pkgdatadir = $(datadir)/make
 
30
pkglibdir = $(libdir)/make
 
31
pkgincludedir = $(includedir)/make
 
32
 
 
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,
 
38
 
 
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
 
43
 
 
44
NORMAL_INSTALL = :
 
45
PRE_INSTALL = :
 
46
POST_INSTALL = :
 
47
NORMAL_UNINSTALL = :
 
48
PRE_UNINSTALL = :
 
49
POST_UNINSTALL = :
 
50
AR = ar
 
51
CC = gcc
 
52
CPP = gcc -E
 
53
LIBOBJS =
 
54
MAKEINFO = ${bindir}/makeinfo
 
55
PACKAGE = make
 
56
PERL = perl
 
57
RANLIB = ranlib
 
58
REMOTE = stub
 
59
VERSION = 3.78.1
 
60
 
 
61
AUTOMAKE_OPTIONS = 1.2
 
62
 
 
63
bin_PROGRAMS =  make
 
64
 
 
65
make_SOURCES =  main.c commands.c job.c dir.c file.c misc.c read.c remake.c rule.c implicit.c default.c variable.c expand.c function.c vpath.c version.c ar.c arscan.c commands.h dep.h filedef.h job.h make.h rule.h variable.h signame.c signame.h getopt.c getopt1.c getopt.h remote-$(REMOTE).c
 
66
# This should include the glob/ prefix
 
67
libglob_a_SOURCES =     glob/fnmatch.c glob/glob.c glob/fnmatch.h glob/glob.h
 
68
make_LDADD =      glob/libglob.a
 
69
 
 
70
info_TEXINFOS = make.texinfo
 
71
man_MANS =      make.1
 
72
 
 
73
INCLUDES =      -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\"
 
74
 
 
75
BUILT_SOURCES = README build.sh.in
 
76
 
 
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
 
78
 
 
79
SUBDIRS =       glob
 
80
mkinstalldirs = ${bindir}/gmkdir -p
 
81
CONFIG_HEADER = config.h
 
82
CONFIG_CLEAN_FILES =  build.sh
 
83
PROGRAMS =  $(bin_PROGRAMS)
 
84
 
 
85
MAKE_HOST = i386-pc-msdosdjgpp
 
86
 
 
87
 
 
88
DEFS =  -I. -I$(srcdir) -I.
 
89
CPPFLAGS = -DHAVE_CONFIG_H
 
90
LDFLAGS =
 
91
LIBS =
 
92
make_OBJECTS =  main.o commands.o job.o dir.o file.o misc.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 getopt.o getopt1.o remote-$(REMOTE).o
 
93
make_DEPENDENCIES =    glob/libglob.a
 
94
make_LDFLAGS =
 
95
libglob_a_LIBADD =
 
96
libglob_a_OBJECTS =  fnmatch.o glob.o
 
97
noinst_LIBRARIES =      glob/libglob.a
 
98
CFLAGS = -O2 -g
 
99
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 
100
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
 
101
TEXI2DVI = texi2dvi
 
102
TEXINFO_TEX = $(srcdir)/texinfo.tex
 
103
INFO_DEPS = make.info
 
104
DVIS = make.dvi
 
105
TEXINFOS = make.texinfo
 
106
man1dir = $(mandir)/man1
 
107
MANS = $(man_MANS)
 
108
 
 
109
NROFF = nroff
 
110
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
 
111
 
 
112
 
 
113
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
114
 
 
115
TAR = gtar
 
116
GZIP = --best
 
117
SOURCES = $(make_SOURCES)
 
118
OBJECTS = $(make_OBJECTS)
 
119
HEADERS = $(wildcard $(srcdir)/*.h)
 
120
 
 
121
default: all
 
122
 
 
123
.SUFFIXES:
 
124
.SUFFIXES: .S .c .dvi .info .o .ps .s .texi .texinfo .txi
 
125
 
 
126
mostlyclean-hdr:
 
127
 
 
128
clean-hdr:
 
129
 
 
130
distclean-hdr:
 
131
        -rm -f config.h
 
132
 
 
133
maintainer-clean-hdr:
 
134
 
 
135
mostlyclean-binPROGRAMS:
 
136
 
 
137
clean-binPROGRAMS:
 
138
        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
 
139
 
 
140
distclean-binPROGRAMS:
 
141
 
 
142
maintainer-clean-binPROGRAMS:
 
143
 
 
144
install-binPROGRAMS: $(bin_PROGRAMS)
 
145
        @$(NORMAL_INSTALL)
 
146
        $(mkinstalldirs) $(DESTDIR)$(bindir)
 
147
        @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
 
148
 
 
149
uninstall-binPROGRAMS:
 
150
        $(NORMAL_UNINSTALL)
 
151
        list='$(bin_PROGRAMS)'; for p in $$list; do    rm -f $(bindir)/`echo $$p|sed '$(transform)'`.exe;  done
 
152
 
 
153
.c.o:
 
154
        $(COMPILE) -c $<
 
155
 
 
156
.s.o:
 
157
        $(COMPILE) -c $<
 
158
 
 
159
.S.o:
 
160
        $(COMPILE) -c $<
 
161
 
 
162
clean-noinstLIBRARIES:
 
163
        -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
 
164
 
 
165
mostlyclean-compile:
 
166
        -rm -f *.o *.exe make.new core
 
167
 
 
168
clean-compile:
 
169
 
 
170
distclean-compile:
 
171
        -rm -f *.tab.c *_tab.c
 
172
 
 
173
maintainer-clean-compile:
 
174
 
 
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)
 
179
 
 
180
make.info: make.texinfo
 
181
make.dvi: make.texinfo
 
182
 
 
183
 
 
184
DVIPS = dvips
 
185
 
 
186
.texi.info:
 
187
        $(MAKEINFO) $(srcdir)/$< -o ./$@
 
188
 
 
189
.texi.dvi:
 
190
        TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
 
191
 
 
192
.texi:
 
193
        $(MAKEINFO) $(srcdir)/$< -o ./$@
 
194
 
 
195
.texinfo.info:
 
196
        $(MAKEINFO) $(srcdir)/$< -o ./$@
 
197
 
 
198
.texinfo:
 
199
        $(MAKEINFO) $(srcdir)/$< -o ./$@
 
200
 
 
201
.texinfo.dvi:
 
202
        TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
 
203
 
 
204
.txi.info:
 
205
        $(MAKEINFO) $(srcdir)/$< -o ./$@
 
206
 
 
207
.txi.dvi:
 
208
        TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
 
209
 
 
210
.dvi.ps:
 
211
        $(DVIPS) $< -o $@
 
212
 
 
213
install-info-am: $(INFO_DEPS)
 
214
        @$(NORMAL_INSTALL)
 
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
 
217
        @$(POST_INSTALL)
 
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
 
219
 
 
220
uninstall-info:
 
221
        $(PRE_UNINSTALL)
 
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
 
223
        $(NORMAL_UNINSTALL)
 
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
 
225
 
 
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
 
228
 
 
229
mostlyclean-aminfo:
 
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
 
233
 
 
234
clean-aminfo:
 
235
 
 
236
distclean-aminfo:
 
237
 
 
238
maintainer-clean-aminfo:
 
239
        for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
 
240
 
 
241
install-man1:
 
242
        $(mkinstalldirs) $(DESTDIR)$(man1dir)
 
243
        @list='$(man1_MANS)'; \
 
244
        l2='$(man_MANS)'; for i in $$l2; do \
 
245
          case "$$i" in \
 
246
            *.1*) list="$$list $$i" ;; \
 
247
          esac; \
 
248
        done; \
 
249
        for i in $$list; do \
 
250
          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
 
251
          else file=$$i; fi; \
 
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; \
 
257
        done
 
258
 
 
259
uninstall-man1:
 
260
        @list='$(man1_MANS)'; \
 
261
        l2='$(man_MANS)'; for i in $$l2; do \
 
262
          case "$$i" in \
 
263
            *.1*) list="$$list $$i" ;; \
 
264
          esac; \
 
265
        done; \
 
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; \
 
272
        done
 
273
install-man: $(MANS)
 
274
        @$(NORMAL_INSTALL)
 
275
        $(MAKE) install-man1
 
276
uninstall-man:
 
277
        @$(NORMAL_UNINSTALL)
 
278
        $(MAKE) uninstall-man1
 
279
 
 
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.
 
283
all-recursive:
 
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
 
288
else
 
289
        @echo FATAL: There is more than one directory in "($(SUBDIRS))"
 
290
        @$(EXIT_FAIL)
 
291
endif
 
292
 
 
293
$(SUBDIRS):
 
294
        command.com /c md $@
 
295
 
 
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)
 
299
        $(RANLIB) libglob.a
 
300
 
 
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
 
306
else
 
307
        @echo FATAL: There is more than one directory in "($(SUBDIRS))"
 
308
        @$(EXIT_FAIL)
 
309
endif
 
310
 
 
311
tags-in-glob: $(libglob_a_SOURCES)
 
312
        etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
 
313
 
 
314
tags-recursive:
 
315
ifeq ($(words $(SUBDIRS)), 1)
 
316
        $(MAKE) tags-in-glob
 
317
else
 
318
        @echo FATAL: There is more than one directory in "($(SUBDIRS))"
 
319
        @$(EXIT_FAIL)
 
320
endif
 
321
 
 
322
tags: TAGS
 
323
 
 
324
ID: $(HEADERS) $(SOURCES)
 
325
        mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
 
326
 
 
327
TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
 
328
        etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
 
329
 
 
330
mostlyclean-tags:
 
331
 
 
332
clean-tags:
 
333
 
 
334
distclean-tags:
 
335
        -rm -f TAGS ID
 
336
 
 
337
maintainer-clean-tags:
 
338
 
 
339
distdir = $(PACKAGE)-$(VERSION)
 
340
top_distdir = $(distdir)
 
341
 
 
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
 
344
# tarfile.
 
345
distcheck: dist
 
346
        rm -rf $(distdir)
 
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
 
351
        rm -rf $(distdir)
 
352
        @echo "========================";  echo "$(distdir).tar.gz is ready for distribution";  echo "========================"
 
353
dist: distdir
 
354
        -chmod -R a+r $(distdir)
 
355
        GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
 
356
        rm -rf $(distdir)
 
357
dist-all: distdir
 
358
        -chmod -R a+r $(distdir)
 
359
        GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
 
360
        rm -rf $(distdir)
 
361
distdir: $(DISTFILES)
 
362
        rm -rf $(distdir)
 
363
        mkdir $(distdir)
 
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
 
368
 
 
369
info: $(INFO_DEPS) info-recursive
 
370
dvi: $(DVIS) dvi-recursive
 
371
check: all-am check-recursive check-local
 
372
        @:
 
373
installcheck: installcheck-recursive
 
374
all-recursive-am: config.h
 
375
        $(MAKE) all-recursive
 
376
 
 
377
all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
 
378
 
 
379
install-exec-am: install-binPROGRAMS
 
380
 
 
381
install-data-am: install-info-am
 
382
 
 
383
uninstall-am: uninstall-binPROGRAMS uninstall-info
 
384
 
 
385
install-exec: install-exec-recursive install-exec-am
 
386
        @$(NORMAL_INSTALL)
 
387
 
 
388
install-data: install-data-recursive install-data-am
 
389
        @$(NORMAL_INSTALL)
 
390
 
 
391
install: install-recursive install-exec-am install-data-am
 
392
        @:
 
393
 
 
394
uninstall: uninstall-recursive uninstall-am
 
395
 
 
396
all: all-recursive-am all-am
 
397
 
 
398
install-strip:
 
399
        $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
 
400
installdirs: installdirs-recursive
 
401
        $(mkinstalldirs)  $(bindir) $(infodir)
 
402
 
 
403
 
 
404
mostlyclean-generic:
 
405
        -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
 
406
 
 
407
clean-generic:
 
408
        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
 
409
 
 
410
distclean-generic:
 
411
        -rm -f Makefile $(DISTCLEANFILES)
 
412
        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
 
413
        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
414
 
 
415
maintainer-clean-generic:
 
416
        -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
 
417
        -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
 
418
mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS  mostlyclean-compile mostlyclean-aminfo mostlyclean-tags  mostlyclean-generic
 
419
 
 
420
clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-aminfo  clean-tags clean-generic mostlyclean-am
 
421
 
 
422
distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile  distclean-aminfo distclean-tags distclean-generic  clean-am
 
423
 
 
424
maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS  maintainer-clean-compile maintainer-clean-aminfo  maintainer-clean-tags maintainer-clean-generic  distclean-am
 
425
 
 
426
mostlyclean:  mostlyclean-recursive mostlyclean-am
 
427
 
 
428
clean: clean-noinstLIBRARIES clean-recursive clean-am
 
429
 
 
430
distclean:  distclean-recursive distclean-am
 
431
        rm -f config.status
 
432
 
 
433
maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
 
434
        @echo "This command is intended for maintainers to use;"
 
435
        @echo "it deletes files that may require special tools to rebuild."
 
436
        rm -f config.status
 
437
 
 
438
.PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
 
439
maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
 
440
clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
 
441
install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
 
442
maintainer-clean-compile install-info-am uninstall-info \
 
443
mostlyclean-aminfo distclean-aminfo clean-aminfo \
 
444
maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
 
445
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
 
446
uninstalldirs-recursive all-recursive check-recursive check-am \
 
447
installcheck-recursive info-recursive dvi-recursive \
 
448
mostlyclean-recursive distclean-recursive clean-recursive \
 
449
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
 
450
distclean-tags clean-tags maintainer-clean-tags distdir \
 
451
mostlyclean-depend distclean-depend clean-depend \
 
452
maintainer-clean-depend info dvi check-local installcheck \
 
453
all-recursive-am all-am install-exec-am install-data-am uninstall-am \
 
454
install-exec install-data install uninstall all installdirs \
 
455
mostlyclean-generic distclean-generic clean-generic \
 
456
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
 
457
 
 
458
 
 
459
# --------------- Local DIST Section
 
460
 
 
461
# Install the w32 subdirectory
 
462
#
 
463
dist-hook:
 
464
        (cd $(srcdir); \
 
465
         w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
 
466
         tar chf - $$w32) \
 
467
        | (cd $(distdir); tar xfBp -)
 
468
 
 
469
# --------------- Local CHECK Section
 
470
 
 
471
# Note: check-loadavg is NOT a prerequisite of check-local, since
 
472
# there's no uptime utility, and the test it does doesn't make sense
 
473
# on MSDOS anyway.
 
474
check-local: check-shell check-regression
 
475
        @banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
 
476
        dashes=`echo "$$banner" | sed s/./=/g`; \
 
477
        echo; \
 
478
        echo "$$dashes"; \
 
479
        echo "$$banner"; \
 
480
        echo "$$dashes"; \
 
481
        echo
 
482
 
 
483
.PHONY: check-loadavg check-shell check-regression
 
484
 
 
485
# > check-shell
 
486
#
 
487
# check-shell is designed to fail if they don't have a Unixy shell
 
488
# installed.  The test suite requires such a shell.
 
489
check-shell:
 
490
        @echo If Make says Error -1, you do not have Unix-style shell installed
 
491
        @foo=bar.exe :
 
492
 
 
493
# > check-loadavg
 
494
#
 
495
loadavg: loadavg.c config.h
 
496
        @rm -f loadavg
 
497
        $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
 
498
# We copy getloadavg.c into a different file rather than compiling it
 
499
# directly because some compilers clobber getloadavg.o in the process.
 
500
loadavg.c: getloadavg.c
 
501
        ln $(srcdir)/getloadavg.c loadavg.c || \
 
502
        cp $(srcdir)/getloadavg.c loadavg.c
 
503
check-loadavg: loadavg
 
504
        @echo The system uptime program believes the load average to be:
 
505
        -uptime
 
506
        @echo The GNU load average checking code believes:
 
507
        -./loadavg
 
508
 
 
509
# > check-regression
 
510
#
 
511
# Look for the make test suite, and run it if found.  Look in MAKE_TEST if
 
512
# specified, or else in the srcdir or the distdir, their parents, and _their_
 
513
# parents.
 
514
#
 
515
check-regression:
 
516
        @if test -f "$(srcdir)/tests/run_make_tests"; then \
 
517
          if $(PERL) -v >/dev/null 2>&1; then \
 
518
            case `cd $(srcdir); pwd` in `pwd`) : ;; \
 
519
              *) test -d tests || mkdir tests; \
 
520
                 for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
 
521
                   rm -rf tests/$$f; cp -pr $(srcdir)/tests/$$f tests; \
 
522
                 done ;; \
 
523
            esac; \
 
524
            echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS)"; \
 
525
            cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS); \
 
526
          else \
 
527
            echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
 
528
          fi; \
 
529
         else \
 
530
          echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
 
531
         fi
 
532
 
 
533
# --------------- Maintainer's Section
 
534
 
 
535
# Note this requires GNU make.  Not to worry, since it will only be included
 
536
# in the Makefile if we're in the maintainer's environment.
 
537
#include $(srcdir)/maintMakefile
 
538
 
 
539
# Tell versions [3.59,3.63) of GNU make to not export all variables.
 
540
# Otherwise a system limit (for SysV at least) may be exceeded.
 
541
.NOEXPORT:
 
542
 
 
543
# --------------- DEPENDENCIES
 
544
#
 
545
alloca.o: alloca.c config.h
 
546
ar.o: ar.c make.h config.h signame.h filedef.h dep.h glob/fnmatch.h
 
547
arscan.o: arscan.c make.h config.h signame.h
 
548
commands.o: commands.c make.h config.h signame.h dep.h filedef.h \
 
549
        variable.h job.h commands.h
 
550
default.o: default.c make.h config.h signame.h rule.h dep.h filedef.h \
 
551
        job.h commands.h variable.h
 
552
dir.o: dir.c make.h config.h signame.h glob/glob.h
 
553
expand.o: expand.c make.h config.h signame.h filedef.h job.h commands.h \
 
554
        variable.h rule.h
 
555
file.o: file.c make.h config.h signame.h dep.h filedef.h job.h \
 
556
        commands.h variable.h
 
557
function.o: function.c make.h config.h signame.h filedef.h variable.h \
 
558
        dep.h job.h commands.h
 
559
getloadavg.o: getloadavg.c config.h
 
560
getopt.o: getopt.c config.h getopt.h
 
561
getopt1.o: getopt1.c config.h getopt.h
 
562
implicit.o: implicit.c make.h config.h signame.h rule.h dep.h filedef.h
 
563
job.o: job.c make.h config.h signame.h job.h filedef.h commands.h \
 
564
        variable.h
 
565
main.o: main.c make.h config.h signame.h dep.h filedef.h variable.h \
 
566
        job.h commands.h rule.h getopt.h
 
567
misc.o: misc.c make.h config.h signame.h dep.h
 
568
read.o: read.c make.h config.h signame.h glob/glob.h dep.h filedef.h \
 
569
        job.h commands.h variable.h rule.h
 
570
remake.o: remake.c make.h config.h signame.h filedef.h job.h commands.h \
 
571
        dep.h variable.h
 
572
remote-stub.o: remote-stub.c make.h config.h signame.h filedef.h job.h \
 
573
        commands.h
 
574
rule.o: rule.c make.h config.h signame.h dep.h filedef.h job.h \
 
575
        commands.h variable.h rule.h
 
576
signame.o: signame.c make.h config.h signame.h
 
577
variable.o: variable.c make.h config.h signame.h dep.h filedef.h job.h \
 
578
        commands.h variable.h
 
579
version.o: version.c config.h
 
580
vpath.o: vpath.c make.h config.h signame.h filedef.h variable.h
 
581