2 # Makefile for directory with subdirs to build.
4 # Last Mod Sat Apr 13 02:43:05 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)
15 # These are roughly topologically sorted in order to make porting more
20 SUBDIRS_INCLUDE
= machine-dep
26 #### host and target specific makefile fragments come in here.
29 subdir_do
: $(SUBDIRS
) $(TARGETDIRS
)
30 for i in
$(SUBDIRS
); \
32 if
(cd
$(srcdir)/$$i`if [ -d $(srcdir)/$$i.$(target) ] ; \
33 then echo .$(target) ; fi`$(subdir
); \
35 "destdir=$(destdir)" \
37 "AR_FLAGS=$(AR_FLAGS)" \
38 "RANLIB=$(RANLIB)" $(DO
)) ; \
45 $(MAKE
) subdir_do DO
=all
48 rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
49 $(MAKE
) subdir_do DO
=clean
52 $(MAKE
) subdir_do DO
=install
54 # When installing include files, be sure that machine-dependent
55 # files override machine-independent files.
56 # Might be better to check for collisions? FIXME
58 $(MAKE
) SUBDIRS
=machine-dep DO
=install_crt
61 $(MAKE
) SUBDIRS
=gnulib DO
=install_gnulib
64 $(MAKE
) SUBDIRS
=$(SUBDIRS_INCLUDE
) DO
=install_include
67 cp libc.a
$(DESTDIR
)/lib
/libc.a
76 @for i in
$(SUBDIRS
); \
80 wd
=`basename $$pwd`; \
81 for j in
`$(MAKE) ls`; \
89 # with the gnu make, this is done automatically.
91 Makefile
: $(srcdir)/Makefile.in
$(srcdir)/configure
93 .
/configure
+destdir
=$(destdir
) +norecurse \
94 `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
95 +host
=$(host
) $(target
))
99 # Revision 1.7 1991/04/13 13:06:16 tiemann
100 # Don't depend `install' on `all'. Actually, the way things work, all
101 # depends on things being incrementally installed, and install depends
102 # on everything happening in a topological fashion.
104 # This will need to be worked on further, but for now it's ok.
106 # Revision 1.6 1991/04/13 10:04:14 rich
107 # Now can build gas for a29k on a29k.
109 # Revision 1.5 1991/04/13 07:40:41 rich
110 # Fixed an ordering bug. Now everything is built, and then installed.
112 # Revision 1.4 1991/04/13 02:11:09 rich
113 # Config cut 3. We now almost install a29k.
115 # Revision 1.3 1991/04/11 02:41:53 rich
116 # Cut 2 config. Subdirs.