2 # Makefile for directory with subdirs to build.
4 # Last Mod Fri Apr 12 15:58:12 PDT 1991, by rich@sendai
10 #CC = gcc -b$(target) # -B$(srcdir)/../gas/Host-$(host)/Target-$(target)/
11 #CFLAGS = -g -nostdinc -nostdlib -I- -I/usr/local/lib/gcc/$(target)/1.92/include -I$(srcdir) -I$(srcdir)/../include -I$(OSINCLUDE)
13 # These are roughly topologically sorted in order to make porting more
18 SUBDIRS_INCLUDE
= machine-dep
24 #### host and target specific makefile fragments come in here.
27 subdir_do
: $(SUBDIRS
) $(TARGETDIRS
)
28 for i in
$(SUBDIRS
); \
30 if
(cd
$(srcdir)/$$i`if [ -d $(srcdir)/$$i.$(target) ] ; \
31 then echo .$(target) ; fi`$(subdir
); \
33 "destdir=$(destdir)" \
35 "AR_FLAGS=$(AR_FLAGS)" \
36 "RANLIB=$(RANLIB)" $(DO
)) ; \
43 $(MAKE
) subdir_do DO
=all
46 rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
47 $(MAKE
) subdir_do DO
=clean
50 $(MAKE
) subdir_do DO
=install
52 # When installing include files, be sure that machine-dependent
53 # files override machine-independent files.
54 # Might be better to check for collisions? FIXME
56 $(MAKE
) SUBDIRS
=machine-dep DO
=install_crt
59 $(MAKE
) SUBDIRS
=gnulib DO
=install_gnulib
62 $(MAKE
) SUBDIRS
=$(SUBDIRS_INCLUDE
) DO
=install_include
65 cp libc.a
$(DESTDIR
)/lib
/libc.a
74 @for i in
$(SUBDIRS
); \
78 wd
=`basename $$pwd`; \
79 for j in
`$(MAKE) ls`; \
87 # with the gnu make, this is done automatically.
89 Makefile
: $(srcdir)/Makefile.in
$(srcdir)/configure
91 .
/configure
+norecurse
`if [ "$(srcdir)" != "." ] ; then echo +f; fi` +host
=$(host
) $(target
))
95 # Revision 1.4 1991/04/13 02:11:09 rich
96 # Config cut 3. We now almost install a29k.
98 # Revision 1.3 1991/04/11 02:41:53 rich
99 # Cut 2 config. Subdirs.