Support VPATH builds.

committer: mfx <mfx> 979143860 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2001-01-10 16:24:20 +00:00
parent fd81cd2ae0
commit 5f3bdaeebe
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ BRANDELF = perl -w $(srcdir)/scripts/brandelf.pl
O2BIN = perl -w $(srcdir)/scripts/o2bin.pl O2BIN = perl -w $(srcdir)/scripts/o2bin.pl
SETFOLD = /bin/sh $(srcdir)/scripts/setfold.sh SETFOLD = /bin/sh $(srcdir)/scripts/setfold.sh
##STRIPELF = perl -w $(srcdir)/scripts/stripelf.pl ##STRIPELF = perl -w $(srcdir)/scripts/stripelf.pl
STRIPELF = $(srcdir)/util/sstrip/sstrip STRIPELF = ./util/sstrip/sstrip
# Use gcc 2.95.2 for smallest code. # Use gcc 2.95.2 for smallest code.
CC_LINUX_CFLAGS = -Wall -W -Wcast-align -Wcast-qual -Wwrite-strings CC_LINUX_CFLAGS = -Wall -W -Wcast-align -Wcast-qual -Wwrite-strings
+2 -1
View File
@@ -36,7 +36,8 @@ file="$1"
bindir=`echo "$0" | sed -e 's|[^/][^/]*$||'` bindir=`echo "$0" | sed -e 's|[^/][^/]*$||'`
bindir=`cd "$bindir" && pwd` bindir=`cd "$bindir" && pwd`
sstrip="$bindir/../util/sstrip/sstrip" sstrip="./util/sstrip/sstrip"
test -x "$sstrip" || sstrip="$bindir/../util/sstrip/sstrip"
# get address of symbol "fold_begin" # get address of symbol "fold_begin"
fold=`nm -f bsd "$file" | grep fold_begin | sed 's/^0*\([0-9a-fA-F]*\).*/0x\1/'` fold=`nm -f bsd "$file" | grep fold_begin | sed 's/^0*\([0-9a-fA-F]*\).*/0x\1/'`
+1 -1
View File
@@ -1,7 +1,7 @@
# Makefile for sstrip # Makefile for sstrip
sstrip: sstrip.c sstrip: sstrip.c
gcc -O2 -g -Wall -W -o sstrip sstrip.c gcc -O2 -g -Wall -W -o sstrip $<
clean: clean:
rm -f sstrip rm -f sstrip