Merge tag 'v6.5.1'
[xcsoar.git] / build / libos.mk
blobe01c2ef72df01ddc8a6eab4b618d1c35d62537a9
1 # Build rules for the OS specific utility/abstraction library
3 OS_SRC_DIR = $(SRC)/OS
5 OS_SOURCES := \
6 $(OS_SRC_DIR)/Clock.cpp \
7 $(OS_SRC_DIR)/SocketAddress.cpp \
8 $(OS_SRC_DIR)/SocketDescriptor.cpp \
9 $(OS_SRC_DIR)/FileDescriptor.cpp \
10 $(OS_SRC_DIR)/FileMapping.cpp \
11 $(OS_SRC_DIR)/FileUtil.cpp \
12 $(OS_SRC_DIR)/PathName.cpp \
13 $(OS_SRC_DIR)/SystemLoad.cpp
15 ifeq ($(HAVE_POSIX),y)
16 OS_SOURCES += \
17 $(OS_SRC_DIR)/Poll.cpp \
18 $(OS_SRC_DIR)/EventPipe.cpp
19 endif
21 ifeq ($(HAVE_CE),y)
22 OS_SOURCES += $(OS_SRC_DIR)/MemInfo.cpp
23 endif
25 $(eval $(call link-library,libos,OS))
27 ifeq ($(HAVE_POSIX),n)
28 ifeq ($(HAVE_CE),y)
29 OS_LDLIBS += -lwinsock
30 else
31 OS_LDLIBS += -lws2_32
32 endif
33 endif