Revision 19161,
1.3 KB
checked in by ghudson, 22 years ago
(diff) |
Install into /usr/gcc, but make symlinks from /usr/athena/bin. This
is so the compiler doesn't search /usr/athena/include and
/usr/athena/lib for headers and libraries.
|
Line | |
---|
1 | # $Id: Makefile.athena,v 1.23 2003-04-04 17:26:46 ghudson Exp $ |
---|
2 | |
---|
3 | SHELL=/bin/sh |
---|
4 | |
---|
5 | # The install notes strongly recommend we build in an objdir which is |
---|
6 | # neither equal to nor underneath the srcdir. We've seen complex |
---|
7 | # "gmake bootstrap" failures when we don't do this. |
---|
8 | |
---|
9 | # If we knew this coming into the game, we might import the gcc |
---|
10 | # sources into third/gcc/src. But we didn't, and moving stuff around |
---|
11 | # in CVS is expensive. So we'll move it around here. (Which means |
---|
12 | # we have to remember what stuff is ours and move it back.) |
---|
13 | dist: |
---|
14 | mkdir .src |
---|
15 | mv * .src |
---|
16 | mv .src src |
---|
17 | mv src/Makefile.athena . |
---|
18 | mv src/athena-version . |
---|
19 | mv src/compiler . |
---|
20 | [ -f src/do.sh ] && mv src/do.sh . || : |
---|
21 | mkdir obj |
---|
22 | |
---|
23 | # We can't use the Athena config.site file because it specifies |
---|
24 | # cc to be gcc. |
---|
25 | prepare: |
---|
26 | rm -f obj/config.cache |
---|
27 | cd obj && . ../compiler && CONFIG_SHELL=/bin/ksh CC=$$cc \ |
---|
28 | ../src/configure --prefix=/usr/gcc --disable-shared |
---|
29 | |
---|
30 | clean: |
---|
31 | cd obj && ${MAKE} clean |
---|
32 | |
---|
33 | all: |
---|
34 | cd obj && CONFIG_SHELL=/bin/ksh ${MAKE} bootstrap SHELL=/bin/ksh |
---|
35 | |
---|
36 | check: |
---|
37 | |
---|
38 | install: force |
---|
39 | mkdir -p "$$SRVD/usr" |
---|
40 | cd obj && ${MAKE} install "prefix=$$SRVD/usr/gcc" SHELL=/bin/ksh |
---|
41 | mkdir -p "$$SRVD/usr/athena/bin" |
---|
42 | cd "$$SRVD/usr/gcc/bin" && for f in *; do \ |
---|
43 | rm -f ../../athena/bin/$$f && \ |
---|
44 | ln -s ../../gcc/bin/$$f ../../athena/bin/$$f; done |
---|
45 | |
---|
46 | force: |
---|
Note: See
TracBrowser
for help on using the repository browser.