ifneq ($(KERNELRELEASE),)

# Add your debugging flag (or not) to CFLAGS
ifeq ($(DEBUG),y)
  DEBFLAGS = -O -g -DSHORT_DEBUG # "-O" is needed to expand inlines
else
  DEBFLAGS = -O2
endif

CFLAGS += $(DEBFLAGS)
CFLAGS += -DNATIVE -DEMBEDDED -D$(SW_TARGET_ARCH)
CFLAGS += -I$(SW_COMMON_INSTALL_DEST) -I$(M)


# call from kernel build system
obj-m := ${DRIVER}.o

${DRIVER}-objs := pwi2c_s.o ../../../../../../../sw/lib/ral/le32bit/ral_native.o

endif


