]> rtime.felk.cvut.cz Git - orte.git/blob - orte/liborte/Makefile.omk
Update of local copy of Windows pthreads library to MinGW-w64 winpthreads.
[orte.git] / orte / liborte / Makefile.omk
1 default_CONFIG = CONFIG_OC_ETH_ORTE=y
2 default_CONFIG += CONFIG_OC_ETH_ORTE_SOLIB=n
3
4 ifeq ($(TARGET_OS),win32)
5 renamed_include_HEADERS = \
6 ../contrib/win_pthread/libpthread.a->../lib/libpthread.a
7 endif #TARGET_OS
8
9 INCLUDES = -I $(srcdir)/../include
10
11 orte_SOURCES = \
12 conv.c \
13 debug.c \
14 event.c \
15 fnmatch.c \
16 htimerNtp.c \
17 objectEntry.c \
18 objectEntryTimer.c \
19 objectUtils.c \
20 ORTEAppRecvThread.c \
21 ORTEAppSendThread.c \
22 ORTEDomainApp.c \
23 ORTEPublication.c \
24 ORTEPublicationTimer.c \
25 ORTESubscription.c \
26 ORTEDomain.c \
27 ORTEDomainMgr.c \
28 ORTEInit.c \
29 ORTEThreadUtils.c \
30 ORTETypeRegister.c \
31 ORTEVerbosity.c \
32 ORTEPattern.c \
33 ORTEMisc.c \
34 parameter.c \
35 RTPSAck.c \
36 RTPSCSTReader.c \
37 RTPSCSTReaderTimer.c \
38 RTPSCSTReaderProc.c \
39 RTPSCSTWriter.c \
40 RTPSCSTWriterTimer.c \
41 RTPSGap.c \
42 RTPSHeader.c \
43 RTPSHeardBeat.c \
44 RTPSInfoDST.c \
45 RTPSInfoREPLY.c \
46 RTPSInfoSRC.c \
47 RTPSInfoTS.c \
48 RTPSPad.c \
49 RTPSUtils.c \
50 RTPSVar.c \
51 RTPSIssue.c \
52 sock.c \
53 ul_gavl.c \
54 ul_gavlprim.c \
55 cdr.c
56
57 ifeq ($(CONFIG_OC_ETH_ORTE),y)
58 lib_LIBRARIES = orte
59 endif #CONFIG_OC_ETH_ORTE
60
61 ifeq ($(CONFIG_OC_ETH_ORTE_SOLIB),y)
62 shared_LIBRARIES = orte
63 TARGET_LOADLIBES ?= pthread
64
65 lib_LOADLIBES = $(TARGET_LOADLIBES)
66 ifeq ($(TARGET_OS),win32)
67 lib_LOADLIBES += ws2_32
68 endif #TARGET_OS
69 endif #CONFIG_OC_ETH_ORTE_SOLIB
70
71 #############################################################################
72 # RT-Linux version of build
73
74 default_CONFIG += CONFIG_OC_ETH_ORTE_RTL=n
75
76 rtlinux_INCLUDES = -I $(srcdir)/../include
77
78 ortert_SOURCES = \
79 conv.c \
80 debug.c \
81 event.c \
82 fnmatch.c \
83 htimerNtp.c \
84 objectEntry.c \
85 objectEntryTimer.c \
86 objectUtils.c \
87 ORTEAppRecvThread.c \
88 ORTEAppSendThread.c \
89 ORTEDomainApp.c \
90 ORTEPublication.c \
91 ORTEPublicationTimer.c \
92 ORTESubscription.c \
93 ORTEDomain.c \
94 ORTEDomainMgr.c \
95 ORTEInit.c \
96 ORTEThreadUtils.c \
97 ORTETypeRegister.c \
98 ORTEVerbosity.c \
99 ORTEPattern.c \
100 ORTEMisc.c \
101 parameter.c \
102 RTPSAck.c \
103 RTPSCSTReader.c \
104 RTPSCSTReaderTimer.c \
105 RTPSCSTReaderProc.c \
106 RTPSCSTWriter.c \
107 RTPSCSTWriterTimer.c \
108 RTPSGap.c \
109 RTPSHeader.c \
110 RTPSHeardBeat.c \
111 RTPSInfoDST.c \
112 RTPSInfoREPLY.c \
113 RTPSInfoSRC.c \
114 RTPSInfoTS.c \
115 RTPSPad.c \
116 RTPSUtils.c \
117 RTPSVar.c \
118 RTPSIssue.c \
119 sock.c \
120 ul_gavl.c \
121 ul_gavlprim.c \
122 cdr.c
123
124 ifeq ($(CONFIG_OC_ETH_ORTE_RTL),y)
125 rtlinux_LIBRARIES = orte_rt
126 rtlinux_MODULES = orte_rt
127 orte_rt_SOURCES = $(ortert_SOURCES)
128 SUBDIRS = rtl
129 endif #CONFIG_OC_ETH_ORTE_RTL