# Copyright (C) 2002 Martin Soto
#
# Use and distribute under the terms of the GNU GPL Version 2

#-------------- Configuration Zone -------------------------------------

# Your favorite C compiler
CC=gcc-3.0

# Optimization flags for the compiler.
OPT_FLAGS=-g -W -Wall

# This should point to the ALSA kernel include
# directory. $(ALSA_INCLUDE)/sound/emu10k1.h should be there and
# correspond to your currently installed version of ALSA.
ALSA_INCLUDE=/home/soto/emu10k1/install/usr/include

# This should point to the include directory in the source libasound
# source tarball.  $(ALSALIB_INCLUDE)/local.h should be there.
ALSALIB_INCLUDE=/home/soto/emu10k1/alsa-lib-0.9.0rc3/include

# Libraries to link with.  It is probably safe to leave this
# untouched.
LIBS=-lasound

#-------------- End of Configuration Zone ------------------------------

CFLAGS= $(OPT_FLAGS) \
	-I$(ALSA_INCLUDE) \
	-I$(ALSALIB_INCLUDE)

all: show-ctrls emu10k1-program

show-ctrls: show-ctrls.o
	$(CC) -o $@ $< $(LIBS)

emu10k1-program: emu10k1-program.o
	$(CC) -o $@ $< $(LIBS)

show-ctrls.o: show-ctrls.c

clean:
	-rm -f show-ctrls emu10k1-program *.o *~
