aboutsummaryrefslogtreecommitdiff
path: root/contrib/bluegnu2.0.3/example/Makefile.in
blob: 3fc31aced4cc9285384f5b4cf97e47b81712fe2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
VPATH = @srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
tooldir = $(libdir)/$(target_alias)
datadir = $(exec_prefix)/lib/dejagnu
mandir = $(prefix)/man

infodir = $(prefix)/info
includedir = $(prefix)/include
docdir = $(datadir)/doc
targetdir = $(datadir)/$(target_canonical)

SHELL = /bin/sh

# Examples don't get installed
INSTALL =
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)

CC = @CC@
CFLAGS = -g
SUBDIRS = @subdirs@
RUNTEST = runtest
RUNTESTFLAGS = 

FLAGS_TO_PASS = \
	"CC=$(CC)" \
	"CFLAGS=$(CFLAGS)" \
	"INSTALL=$(INSTALL)" \
	"INSTALL_DATA=$(INSTALL_DATA)" \
	"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
	"LDFLAGS=$(LDFLAGS)" \
	"MAKEINFO=$(MAKEINFO)" \
	"RUNTEST=$(RUNTEST)" \
	"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
	"exec_prefix=$(exec_prefix)" \
	"prefix=$(prefix)" \
	"tooldir=$(tooldir)"

#### host, target, and site specific Makefile frags come in here.

all:	 force
	@$(MAKE) subdir_do DO=$@ $(FLAGS_TO_PASS)

.PHONY: info install install-info check installcheck dvi
info:
install:
dvi:
install-info:
check:
installcheck:

.NOEXPORT:
MAKEOVERRIDES=

check:	force	
	rootme=`pwd`; export rootme; $(MAKE) DO=check DODIRS=calc subdir_do

subdir_do: force
	@for i in $(SUBDIRS); do \
	   echo "Making $(DO) in $${i}..." ; \
	   if [ -d ./$$i ] ; then \
	     if (rootme=`pwd`/ ; export rootme ; \
	       rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
	       cd ./$$i; \
	       $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
	     else exit 1 ; fi ; \
	   else true ; fi ; \
	done
force:

clean mostlyclean:
	-rm -f \#* *~ core *.o a.out xgdb *.x
	@$(MAKE) subdir_do DO=$@ $(FLAGS_TO_PASS)

distclean maintainer-clean realclean: clean
	@$(MAKE) subdir_do DO=$@ $(FLAGS_TO_PASS)
	-rm -f *~ core
	-rm -f Makefile *-init.exp site.*
	-rm -f config.status config.log config.cache
	-rm -fr *.log summary detail

Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) config.status
	@echo "Rebuilding the Makefile..."
	$(SHELL) ./config.status

configure: $(srcdir)/configure.in $(srcdir)/Makefile.in $(srcdir)/../aclocal.m4
	@echo "Rebuilding configure..."
	@cd ${srcdir} ;\
	autoconf --localdir=${srcdir}/..
     
config.status:
	@echo "Rebuilding config.status..."
	$(SHELL) ./config.status --recheck