#
#    Copyright (C) 2009-2010  Varadachari Sudan - American Megatrends Inc.
# 
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
# 
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
# 
#    You should have received a copy of the GNU General Public License along
#    with this program; if not, write to the Free Software Foundation, Inc.,
#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

DEBUG  := n
TARGET := videocap
OBJS   := mmap.o capmain.o ioctl.o proc.o cap90xx.o dma90xx.o iohndlr.o profile.o capture.o

EXTRA_CFLAGS += -I$(PWD)/../include -I$(PWD)/../../../../common/include/global 
EXTRA_CFLAGS += -I$(PWD)/../../../../common/include/soc -I$(PWD)/..
EXTRA_CFLAGS += -I$(PWD)/../helper  -I$(PWD)
EXTRA_CFLAGS += -Iibmc/include                                                                                                    
#EXTRA_CFLAGS += -include $(PROJDIR)/$(BUILD_DIR)/projdef.h

#---------------- Do not modify any thing below this line ------------------------

ifeq ($(DEBUG),y)
  DEBFLAGS = -O -g -DDEBUG # "-O" is needed to expand inlines
else
  DEBFLAGS = -O2
endif
EXTRA_CFLAGS += $(DEBFLAGS)

obj-$(CONFIG_IBMC_VIDEOCAP)	:= $(TARGET).o
$(TARGET)-objs := $(OBJS)
