Revert "Device/Driver/LX: Add small delay after baud rate change"
[xcsoar.git] / build / libport.mk
blobef9a8e65676cf0fbb8809c092375f423383e1037
1 PORT_SRC_DIR = $(SRC)/Device/Port
3 PORT_SOURCES = \
4 $(SRC)/Device/Port/Port.cpp \
5 $(SRC)/Device/Port/BufferedPort.cpp \
6 $(SRC)/Device/Port/SocketPort.cpp \
7 $(SRC)/Device/Port/TCPPort.cpp \
8 $(SRC)/Device/Port/K6BtPort.cpp \
9 $(SRC)/Device/Port/NullPort.cpp
11 ifeq ($(HAVE_POSIX),y)
12 PORT_SOURCES += \
13 $(SRC)/Device/Port/TTYEnumerator.cpp \
14 $(SRC)/Device/Port/TTYPort.cpp
15 else
16 PORT_SOURCES += $(SRC)/Device/Port/SerialPort.cpp
17 endif
19 ifeq ($(HAVE_CE),y)
20 PORT_SOURCES += $(SRC)/Device/Port/Widcomm.cpp
21 endif
23 ifneq ($(DEBUG),n)
24 PORT_SOURCES += $(SRC)/Device/Port/DumpPort.cpp
25 endif
27 $(eval $(call link-library,port,PORT))
29 ifeq ($(TARGET),ANDROID)
30 # broken Android headers
31 $(call SRC_TO_OBJ,$(SRC)/Device/Port/SocketPort.cpp): CXXFLAGS += -Wno-cast-align
32 $(call SRC_TO_OBJ,$(SRC)/Device/Port/TCPPort.cpp): CXXFLAGS += -Wno-cast-align
33 endif
35 ifeq ($(HAVE_POSIX),n)
36 # broken mingw32 4.4 headers
37 $(call SRC_TO_OBJ,$(SRC)/Device/Port/SocketPort.cpp): CXXFLAGS += -Wno-sign-compare
38 $(call SRC_TO_OBJ,$(SRC)/Device/Port/TCPPort.cpp): CXXFLAGS += -Wno-sign-compare
39 endif