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
/justice
/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
))
32 ifeq ($(canonhost
),sparc-sun-sunos4.1
.1)
33 TARGETS
= $(NATIVE
) m68k-aout i386-aout a29k-amd-udi \
34 i960-vxworks m68k-coff m68k-vxworks \
35 i960-intel-nindy sparc-aout sparc-vxworks
39 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
40 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout i386-aout
41 GCC
= gcc
-O
-g
-msoft-float
45 ifeq ($(canonhost
),sparc-sun-solaris2
)
46 TARGETS
= $(NATIVE
) m68k-aout sparc-aout a29k-amd-udi
50 ifeq ($(canonhost
),mips-dec-ultrix
)
51 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout i960-vxworks \
52 sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
57 ifeq ($(canonhost
),mips-sgi-irix4
)
58 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout
62 ifeq ($(canonhost
),rs6000-ibm-aix
)
63 TARGETS
= $(NATIVE
) m68k-vxworks i960-vxworks m68k-aout
68 ifeq ($(canonhost
),m68k-hp-hpux
)
69 TARGETS
= m68k-vxworks
75 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
76 TARGETS
= $(NATIVE
) m68k-aout m68k-vxworks i960-vxworks
88 @echo build started at
`date`
89 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
90 rm -f
/usr
/cygnus
/$(TAG
)
91 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
92 @for i in
$(TARGETS
) ; do \
93 if
[ "$$i" = "native" ] ; then \
94 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
95 echo
"3staging $(canonhost) native" ; \
96 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(host
)-stamp-3stage-done
$(log
) && \
97 echo
" completed successfully" ; \
100 echo
"building $(canonhost) cross to $$i" ; \
101 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
102 echo
" completed successfully" ; \
108 @echo build started at
`date`
109 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
110 rm -f
/usr
/cygnus
/$(TAG
)
111 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
112 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(host
)-stamp-3stage-done
$(log
)
116 @echo build started at
`date`
117 @for i in
$(TARGETS
) ; do \
118 if
[ "$$i" = "native" ] ; then \
119 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
120 echo
"3staging $(canonhost) native" ; \
121 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(host
)-stamp-3stage-done
$(log
) && \
122 echo
" completed successfully" ; \
125 echo
"building $(canonhost) cross to $$i" ; \
126 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
127 echo
" completed successfully" ; \
133 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
134 rm -f
/usr
/cygnus
/$(TAG
)
135 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
136 @for i in
$(TARGETS
) ; do \
137 echo
"building $(canonhost) cross to $$i" ; \
138 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
139 echo
" completed successfully" ; \
143 @for i in
$(TARGETS
) ; do \
144 if
[ "$$i" = "native" ] ; then \
145 echo
"config stage1 for $(canonhost)" ; \
146 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
147 echo
" completed successfully" ; \
149 echo
"config $(canonhost) cross to $$i" ; \
150 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
151 echo
" completed successfully" ; \
157 @for i in
$(TARGETS
) ; do \
158 if
[ "$$i" = "native" ] ; then \
159 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
160 echo
" completed successfully" ; \
162 echo
"building $(canonhost) cross to $$i" ; \
163 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
164 echo
" completed successfully" ; \
170 @for i in
$(TARGETS
) ; do \
171 if
[ "$$i" = "native" ] ; then \
172 echo
"building 3stage for $(canonhost)" ; \
173 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
174 echo
" completed successfully" ; \
176 echo
"building $(canonhost) cross to $$i" ; \
177 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
178 echo
" completed successfully" ; \