pg: Add missing dummy stack frames for mcount for x86_64.
[dragonfly.git] / usr.bin / wmake / wmake.sh
blobdfc31c4a5b3625aba6e73f232c536eef77c3bc86
1 #!/bin/sh
3 # $DragonFly: src/usr.bin/wmake/wmake.sh,v 1.3 2006/02/11 10:42:12 corecode Exp $
5 # This script was written by Matt Dillon and has been placed in the
6 # public domain.
8 path=$PWD
9 while [ "$path" != "" ]; do
10 if [ -f $path/Makefile.inc1 ]; then
11 break
13 path=${path%/*}
14 done
15 if [ "$path" = "" ]; then
16 echo "Unable to locate Makefile.inc through parent dirs"
19 escaped_args=`echo -n "$@" | sed -e "s/'/\\'/"`
20 for i in $escaped_args; do
21 case $i in
22 DESTDIR=*)
23 escaped_args="$escaped_args _SHLIBDIRPREFIX=${i#DESTDIR=}"
25 esac
26 done
28 eval `cd $path; make WMAKE_ARGS="'$escaped_args'" -f Makefile.inc1 wmake`