Now handles multiple hosts and targets.
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 #
4 # Last Mod Mon Apr 15 13:57:46 PDT 1991, by rich@sendai
5 #
6
7 # $Id$
8
9 srcdir = .
10 destdir = /usr/local
11
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)
14
15 # These are roughly topologically sorted in order to make porting more
16 # streamlined.
17
18 SUBDIRS =
19 NONSUBDIRS =
20 SUBDIRS_INCLUDE = machine-dep
21
22 RANLIB = ranlib
23 AR = ar
24 AR_FLAGS = cqv
25
26 #### host and target specific makefile fragments come in here.
27 ###
28
29 subdir_do: $(SUBDIRS) $(TARGETDIRS)
30 for i in $(SUBDIRS); \
31 do \
32 if (cd $(srcdir)/$$i`if [ -d $(srcdir)/$$i.$(target) ] ; \
33 then echo .$(target) ; fi`$(subdir); \
34 $(MAKE) \
35 "destdir=$(destdir)" \
36 "AR=$(AR)" \
37 "AR_FLAGS=$(AR_FLAGS)" \
38 "RANLIB=$(RANLIB)" $(DO)) ; \
39 then true ; \
40 else exit 1 ; \
41 fi ;\
42 done
43
44 all:
45 $(MAKE) subdir_do DO=all
46
47 clean:
48 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
49 $(MAKE) subdir_do DO=clean
50
51 install:
52 $(MAKE) subdir_do DO=install
53
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
57 install_crt:
58 $(MAKE) SUBDIRS=machine-dep DO=install_crt
59
60 install_gnulib:
61 $(MAKE) SUBDIRS=gnulib DO=install_gnulib
62
63 install_include:
64 $(MAKE) SUBDIRS=$(SUBDIRS_INCLUDE) DO=install_include
65
66 install_lib: libc.a
67 cp libc.a $(DESTDIR)/lib/libc.a
68
69 etags tags: TAGS
70
71 TAGS: FORCE
72 etags `$(MAKE) ls`
73
74 ls:
75 @echo Makefile
76 @for i in $(SUBDIRS); \
77 do \
78 (cd $$i; \
79 pwd=`pwd`; \
80 wd=`basename $$pwd`; \
81 for j in `$(MAKE) ls`; \
82 do \
83 echo $$wd/$$j; \
84 done) \
85 done
86
87 FORCE:
88
89 # with the gnu make, this is done automatically.
90
91 Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
92 (cd $(srcdir) ; \
93 ./configure +destdir=$(destdir) +norecurse \
94 `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
95 $(host) +target=$(target))
96
97 #
98 # $Log$
99 # Revision 1.8 1991/04/15 23:43:45 rich
100 # Now handles multiple hosts and targets.
101 #
102 # Revision 1.7 1991/04/13 13:06:16 tiemann
103 # Don't depend `install' on `all'. Actually, the way things work, all
104 # depends on things being incrementally installed, and install depends
105 # on everything happening in a topological fashion.
106 #
107 # This will need to be worked on further, but for now it's ok.
108 #
109 # Revision 1.6 1991/04/13 10:04:14 rich
110 # Now can build gas for a29k on a29k.
111 #
112 # Revision 1.5 1991/04/13 07:40:41 rich
113 # Fixed an ordering bug. Now everything is built, and then installed.
114 #
115 # Revision 1.4 1991/04/13 02:11:09 rich
116 # Config cut 3. We now almost install a29k.
117 #
118 # Revision 1.3 1991/04/11 02:41:53 rich
119 # Cut 2 config. Subdirs.
120 #
121 #
122 #
123
124 # end of Makefile.in
This page took 0.032403 seconds and 5 git commands to generate.