#
# Makefile for the APCIE 2200 drivers.
#

# 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
EXTRA_CFLAGS:=-I$(TOPDIR)/include/linux/addidata/ 
else
# use specified location
EXTRA_CFLAGS:=-I$(ADDIDATAINC) 
endif

# Each configuration option enables a list of files.
obj-$(CONFIG_APCIE2200_IOCTL)	+= apcie2200.o

# list of objects that make the module
apcie2200-objs := main.o fs.o procfs.o ioctl.o vtable.o dig_inputs.o kapi_dig_inputs.o dig_outputs.o kapi_dig_outputs.o knowndev.o event.o interrupt.o timer_watchdog.o kapi_timer_watchdog.o


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

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

# Objects that export symbols.
export-objs	:= main.o knowndev.o

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

# Link rules
apcie2200.o: $(apcie2200-objs)
	$(LD) -r -o $@ $(apcie2200-objs)
	
endif
endif
