# $Id: Makefile,v 1.29 2004/02/05 03:33:25 cochran Exp $

ifneq ($(KERNELRELEASE),)

ifdef CONFIG_EXAUDIO_ORIG_FIRM
EXTRA_CFLAGS += -DORIG_FIRMWARE=1
endif

obj-$(CONFIG_EXAUDIO) += exaudio.o 
obj-$(CONFIG_EXAUDIO_REMOTE) += exaudio_remote.o

exaudio-objs := audiofunc.o dma.o mixer.o
exaudio_remote-objs := remote.o

else

KERNEL_SRC = /lib/modules/$(shell uname -r)/build
CC = gcc
CFLAGS = -Wall

all: ac3mode modules

ac3mode: ac3mode.c

modules:
	$(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(shell pwd) modules

endif

