#
# LiS configuration
#
LIS_HOME = ../..
include $(LIS_HOME)/config.mk

#
# Environment of LINUX means the intent is to link the code into the
# Linux kernel.
#
OPT = -DLINUX

#
# Does the user want to run the queues using bottom half or kernel
# thread.  Set an option to be used when compiling linux-mdep.c
#
ifeq ($(STRMS_QUEUES),b)
OPT += -DUSE_BH
else
OPT += -DUSE_KTHREAD
endif

# Are we compiling to a Linux kernel with module versions?
ifdef CONFIG_MODULES
  ifdef CONFIG_MODVERSIONS
    OPT += -DMODVERSIONS
  endif 
endif 

# Are we compiling LiS as a loadable kernel module?
ifeq ($(CONFIG_STREAMS),m)
  OPT += -DMODULE
endif 

XOBJS = poll.o

include ../mk.bdy

dep: common-dep
	$(CC) -M -DDEP $(HEADDIR)/poll.c >>.depend

