-lib_LIBRARIES = orte
+default_CONFIG = CONFIG_OC_ETH_ORTE=y
+
+ifeq ($(CONFIG_OC_ETH_ORTE),y)
-INCLUDES = -I $(srcdir)/../include -DORTE_OMK_UNIX
+lib_LIBRARIES = orte
-include_HEADERS = \
-../include/orte_api.h \
-../include/typedefs_defines_rtps.h \
-../include/defines_api.h \
-../include/typedefs_api.h \
-../include/protos_api.h
+INCLUDES = -I $(srcdir)/../include
orte_SOURCES = \
conv.c \
ul_gavl.c \
ul_gavlprim.c
+endif #CONFIG_OC_ETH_ORTE
+
#############################################################################
# RT-Linux version of build
-rtlinux_LIBRARIES = orte_rt
+default_CONFIG += CONFIG_OC_ETH_ORTE_RTL=n
+
+ifeq ($(CONFIG_OC_ETH_ORTE_RTL),y)
-rtlinux_INCLUDES = -I $(srcdir)/../include -DORTE_OMK_RTL
+rtlinux_LIBRARIES = orte_rt
-rtlinux_HEADERS = \
-../include/orte_api.h \
-../include/typedefs_defines_rtps.h \
-../include/defines_api.h \
-../include/typedefs_api.h \
-../include/protos_api.h
+rtlinux_INCLUDES = -I $(srcdir)/../include
-orte_rt_SOURCES = \
+ortert_SOURCES = \
conv.c \
debug.c \
event.c \
ul_gavl.c \
ul_gavlprim.c
-rtlinux_MODULES = rt_orte
+rtlinux_MODULES = orte_rt
-rt_orte_SOURCES = $(orte_rt_SOURCES)
+orte_rt_SOURCES = $(ortert_SOURCES)
SUBDIRS = rtl
+
+endif #CONFIG_OC_ETH_ORTE_RTL