EXAMPLE_DIRS  := test latency_calibration mbx  lxrt_latency_calibration 

ifdef CONFIG_RTAI_EXAMPLES
ALL_SUB_DIRS  := $(EXAMPLE_DIRS)
else
ALL_SUB_DIRS  :=
endif
MOD_SUB_DIRS  := $(ALL_SUB_DIRS)
APP_SUB_DIRS  := $(ALL_SUB_DIRS)
SUB_DIRS      := $(ALL_SUB_DIRS)
MOD_LIST_NAME :=

EXTRA_CFLAGS := 

obj-y :=
obj-m :=
obj-n :=
obj-  :=


O_OBJS          := $(sort $(filter-out $(export-objs), $(obj-y)))
OX_OBJS         := $(sort $(filter     $(export-objs), $(obj-y)))
M_OBJS          := $(sort $(filter-out $(export-objs), $(obj-m)))
MX_OBJS         := $(sort $(filter     $(export-objs), $(obj-m)))


ifdef TOPDIR
include $(TOPDIR)/Rules.make
else
all:
	make -C ../.. modules userspace SUBDIRS=rtai_cpp/examples

endif

clean:
	for dir in $(EXAMPLE_DIRS); do make -C $$dir clean; done


