2 # Makefile for directory with subdirs to build.
4 # Last Mod Fri Jun 14 06:34:11 PDT 1991, by rich@cygint.cygnus.com
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)
19 SUBDIRS
= libiberty bfd binutils
ld gas gcc gnulib
22 #### host and target specific makefile fragments come in here.
26 $(MAKE
) subdir_do DO
=all "DODIRS=$(SUBDIRS) $(OTHERS)"
29 for i in
$(DODIRS
); do \
30 if
[ -d
$(srcdir)/$$i -o
-d
$(srcdir)/$$i.
$(target
) ] ; then \
31 if
(cd
$(srcdir)/$$i`if [ -d $(srcdir)/$$i.$(target) ] ; \
32 then echo .$(target) ; fi`$(subdir
); \
34 "against=$(against)" \
36 "AR_FLAGS=$(AR_FLAGS)" \
37 "RANLIB=$(RANLIB)" $(DO
)) ; then true
; \
45 $(MAKE
) pass
"stagepass=stage1"
47 $(MAKE
) pass
"stagepass=stage2"
51 $(MAKE
) pass
"stagepass=stage1"
53 $(MAKE
) pass
"stagepass=stage2"
57 $(MAKE
) pass
"stagepass=stage2"
61 cp
$(srcdir)/gcc
`if [ -d $(srcdir)/gcc.$(target) ] ; \
62 then echo .$(target) ; fi`/gstdarg.h
$(srcdir)/gas
/stdarg.h
63 $(MAKE
) subdir_do DO
=all "DODIRS=$(SUBDIRS)" \
64 "CC=$(srcdir)/../gcc`if [ -d $(srcdir)/gcc.$(target) ] ; \
65 then echo .$(target) ; fi`$(subdir)/$(stagepass)/gcc -O \
66 -B$(srcdir)/../gcc`if [ -d $(srcdir)/gcc.$(target) ] ; \
67 then echo .$(target) ; fi`$(subdir)/$(stagepass)/ \
68 -B$(srcdir)/../gas`if [ -d $(srcdir)/gas.$(target) ] ; \
69 then echo .$(target) ; fi`$(subdir)/$(stagepass)/" \
70 "AR=$(srcdir)/../binutils`if [ -d $(srcdir)/binutils.$(target) ] ; \
71 then echo .$(target) ; fi`$(subdir)/$(stagepass)/ar" \
72 "RANLIB=$(srcdir)/../binutils`if [ -d $(srcdir)/binutils.$(target) ] ; \
73 then echo .$(target) ; fi`$(subdir)/$(stagepass)/ranlib" \
74 "LOADLIBES=$(srcdir)/../gnulib`if [ -d $(srcdir)/binutils.$(target) ] ; \
75 then echo .$(target) ; fi`$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
76 "LDFLAGS=-nostdlib /lib/crt0.o \
77 -B$(srcdir)/../ld`if [ -d $(srcdir)/ld.$(target) ] ; \
78 then echo .$(target) ; fi`$(subdir)/$(stagepass)/"
82 $(MAKE
) subdir_do DO
=stage1
"DODIRS=$(SUBDIRS)"
85 $(MAKE
) subdir_do DO
=stage2
"DODIRS=$(SUBDIRS)"
88 $(MAKE
) subdir_do DO
=stage3
"DODIRS=$(SUBDIRS)"
91 $(MAKE
) subdir_do DO
=stage4
"DODIRS=$(SUBDIRS)"
95 comparison
:; $(MAKE
) subdir_do DO
=comparison against
=$(against
) "DODIRS=$(SUBDIRS)"
97 de-stage1
:; $(MAKE
) subdir_do DO
=de-stage1
"DODIRS=$(SUBDIRS)"
98 de-stage2
:; $(MAKE
) subdir_do DO
=de-stage2
"DODIRS=$(SUBDIRS)"
99 de-stage3
:; $(MAKE
) subdir_do DO
=de-stage3
"DODIRS=$(SUBDIRS)"
100 de-stage4
:; $(MAKE
) subdir_do DO
=de-stage4
"DODIRS=$(SUBDIRS)"
103 rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
104 $(MAKE
) subdir_do DO
=clean "DODIRS=$(SUBDIRS) $(OTHERS)"
106 install: install-fixed-includes
107 $(MAKE
) subdir_do DO
=install "DODIRS=$(SUBDIRS) $(OTHERS)"
109 install-fixed-includes
:
110 (cd gcc
; $(MAKE
) install-fixed-includes
)
119 @for i in
$(SUBDIRS
); \
123 wd
=`basename $$pwd`; \
124 for j in
`$(MAKE) ls`; \
132 # with the gnu make, this is done automatically.
134 Makefile
: $(srcdir)/Makefile.in
$(srcdir)/configure
136 .
/configure
+destdir
=$(destdir
) +norecurse \
137 `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
138 $(host
) +target
=$(target
))
142 # Revision 1.16 1991/06/14 13:35:40 rich
143 # install fixed include files on install.
145 # Revision 1.15 1991/06/09 20:27:01 rich
146 # added support for binary comparisons.
148 # Revision 1.14 1991/05/31 12:34:55 gnu
149 # Avoid error stop from Make if a directory doesn't exist during subdir_do.
151 # Revision 1.13 1991/05/27 23:03:20 rich
152 # Put gcc/gstdarg.h where gas can find it; gas/stdarg.h.
154 # Revision 1.12 1991/05/19 00:36:44 rich
157 # Revision 1.11 1991/05/03 21:30:41 gnu
158 # Rename getopt to libiberty.
160 # Revision 1.10 1991/04/24 16:50:53 rich
161 # Three staging checkpoint.
163 # Revision 1.9 1991/04/17 01:34:36 rich
164 # Added getopt for binutils, fixed problem with host dependancies in
165 # configure.template.
167 # Revision 1.8 1991/04/15 23:43:45 rich
168 # Now handles multiple hosts and targets.
170 # Revision 1.7 1991/04/13 13:06:16 tiemann
171 # Don't depend `install' on `all'. Actually, the way things work, all
172 # depends on things being incrementally installed, and install depends
173 # on everything happening in a topological fashion.
175 # This will need to be worked on further, but for now it's ok.
177 # Revision 1.6 1991/04/13 10:04:14 rich
178 # Now can build gas for a29k on a29k.
180 # Revision 1.5 1991/04/13 07:40:41 rich
181 # Fixed an ordering bug. Now everything is built, and then installed.
183 # Revision 1.4 1991/04/13 02:11:09 rich
184 # Config cut 3. We now almost install a29k.
186 # Revision 1.3 1991/04/11 02:41:53 rich
187 # Cut 2 config. Subdirs.
This page took 0.033139 seconds and 4 git commands to generate.