Config cut 3. We now almost install a29k.
[binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 #
4 # Last Mod Fri Apr 12 15:58:12 PDT 1991, by rich@sendai
5 #
6
7 srcdir = .
8 destdir = /usr/local
9
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)
12
13 # These are roughly topologically sorted in order to make porting more
14 # streamlined.
15
16 SUBDIRS =
17 NONSUBDIRS =
18 SUBDIRS_INCLUDE = machine-dep
19
20 RANLIB = ranlib
21 AR = ar
22 AR_FLAGS = cqv
23
24 #### host and target specific makefile fragments come in here.
25 ###
26
27 subdir_do: $(SUBDIRS) $(TARGETDIRS)
28 for i in $(SUBDIRS); \
29 do \
30 if (cd $(srcdir)/$$i`if [ -d $(srcdir)/$$i.$(target) ] ; \
31 then echo .$(target) ; fi`$(subdir); \
32 $(MAKE) \
33 "destdir=$(destdir)" \
34 "AR=$(AR)" \
35 "AR_FLAGS=$(AR_FLAGS)" \
36 "RANLIB=$(RANLIB)" $(DO)) ; \
37 then true ; \
38 else exit 1 ; \
39 fi ;\
40 done
41
42 all:
43 $(MAKE) subdir_do DO=all
44
45 clean:
46 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
47 $(MAKE) subdir_do DO=clean
48
49 install:
50 $(MAKE) subdir_do DO=install
51
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
55 install_crt:
56 $(MAKE) SUBDIRS=machine-dep DO=install_crt
57
58 install_gnulib:
59 $(MAKE) SUBDIRS=gnulib DO=install_gnulib
60
61 install_include:
62 $(MAKE) SUBDIRS=$(SUBDIRS_INCLUDE) DO=install_include
63
64 install_lib: libc.a
65 cp libc.a $(DESTDIR)/lib/libc.a
66
67 etags tags: TAGS
68
69 TAGS: FORCE
70 etags `$(MAKE) ls`
71
72 ls:
73 @echo Makefile
74 @for i in $(SUBDIRS); \
75 do \
76 (cd $$i; \
77 pwd=`pwd`; \
78 wd=`basename $$pwd`; \
79 for j in `$(MAKE) ls`; \
80 do \
81 echo $$wd/$$j; \
82 done) \
83 done
84
85 FORCE:
86
87 # with the gnu make, this is done automatically.
88
89 Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
90 (cd $(srcdir) ; \
91 ./configure +norecurse `if [ "$(srcdir)" != "." ] ; then echo +f; fi` +host=$(host) $(target))
92
93 #
94 # $Log$
95 # Revision 1.4 1991/04/13 02:11:09 rich
96 # Config cut 3. We now almost install a29k.
97 #
98 # Revision 1.3 1991/04/11 02:41:53 rich
99 # Cut 2 config. Subdirs.
100 #
101 #
102 #
103
104 # end of Makefile.in