]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/examples/spy/Makefile.omk
Fix missing references to clock_gettime for OMK build under Linux.
[orte.git] / orte / examples / spy / Makefile.omk
index cf15445cbcdd65a6958930959f5104d7ab24374d..a067eb5f7e97cc711d8e84fb50c3fa102924e448 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 = ortespy
+else
 bin_PROGRAMS = ortespy
+endif
 
 ortespy_SOURCES = ortespy.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