default_CONFIG = CONFIG_OC_ETH_ORTE=y
+default_CONFIG += CONFIG_OC_ETH_ORTE_SOLIB=n
-ifeq ($(CONFIG_OC_ETH_ORTE),y)
-
-lib_LIBRARIES = orte
+ifeq ($(TARGET_OS),win32)
+renamed_include_HEADERS = \
+../contrib/win_pthread/libpthread.a->../lib/libpthread.a
+endif #TARGET_OS
INCLUDES = -I $(srcdir)/../include
-include_HEADERS = \
-../include/orte.h \
-../include/orte_config_omk_unix.h \
-../include/orte/typedefs_defines_rtps.h \
-../include/orte/defines_api.h \
-../include/orte/typedefs_api.h \
-../include/orte/protos_api.h
-
orte_SOURCES = \
conv.c \
debug.c \
objectEntry.c \
objectEntryTimer.c \
objectUtils.c \
-ORTEAppRecvMetatrafficThread.c \
-ORTEAppRecvUserdataThread.c \
+ORTEAppRecvThread.c \
ORTEAppSendThread.c \
ORTEDomainApp.c \
ORTEPublication.c \
RTPSIssue.c \
sock.c \
ul_gavl.c \
-ul_gavlprim.c
+ul_gavlprim.c \
+cdr.c
+ifeq ($(CONFIG_OC_ETH_ORTE),y)
+lib_LIBRARIES = orte
endif #CONFIG_OC_ETH_ORTE
-#############################################################################
-# RT-Linux version of build
+ifeq ($(CONFIG_OC_ETH_ORTE_SOLIB),y)
+shared_LIBRARIES = orte
+TARGET_LOADLIBES ?= pthread
-default_CONFIG = CONFIG_OC_ETH_ORTE_RTL=n
+lib_LOADLIBES = $(TARGET_LOADLIBES)
+ifeq ($(TARGET_OS),win32)
+lib_LOADLIBES += ws2_32
+endif #TARGET_OS
+endif #CONFIG_OC_ETH_ORTE_SOLIB
-ifeq ($(CONFIG_OC_ETH_ORTE_RTL),y)
+#############################################################################
+# RT-Linux version of build
-rtlinux_LIBRARIES = orte_rt
+default_CONFIG += CONFIG_OC_ETH_ORTE_RTL=n
rtlinux_INCLUDES = -I $(srcdir)/../include
-rtlinux_HEADERS = \
-../include/orte.h \
-../include/orte_config_omk_rtl.h \
-../include/orte/typedefs_defines_rtps.h \
-../include/orte/defines_api.h \
-../include/orte/typedefs_api.h \
-../include/orte/protos_api.h
-
ortert_SOURCES = \
conv.c \
debug.c \
objectEntry.c \
objectEntryTimer.c \
objectUtils.c \
-ORTEAppRecvMetatrafficThread.c \
-ORTEAppRecvUserdataThread.c \
+ORTEAppRecvThread.c \
ORTEAppSendThread.c \
ORTEDomainApp.c \
ORTEPublication.c \
RTPSIssue.c \
sock.c \
ul_gavl.c \
-ul_gavlprim.c
+ul_gavlprim.c \
+cdr.c
+ifeq ($(CONFIG_OC_ETH_ORTE_RTL),y)
+rtlinux_LIBRARIES = orte_rt
rtlinux_MODULES = orte_rt
-
orte_rt_SOURCES = $(ortert_SOURCES)
-
SUBDIRS = rtl
-
endif #CONFIG_OC_ETH_ORTE_RTL