DEBUG  := n
TARGET := i2c-pilot-ii

# Entry points
OBJS := i2c-hardware.o i2c-data.o i2c-module.o i2c-recovery.o i2c-transfer.o i2c-interrupt.o

EXTRA_CFLAGS += -I$(PWD)/../include -I$(PWD)/../../../../common/include/global
EXTRA_CFLAGS += -I$(PWD)/../../../../common/include/i2c
EXTRA_CFLAGS += -I$(PWD)/include -I$(PWD)/arch
EXTRA_CFLAGS += -Wall -Werror
EXTRA_CFLAGS +=  -DI2C_EXTENDED_CMDS

#---------------- 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)

MODULE := $(TARGET).ko
ifneq ($(KERNELRELEASE),)
obj-m	:= $(TARGET).o
$(TARGET)-objs := $(OBJS)
endif

ifndef TOPDIR
TOPDIR  := $(shell cd ../../../../../..; pwd)
endif
-include $(TOPDIR)/development/rules/Rules.make.drivers
