summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLauri Leukkunen <lle@rahina.org>2006-12-26 16:18:42 +0200
committerLauri Leukkunen <lleukkun@leka.rahina.org>2006-12-26 16:18:42 +0200
commitf849d08d736790ade8eb8edd2569bf5c1eb8feb8 (patch)
tree78b3a4326c6c5dbdca8912eb2c249239a753928d /Makefile
parent2c10ab33f9e7c6332ab83cc16ac180418e202304 (diff)
* add host-gcc support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec2d9c3..e57e4c2 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,8 @@ build: configure
$(ll_toplevel_build)
@echo Build completed successfully!
+gcc_bins = addr2line,ar,as,cc,c++,c++filt,cpp,g++,gcc,gcov,gdb,gdbtui,gprof,ld,nm,objcopy,objdump,ranlib,rdi-stub,readelf,run,size,strings,strip
+
install: build
install -d -m 755 $(prefix)/bin
install -d -m 755 $(prefix)/lib
@@ -38,7 +40,9 @@ install: build
install -c -m 644 redir_scripts/main.lua $(prefix)/share/scratchbox2/redir_scripts/main.lua
install -c -m 644 redir_scripts/parts/default.lua $(prefix)/share/scratchbox2/redir_scripts/parts/default.lua
install -c -m 644 etc/sb2.config.sample $(prefix)/share/scratchbox2/sb2.config.sample
-
+ @for f in $(prefix)/bin/host-{$(gcc_bins)}; do \
+ ln -sf sb_gcc_wrapper $$f; \
+ done
CLEAN_FILES = $(targets)