# the ADDIDATAINCLUDE variable may hold the path to the addidata-specific include directory
ifeq ($(ADDIDATAINC),)
# include directory has not been specified. suppose we are located inside the Linux kernel source tree
ADDI_CFLAGS:=-I$(TOPDIR)/include/linux/addidata/ 
else
# use specified location
ADDI_CFLAGS:=-I$(ADDIDATAINC) 
endif

ADDI_CFLAGS+=-D_ADDI_NO_WIN32_COMPAT

# Each configuration option enables a list of files.
# this option are sets in the _makefile too.
obj-$(CONFIG_APCI3600_SAMPLE00) += ksample00.o
obj-$(CONFIG_APCI3600_SAMPLE03) += ksample03.o
obj-$(CONFIG_APCI3600_SAMPLE06) += ksample06.o
obj-$(CONFIG_APCI3600_SAMPLE07) += ksample07.o
obj-$(CONFIG_APCI3600_SAMPLE08) += ksample08.o
obj-$(CONFIG_APCI3600_SAMPLE09) += ksample09.o
obj-$(CONFIG_APCI3600_SAMPLE10) += ksample10.o
obj-$(CONFIG_APCI3600_SAMPLE11) += ksample11.o
obj-$(CONFIG_APCI3600_SAMPLE12) += ksample12.o
obj-$(CONFIG_APCI3600_SAMPLE13) += ksample13.o


# list of objects that make the module
sample00-objs := ksample00.o
sample03-objs := ksample03.o
sample06-objs := ksample06.o
sample07-objs := ksample07.o
sample08-objs := ksample08.o
sample09-objs := ksample09.o
sample10-objs := ksample10.o
sample11-objs := ksample11.o
sample12-objs := ksample12.o
sample13-objs := ksample13.o


# Kernel build flags: ccflags-y and ldflags-y were introduced in 2008 as the
# recommended approach. Some kernel 5.x versions already enforce these flags.
# For compatibility: kernels < 5 use EXTRA_CFLAGS, kernels >= 5 use ccflags-y/ldflags-y
ifeq ($(shell test $(VERSION) -lt 5; echo $$?),0)
EXTRA_CFLAGS+=$(ADDI_CFLAGS)
EXTRA_LDFLAGS+=$(ADDI_LDFLAGS)
else
ccflags-y :=$(ADDI_CFLAGS)
ldflags-y :=$(ADDI_LDFLAGS)
endif

# KERNEL 2.4 ------------------------------------------
ifeq ($(VERSION),2)
ifeq ($(PATCHLEVEL),4)

# The target object and module list name.
O_TARGET	:= 

# Objects that export symbols.
export-objs	:= 

# The global Rules.make.
include $(TOPDIR)/Rules.make

endif
endif
