# This is kbuild makefile for use with kernel 2.6 build system
# 
# Usage:
# make -C <path-to-kernel-source> SUBDIRS=$PWD modules
# If you used O=<path-to-build-directory> for kernel build, use it here too

## Note, Makefile.in is needed because "make distclean" removes all Makefiles, 
## even if not generated by configure!


HPI_OBJS = hpiman.o hpifunc.o hpidebug.o  hpimsgx.o hpios_linux.o \
            hpi4000.o hpi6000.o hpi56301.o hpi6205.o  hpidspcd.o


EXTRA_CFLAGS += -DHPI_DEBUG  -DUSE_ASIDSP -I$(src) \
         -DHPI_INCLUDE_4100 -DHPI_INCLUDE_4300 -DHPI_INCLUDE_4500 -DHPI_INCLUDE_5000 \
         -DHPI_INCLUDE_6000 -DHPI_INCLUDE_8700 -DUSE_SPINLOCK -O

obj-$(CONFIG_ASIHPI) += asihpi.o

asihpi-y := hpimod.o $(HPI_OBJS) 


