]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/examples/schneider/Makefile.omk
Fix missing references to clock_gettime for OMK build under Linux.
[orte.git] / orte / examples / schneider / Makefile.omk
index 9339f73fe64bd1eb8d67366cfbd5e2e46984fe49..ddcaab7bd3c56b1196b6ee88f7cdd9d5366abe17 100644 (file)
@@ -1,10 +1,17 @@
 ifeq ($(CONFIG_OC_ETH_ORTE_EXAMPLES),y)
 
+ifeq ($(CONFIG_OC_ETH_ORTE_EXAMPLES_AS_LIBRARY),y)
+INCLUDES += -D MAIN_RENAMED
+lib_LIBRARIES = schneider_subscriber
+else
 utils_PROGRAMS =  schneider_subscriber
+endif
 
 schneider_subscriber_SOURCES = schneider_subscriber.c
 
-lib_LOADLIBES =  orte pthread
+TARGET_LOADLIBES ?= pthread rt
+
+lib_LOADLIBES =  orte $(TARGET_LOADLIBES)
 ifeq ($(TARGET_OS),win32)
 lib_LOADLIBES +=  ws2_32
 endif #TARGET_OS