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
))
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 \
39 sparclite-aout sparclitefrwcompat-aout
43 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
44 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout i386-aout
45 GCC
= gcc
-O
-g
-msoft-float
50 ifeq ($(canonhost
),sparc-sun-solaris2
)
51 TARGETS
= $(NATIVE
) m68k-aout sparc-aout a29k-amd-udi
55 ifeq ($(canonhost
),mips-dec-ultrix
)
56 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout i960-vxworks \
57 sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
61 ifeq ($(canonhost
),mips-sgi-irix4
)
62 TARGETS
= $(NATIVE
) m68k-vxworks a29k-amd-udi
66 ifeq ($(canonhost
),rs6000-ibm-aix
)
67 TARGETS
= $(NATIVE
) m68k-vxworks i960-vxworks m68k-aout
71 ifeq ($(canonhost
),m68k-hp-hpux
)
72 TARGETS
= m68k-vxworks
77 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
78 #TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
79 TARGETS
= m68k-aout i386-aout a29k-amd-udi \
80 i960-vxworks m68k-coff m68k-vxworks \
81 i960-intel-nindy sparc-aout sparc-vxworks \
82 sparclite-aout sparclitefrwcompat-aout
87 ifeq ($(canonhost
),i386-sco3.2v4
)
88 TARGETS
= $(NATIVE
) i386-aout
99 @echo build started at
`date`
100 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
101 rm -f
/usr
/cygnus
/$(TAG
)
102 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
103 @for i in
$(TARGETS
) ; do \
104 if
[ "$$i" = "native" ] ; then \
105 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
106 echo
"3staging $(canonhost) native" ; \
107 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
108 echo
" completed successfully" ; \
111 echo
"building $(canonhost) cross to $$i" ; \
112 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
113 echo
" completed successfully" ; \
119 @echo build started at
`date`
120 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
121 rm -f
/usr
/cygnus
/$(TAG
)
122 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
123 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
127 @echo build started at
`date`
128 @for i in
$(TARGETS
) ; do \
129 if
[ "$$i" = "native" ] ; then \
130 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
131 echo
"3staging $(canonhost) native" ; \
132 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
133 echo
" completed successfully" ; \
136 echo
"building $(canonhost) cross to $$i:" `date` ; \
137 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
138 echo
" completed successfully" ; \
144 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
145 rm -f
/usr
/cygnus
/$(TAG
)
146 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
147 @for i in
$(TARGETS
) ; do \
148 echo
"building $(canonhost) cross to $$i" ; \
149 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
150 echo
" completed successfully" ; \
154 @for i in
$(TARGETS
) ; do \
155 if
[ "$$i" = "native" ] ; then \
156 echo
"config stage1 for $(canonhost)" ; \
157 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
158 echo
" completed successfully" ; \
160 echo
"config $(canonhost) cross to $$i" ; \
161 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
162 echo
" completed successfully" ; \
168 @for i in
$(TARGETS
) ; do \
169 if
[ "$$i" = "native" ] ; then \
170 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
171 echo
" completed successfully" ; \
173 echo
"building $(canonhost) cross to $$i" ; \
174 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
175 echo
" completed successfully" ; \
181 @for i in
$(TARGETS
) ; do \
182 if
[ "$$i" = "native" ] ; then \
183 echo
"building 3stage for $(canonhost)" ; \
184 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
185 echo
" completed successfully" ; \
187 echo
"building $(canonhost) cross to $$i" ; \
188 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
189 echo
" completed successfully" ; \