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
77 TARGETS
= m68k-aout m68k-coff m68k-vxworks a29k-amd-udi
82 ifeq ($(canonhost
),i386-sco3.2v4
)
83 TARGETS
= $(NATIVE
) i386-aout
93 @echo build started at
`date`
94 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
95 rm -f
/usr
/cygnus
/$(TAG
)
96 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
97 @for i in
$(TARGETS
) ; do \
98 if
[ "$$i" = "native" ] ; then \
99 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
100 echo
"3staging $(canonhost) native" ; \
101 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
102 echo
" completed successfully" ; \
105 echo
"building $(canonhost) cross to $$i" ; \
106 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
107 echo
" completed successfully" ; \
113 @echo build started at
`date`
114 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
115 rm -f
/usr
/cygnus
/$(TAG
)
116 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
117 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
121 @echo build started at
`date`
122 @for i in
$(TARGETS
) ; do \
123 if
[ "$$i" = "native" ] ; then \
124 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
125 echo
"3staging $(canonhost) native" ; \
126 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
127 echo
" completed successfully" ; \
130 echo
"building $(canonhost) cross to $$i:" `date` ; \
131 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
132 echo
" completed successfully" ; \
138 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
139 rm -f
/usr
/cygnus
/$(TAG
)
140 ln
-s
$(INSTALLDIR
) /usr
/cygnus
/$(TAG
)
141 @for i in
$(TARGETS
) ; do \
142 echo
"building $(canonhost) cross to $$i" ; \
143 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
144 echo
" completed successfully" ; \
148 @for i in
$(TARGETS
) ; do \
149 if
[ "$$i" = "native" ] ; then \
150 echo
"config stage1 for $(canonhost)" ; \
151 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
152 echo
" completed successfully" ; \
154 echo
"config $(canonhost) cross to $$i" ; \
155 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
156 echo
" completed successfully" ; \
162 @for i in
$(TARGETS
) ; do \
163 if
[ "$$i" = "native" ] ; then \
164 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
165 echo
" completed successfully" ; \
167 echo
"building $(canonhost) cross to $$i" ; \
168 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
169 echo
" completed successfully" ; \
175 @for i in
$(TARGETS
) ; do \
176 if
[ "$$i" = "native" ] ; then \
177 echo
"building 3stage for $(canonhost)" ; \
178 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
179 echo
" completed successfully" ; \
181 echo
"building $(canonhost) cross to $$i" ; \
182 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
183 echo
" completed successfully" ; \