Convert hda-verb to use automake

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2012-04-20 15:54:49 +02:00
parent f8d648a84b
commit 2996581ce2
4 changed files with 32 additions and 15 deletions

View file

@ -1,15 +0,0 @@
VERSION = 0.4
CC = gcc
CFLAGS = -Wall -O2 -g
hda-verb: hda-verb.o
$(CC) -o $@ hda-verb.o
clean:
rm -f hda-verb *.o
dist:
cd ..; mv hda-verb hda-verb-$(VERSION); \
tar cfz hda-verb-$(VERSION).tar.gz --exclude='.git*' hda-verb-$(VERSION); \
mv hda-verb-$(VERSION) hda-verb

12
hda-verb/Makefile.am Normal file
View file

@ -0,0 +1,12 @@
AUTOMAKE_OPTIONS = 1.3 foreign
bin_PROGRAMS = hda-verb
hda_verb_SOURCES = hda-verb.c
noinst_HEADERS = hda_hwdep.h
EXTRA_DIST = gitcompile README ChangeLog
alsa-dist: distdir
@rm -rf ../distdir/$(MYNAME)
@mkdir -p ../distdir/$(MYNAME)
@cp -RLpv $(distdir)/* ../distdir/$(MYNAME)
@rm -rf $(distdir)

7
hda-verb/configure.ac Normal file
View file

@ -0,0 +1,7 @@
AC_INIT(hda-verb.c)
AM_INIT_AUTOMAKE(hda-verb, 0.4)
AC_PROG_CC
AC_PROG_INSTALL
AC_HEADER_STDC
AC_OUTPUT(Makefile)

13
hda-verb/gitcompile Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
aclocal $ACLOCAL_FLAGS || exit 1
automake --foreign --add-missing || exit 1
autoconf || exit 1
export CFLAGS='-O2 -Wall -pipe -g'
echo "CFLAGS=$CFLAGS"
echo "./configure $@"
./configure $@ || exit 1
unset CFLAGS
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
make || exit 1
fi