*** empty log message ***
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
eb02fd64 1#
131a3881 2# Makefile for directory with subdirs to build.
eb02fd64 3#
6a3958b2 4# Last Mod Thu Apr 18 17:41:48 PDT 1991, by rich@cygint.cygnus.com
eb02fd64
RP
5#
6
f149eb99
RP
7# $Id$
8
eb02fd64 9srcdir = .
ec342d7d 10destdir = /usr/local
eb02fd64 11
ec342d7d
RP
12#CC = gcc -b$(target) # -B$(srcdir)/../gas/Host-$(host)/Target-$(target)/
13#CFLAGS = -g -nostdinc -nostdlib -I- -I/usr/local/lib/gcc/$(target)/1.92/include -I$(srcdir) -I$(srcdir)/../include -I$(OSINCLUDE)
eb02fd64 14
eb02fd64 15RANLIB = ranlib
ec342d7d
RP
16AR = ar
17AR_FLAGS = cqv
eb02fd64 18
6a3958b2
RP
19BOOTSTRAPPABLE = getopt bfd binutils ld gas gcc gnulib
20OTHERS =
21
eb02fd64 22#### host and target specific makefile fragments come in here.
ec342d7d 23###
eb02fd64 24
6a3958b2
RP
25all:
26 $(MAKE) subdir_do DO=all "DODIRS=$(BOOTSTRAPPABLE) $(OTHERS)"
27
28subdir_do: $(DODIRS)
29 for i in $(DODIRS); \
eb02fd64
RP
30 do \
31 if (cd $(srcdir)/$$i`if [ -d $(srcdir)/$$i.$(target) ] ; \
ec342d7d
RP
32 then echo .$(target) ; fi`$(subdir); \
33 $(MAKE) \
34 "destdir=$(destdir)" \
131a3881 35 "AR=$(AR)" \
ec342d7d 36 "AR_FLAGS=$(AR_FLAGS)" \
eb02fd64
RP
37 "RANLIB=$(RANLIB)" $(DO)) ; \
38 then true ; \
39 else exit 1 ; \
40 fi ;\
41 done
42
2b34da49
RP
43bootstrap:
44 $(MAKE) all
45 $(MAKE) stage1
6a3958b2
RP
46 $(MAKE) pass "stagepass=stage1"
47 $(MAKE) stage2
48 $(MAKE) pass "stagepass=stage2"
49
50bootstrap2:
51 $(MAKE) pass "stagepass=stage1"
52 $(MAKE) stage2
53 $(MAKE) pass "stagepass=stage2"
54
55bootstrap3:
56 $(MAKE) pass "stagepass=stage2"
57
58pass:
59 $(MAKE) subdir_do DO=all "DODIRS=$(BOOTSTRAPPABLE)" \
60 "CC=$(srcdir)/../gcc`if [ -d $(srcdir)/gcc.$(target) ] ; \
61 then echo .$(target) ; fi`$(subdir)/$(stagepass)/gcc -O \
62 -B$(srcdir)/../gcc`if [ -d $(srcdir)/gcc.$(target) ] ; \
63 then echo .$(target) ; fi`$(subdir)/$(stagepass)/ \
64 -B$(srcdir)/../gas`if [ -d $(srcdir)/gas.$(target) ] ; \
65 then echo .$(target) ; fi`$(subdir)/$(stagepass)/" \
66 "AR=$(srcdir)/../binutils`if [ -d $(srcdir)/binutils.$(target) ] ; \
67 then echo .$(target) ; fi`$(subdir)/$(stagepass)/ar" \
68 "RANLIB=$(srcdir)/../binutils`if [ -d $(srcdir)/binutils.$(target) ] ; \
69 then echo .$(target) ; fi`$(subdir)/$(stagepass)/ranlib" \
70 "LOADLIBES=$(srcdir)/../gnulib`if [ -d $(srcdir)/binutils.$(target) ] ; \
71 then echo .$(target) ; fi`$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
72 "LDFLAGS=-nostdlib /lib/crt0.o \
73 -B$(srcdir)/../ld`if [ -d $(srcdir)/ld.$(target) ] ; \
74 then echo .$(target) ; fi`$(subdir)/$(stagepass)/"
2b34da49 75
eb02fd64 76
6a3958b2
RP
77stage1:
78 $(MAKE) subdir_do DO=stage1 "DODIRS=$(BOOTSTRAPPABLE)"
eb02fd64 79
6a3958b2
RP
80stage2:
81 $(MAKE) subdir_do DO=stage2 "DODIRS=$(BOOTSTRAPPABLE)"
eb02fd64 82
6a3958b2
RP
83stage3:
84 $(MAKE) subdir_do DO=stage3 "DODIRS=$(BOOTSTRAPPABLE)"
eb02fd64 85
6a3958b2
RP
86stage4:
87 $(MAKE) subdir_do DO=stage4 "DODIRS=$(BOOTSTRAPPABLE)"
eb02fd64 88
6a3958b2
RP
89de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(BOOTSTRAPPABLE)"
90de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(BOOTSTRAPPABLE)"
91de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(BOOTSTRAPPABLE)"
92de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(BOOTSTRAPPABLE)"
93
94clean:
95 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
96 $(MAKE) subdir_do DO=clean "DODIRS=$(BOOTSTRAPPABLE) $(OTHERS)"
97
98install:
99 $(MAKE) subdir_do DO=install "DODIRS=$(BOOTSTRAPPABLE) $(OTHERS)"
eb02fd64
RP
100
101etags tags: TAGS
102
103TAGS: FORCE
104 etags `$(MAKE) ls`
105
106ls:
107 @echo Makefile
108 @for i in $(SUBDIRS); \
109 do \
110 (cd $$i; \
111 pwd=`pwd`; \
112 wd=`basename $$pwd`; \
113 for j in `$(MAKE) ls`; \
114 do \
115 echo $$wd/$$j; \
116 done) \
117 done
118
119FORCE:
120
121# with the gnu make, this is done automatically.
122
123Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
131a3881 124 (cd $(srcdir) ; \
f149eb99
RP
125 ./configure +destdir=$(destdir) +norecurse \
126 `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
0df06ca0 127 $(host) +target=$(target))
eb02fd64
RP
128
129#
130# $Log$
6a3958b2
RP
131# Revision 1.10 1991/04/24 16:50:53 rich
132# Three staging checkpoint.
133#
134# Revision 1.9 1991/04/17 01:34:36 rich
2b34da49
RP
135# Added getopt for binutils, fixed problem with host dependancies in
136# configure.template.
137#
138# Revision 1.8 1991/04/15 23:43:45 rich
0df06ca0
RP
139# Now handles multiple hosts and targets.
140#
141# Revision 1.7 1991/04/13 13:06:16 tiemann
bb335cf4
MT
142# Don't depend `install' on `all'. Actually, the way things work, all
143# depends on things being incrementally installed, and install depends
144# on everything happening in a topological fashion.
145#
146# This will need to be worked on further, but for now it's ok.
147#
148# Revision 1.6 1991/04/13 10:04:14 rich
149# Now can build gas for a29k on a29k.
150#
151# Revision 1.5 1991/04/13 07:40:41 rich
f149eb99
RP
152# Fixed an ordering bug. Now everything is built, and then installed.
153#
154# Revision 1.4 1991/04/13 02:11:09 rich
ec342d7d
RP
155# Config cut 3. We now almost install a29k.
156#
157# Revision 1.3 1991/04/11 02:41:53 rich
131a3881 158# Cut 2 config. Subdirs.
eb02fd64
RP
159#
160#
161#
162
163# end of Makefile.in
This page took 0.031537 seconds and 4 git commands to generate.