1 # Build all of the targets for any given host.....
3 # This file is going to be ugly. It will be VERY specific to the
4 # Cygnus environment and build-process.
9 error
:; @echo You must set the variable
\"host
\" to use this Makefile
; exit
1
12 # the rest of the makefile
22 INSTALLDIR
= /cirdan
/taxes
/devo-test
/$(TAG
)
27 log
= 1>$(canonhost
)-build-log
2>&1
28 tlog
= 1> $(canonhost
)-x-
$$i-build
-log
2>&1
30 canonhost
:= $(shell $(TREE
)/config.sub
$(host
))
31 ifeq ($(canonhost
),i386-unknown-sco3.2v4
)
32 canonhost
:= i386-sco3.2v4
35 ifeq ($(canonhost
),sparc-sun-sunos4.1
.1)
36 TARGETS
= $(NATIVE
) m68k-aout i386-aout a29k-amd-udi \
37 i960-vxworks m68k-coff m68k-vxworks \
38 i960-intel-nindy sparc-aout sparc-vxworks
42 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
43 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout i386-aout
44 GCC
= gcc
-O
-g
-msoft-float
48 ifeq ($(canonhost
),sparc-sun-solaris2
)
49 TARGETS
= $(NATIVE
) m68k-aout sparc-aout a29k-amd-udi
53 ifeq ($(canonhost
),mips-dec-ultrix
)
54 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout i960-vxworks \
55 sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
59 ifeq ($(canonhost
),mips-sgi-irix4
)
60 TARGETS
= $(NATIVE
) m68k-vxworks a29k-amd-udi
64 ifeq ($(canonhost
),rs6000-ibm-aix
)
65 TARGETS
= $(NATIVE
) m68k-vxworks i960-vxworks m68k-aout
69 ifeq ($(canonhost
),m68k-hp-hpux
)
70 TARGETS
= m68k-vxworks
75 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
76 TARGETS
= m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
81 ifeq ($(canonhost
),i386-sco3.2v4
)
82 TARGETS
= $(NATIVE
) i386-aout
92 @echo build started at
`date`
93 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
94 rm -f
/usr
/cygnus
/$(TAG
)
95 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
96 @for i in
$(TARGETS
) ; do \
97 if
[ "$$i" = "native" ] ; then \
98 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
99 echo
"3staging $(canonhost) native" ; \
100 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
101 echo
" completed successfully" ; \
104 echo
"building $(canonhost) cross to $$i" ; \
105 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
106 echo
" completed successfully" ; \
112 @echo build started at
`date`
113 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
114 rm -f
/usr
/cygnus
/$(TAG
)
115 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
116 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
120 @echo build started at
`date`
121 @for i in
$(TARGETS
) ; do \
122 if
[ "$$i" = "native" ] ; then \
123 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
124 echo
"3staging $(canonhost) native" ; \
125 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
126 echo
" completed successfully" ; \
129 echo
"building $(canonhost) cross to $$i:" `date` ; \
130 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
131 echo
" completed successfully" ; \
137 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
138 rm -f
/usr
/cygnus
/$(TAG
)
139 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
140 @for i in
$(TARGETS
) ; do \
141 echo
"building $(canonhost) cross to $$i" ; \
142 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
143 echo
" completed successfully" ; \
147 @for i in
$(TARGETS
) ; do \
148 if
[ "$$i" = "native" ] ; then \
149 echo
"config stage1 for $(canonhost)" ; \
150 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
151 echo
" completed successfully" ; \
153 echo
"config $(canonhost) cross to $$i" ; \
154 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
155 echo
" completed successfully" ; \
161 @for i in
$(TARGETS
) ; do \
162 if
[ "$$i" = "native" ] ; then \
163 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
164 echo
" completed successfully" ; \
166 echo
"building $(canonhost) cross to $$i" ; \
167 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
168 echo
" completed successfully" ; \
174 @for i in
$(TARGETS
) ; do \
175 if
[ "$$i" = "native" ] ; then \
176 echo
"building 3stage for $(canonhost)" ; \
177 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
178 echo
" completed successfully" ; \
180 echo
"building $(canonhost) cross to $$i" ; \
181 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
182 echo
" completed successfully" ; \