First cut config. builds in place.
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for development tools.
3 #
4 # Last Mod Mon Apr 8 22:31:28 PDT 1991, by rich@sendai
5 #
6
7 srcdir = .
8 #subdir = Host-$(host)/Target-$(target)
9
10 OSLAYER = clib/os-layer
11 OSINCLUDE = $(OSLAYER)/include
12
13 #CC = gcc -b$(target) # -B$(srcdir)/../gas/Host-$(host)/Target-$(target)/
14 #CFLAGS = -g -nostdinc -nostdlib -I- -I$(srcdir) -I$(srcdir)/../include -I$(OSINCLUDE)
15
16 # These are roughly topologically sorted in order to make porting more
17 # streamlined.
18
19 SUBDIRS =
20 NONSUBDIRS =
21 SUBDIRS_INCLUDE = machine-dep
22
23 TARGETLIB = libc.a
24 RANLIB = ranlib
25 AR = ar
26 AR_FLAGS = cqv
27
28 #### host and target specific makefile fragments come in here.
29
30 all: $(TARGETLIB)
31
32 subdir_do: $(SUBDIRS) $(TARGETDIRS)
33 for i in $(SUBDIRS); \
34 do \
35 if (cd $(srcdir)/$$i`if [ -d $(srcdir)/$$i.$(target) ] ; \
36 then echo .$(target) ; fi`/$(subdir); \
37 $(MAKE) \
38 "OSLAYER=../$(OSLAYER)" \
39 "TARGETLIB=../$(srcdir)/$(subdir)/$(TARGETLIB)" \
40 "AR=$(AR)" "AR_FLAGS=$(AR_FLAGS)" \
41 "RANLIB=$(RANLIB)" $(DO)) ; \
42 then true ; \
43 else exit 1 ; \
44 fi ;\
45 done
46
47 $(TARGETLIB): FORCE
48 @$(MAKE) subdir_do "DO=all"
49 # $(RANLIB) $(TARGETLIB)
50
51 oldlibc.a: $(SUBDIRS) FORCE
52 @$(MAKE) subdir_do DO=all
53 rm -rf TEMP
54 mkdir TEMP
55 # Extract files from all subdirs, making sure that none overwrites others.
56 cd TEMP; for i in $(SUBDIRS); do\
57 ar x ../$$i/library.a;\
58 chmod a-w *;\
59 done;
60 # Be sure if interrupted, no libc.a exists.
61 rm -f libc.new
62 cd TEMP; ar cq ../libc.new *
63 ranlib libc.new
64 mv libc.new libc.a
65 rm -rf TEMP
66
67 clean:
68 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
69 $(MAKE) subdir_do DO=clean
70
71 install: all install_include install_crt install_gnulib install_lib
72
73 # When installing include files, be sure that machine-dependent
74 # files override machine-independent files.
75 # Might be better to check for collisions? FIXME
76 install_crt:
77 $(MAKE) SUBDIRS=machine-dep DO=install_crt
78
79 install_gnulib:
80 $(MAKE) SUBDIRS=gnulib DO=install_gnulib
81
82 install_include:
83 $(MAKE) SUBDIRS=$(SUBDIRS_INCLUDE) DO=install_include
84
85 install_lib: libc.a
86 cp libc.a $(DESTDIR)/lib/libc.a
87
88 etags tags: TAGS
89
90 TAGS: FORCE
91 etags `$(MAKE) ls`
92
93 ls:
94 @echo Makefile
95 @for i in $(SUBDIRS); \
96 do \
97 (cd $$i; \
98 pwd=`pwd`; \
99 wd=`basename $$pwd`; \
100 for j in `$(MAKE) ls`; \
101 do \
102 echo $$wd/$$j; \
103 done) \
104 done
105
106 FORCE:
107
108 # with the gnu make, this is done automatically.
109
110 Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
111 (cd $(srcdir) ; configure -srcdir=$(srcdir) -host=$(host) $(target) -norecurse)
112
113 #
114 # $Log$
115 # Revision 1.2 1991/04/09 23:52:40 rich
116 # First cut config. builds in place.
117 #
118 # Revision 1.1 1991/04/04 18:56:39 rich
119 # Initial revision
120 #
121 #
122 #
123
124 # end of Makefile.in
This page took 0.035477 seconds and 5 git commands to generate.