#
# Filter makefile
# Copyright (C) ARM Limited 1998-1999. All rights reserved.
#

# Define root directory

ROOTDIRECTORY	= ../

# Define directory structure needed for making rules/macros

SRC_DIR		= src/

# Define the filter components

FIR		= arm_fir
IIR		= arm_iir
LMS		= arm_lms

# Define the component directory locations

FIR_DIR		= $(SRC_DIR)$(FIR)/
IIR_DIR		= $(SRC_DIR)$(IIR)/
LMS_DIR		= $(SRC_DIR)$(LMS)/

# Define the C object files for both library and executable

LIB_C_OBJECTS	= 		\
	$(OBJDIR)$(FIR)/firc.o	\
	$(OBJDIR)$(IIR)/iirc.o	\
	$(OBJDIR)$(LMS)/lmsc.o	\
	$(OBJDIR)filtestc.o
	
EXE_C_OBJECTS	=		\
	$(OBJDIR)filtermc.o

# Define the Assembler object files for both library and executable

LIB_AS_OBJECTS	=		\
	$(OBJDIR)$(FIR)/firs.o	\
	$(OBJDIR)$(IIR)/iirs.o	\
	$(OBJDIR)$(LMS)/lmss.o
	
EXE_AS_OBJECTS	= 

# Define extra directories to search for included files

INCLUDE_FIR_DIR	= $(FIR_DIR)
INCLUDE_IIR_DIR	= $(IIR_DIR)
INCLUDE_LMS_DIR	= $(LMS_DIR)

# Define the include directories

INCLUSIONS	= 		\
	$(INCLUDE_FIR_DIR),$(INCLUDE_IIR_DIR),$(INCLUDE_LMS_DIR),

# Define the component library to create

LIBRARY 	= $(OBJDIR)fillib.alf

# Define target

BINARY 		= $(OBJDIR)filters.axf

# Define subprojects

SUBPROJS	= 

# Define sub-directories from source

SUBDIRS		= 		\
	$(FIR)			\
	$(IIR)			\
	$(LMS)

# Define the libraries to include

LIBRARIES 	= $(LIBRARY)

# Include the Applications Library makefile

include $(ROOTDIRECTORY)mkapplib

