
ignore_subdirs := octave perl

subdirs := lib leds forked forked-lib hardsig ipc latency_calibration \
	many master_buddy msg_clock one pressa qblk fifosound \
	resumefromintr rt_agent sem_clock sound switches testmbx_wp \
	threads traps two unix sched_ext soundmsg aio C++
ifdef CONFIG_RTAI_LXRT_OCTAVE
subdirs += octave
endif
ifdef CONFIG_RTAI_LXRT_RTW
subdirs += rtw
endif

ALL_SUB_DIRS := $(subdirs) rtw
MOD_SUB_DIRS := 
SUB_DIRS     := 

ifdef CONFIG_RTAI_LXRT
SUB_DIRS     += $(subdirs)
MOD_SUB_DIRS += $(subdirs)
endif


EXTRA_CFLAGS := -I. -DLXRT_MODULE -DLINUX_SIGNAL_HANDLER

rtai_lxrt-objs := lxrt.o hash.o msg.o tid.o proxies.o names.o qblk.o \
	usrf.o informed.o registry.o lxrt_table.o signal.o

ifneq ($(CONFIG_RTAI_LXRT),)
  M_OBJS += rtai_lxrt.o
endif

ifdef TOPDIR
include $(TOPDIR)/Rules.make
else
all:
	make -C .. modules SUBDIRS=lxrt
clean:
	make -C .. subclean SUBDIRS=lxrt
endif

rtai_lxrt.o: $(rtai_lxrt-objs)
	$(LD) -r -o $@ $(rtai_lxrt-objs)

