Revision 19161,
1.3 KB
checked in by ghudson, 21 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.
|
Rev | Line | |
---|
[19161] | 1 | # $Id: Makefile.athena,v 1.23 2003-04-04 17:26:46 ghudson Exp $ |
---|
[9152] | 2 | |
---|
| 3 | SHELL=/bin/sh |
---|
| 4 | |
---|
[18487] | 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.) |
---|
[14492] | 13 | dist: |
---|
[18492] | 14 | mkdir .src |
---|
[18487] | 15 | mv * .src |
---|
| 16 | mv .src src |
---|
| 17 | mv src/Makefile.athena . |
---|
| 18 | mv src/athena-version . |
---|
| 19 | mv src/compiler . |
---|
[19013] | 20 | [ -f src/do.sh ] && mv src/do.sh . || : |
---|
[18492] | 21 | mkdir obj |
---|
[14492] | 22 | |
---|
[11307] | 23 | # We can't use the Athena config.site file because it specifies |
---|
| 24 | # cc to be gcc. |
---|
[9372] | 25 | prepare: |
---|
[18487] | 26 | rm -f obj/config.cache |
---|
[18995] | 27 | cd obj && . ../compiler && CONFIG_SHELL=/bin/ksh CC=$$cc \ |
---|
[19161] | 28 | ../src/configure --prefix=/usr/gcc --disable-shared |
---|
[9152] | 29 | |
---|
| 30 | clean: |
---|
[18487] | 31 | cd obj && ${MAKE} clean |
---|
[9152] | 32 | |
---|
| 33 | all: |
---|
[19142] | 34 | cd obj && CONFIG_SHELL=/bin/ksh ${MAKE} bootstrap SHELL=/bin/ksh |
---|
[9152] | 35 | |
---|
| 36 | check: |
---|
| 37 | |
---|
[14577] | 38 | install: force |
---|
[11577] | 39 | mkdir -p "$$SRVD/usr" |
---|
[19161] | 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 |
---|
[14577] | 45 | |
---|
| 46 | force: |
---|
Note: See
TracBrowser
for help on using the repository browser.