Add hgcompile scripts

Added hgcompile scripts.
This commit is contained in:
Takashi Iwai 2006-05-12 15:36:52 +02:00
parent ec25bb1219
commit e13da40b0e
27 changed files with 333 additions and 10 deletions

View file

@ -3,7 +3,7 @@ SUBDIRS = examples
bin_PROGRAMS = as10k1
as10k1_SOURCES = as10k1.c parse.c assemble.c macro.c
noinst_HEADERS = as10k1.h list.h parse.h proto.h types.h
EXTRA_DIST = cvscompile output.doc examples/Makefile examples/*.asm depcomp
EXTRA_DIST = hgcompile output.doc examples/Makefile examples/*.asm depcomp
AM_CFLAGS = -fno-strict-aliasing
AUTOMAKE_OPTIONS = foreign

25
as10k1/hgcompile Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
if test "x$AUTOMAKE_DIR" = "x"; then
if test -d /usr/local/share/automake; then
AUTOMAKE_DIR=/usr/local/share/automake
fi
if test -d /usr/share/automake; then
AUTOMAKE_DIR="/usr/share/automake"
fi
fi
for f in install-sh mkinstalldirs missing; do
cp -av $AUTOMAKE_DIR/$f .
done
aclocal $ACLOCAL_FLAGS
automake --foreign --add-missing --copy
touch depcomp
autoconf
export CFLAGS='-O2 -Wall -pipe -g'
echo "CFLAGS=$CFLAGS"
echo "./configure $@"
./configure $@
unset CFLAGS
make