]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/liborte/Makefile.omk
OMK updated
[orte.git] / orte / liborte / Makefile.omk
index c7c09b6fd2b606b8e3ca1ff7db5160dbf2627a62..f2508fdd09a59cdc5c89868934734d56fc6c7103 100644 (file)
@@ -1,13 +1,10 @@
-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 \
@@ -55,21 +52,20 @@ sock.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 \
@@ -115,8 +111,10 @@ sock.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