# $Id: Makefile 707 2004-04-14 13:39:03Z gonzo $

# OCTASIC_OBJS=${shell ../oct612x/octasic-helper objects ../oct612x}
OCTASIC_OBJS= ../oct612x/oct6100_adpcm_chan.o ../oct612x/oct6100_channel.o ../oct612x/oct6100_chip_open.o ../oct612x/oct6100_chip_stats.o ../oct612x/oct6100_conf_bridge.o ../oct612x/oct6100_debug.o ../oct612x/oct6100_events.o ../oct612x/oct6100_interrupts.o ../oct612x/oct6100_memory.o ../oct612x/oct6100_miscellaneous.o ../oct612x/oct6100_mixer.o ../oct612x/oct6100_phasing_tsst.o ../oct612x/oct6100_playout_buf.o ../oct612x/oct6100_remote_debug.o ../oct612x/oct6100_tlv.o ../oct612x/oct6100_tone_detection.o ../oct612x/oct6100_tsi_cnct.o ../oct612x/oct6100_tsst.o ../oct612x/octapi_bt0.o ../oct612x/octapi_largmath.o ../oct612x/octapi_llman.o

# OCTASIC_CFLAGS=${shell ../oct612x/octasic-helper cflags ../oct612x} -Wno-undef
OCTASIC_CFLAGS=	-I${.CURDIR}/../oct612x/include -I${.CURDIR}/../oct612x/octdeviceapi -I${.CURDIR}/../oct612x/octdeviceapi/oct6100api -I${.CURDIR}/../oct612x/include/oct6100api

KMOD=		wct4xxp
SRCS=		base.c wct4xxp.h
SRCS+=		device_if.h bus_if.h isa_if.h pci_if.h 
CLEANFILES=	vpmoct128_fw.h vpmoct064_fw.h

.if defined(WITH_VPM)
SRCS+=		vpm450m.c
CFLAGS+=	-DVPM_SUPPORT ${OCTASIC_CFLAGS}
OBJS+=		${OCTASIC_OBJS}
.endif

vpmoct128_fw.h: ../firmware/OCT6114-128D.ima ../tools/fw2h
	../tools/fw2h ../firmware/OCT6114-128D.ima $@

vpmoct064_fw.h: ../firmware/OCT6114-64D.ima ../tools/fw2h
	../tools/fw2h ../firmware/OCT6114-64D.ima $@	

.include <bsd.kmod.mk>
