summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_cegcc.GNU
blob: a04d56dab38d9d8fc606fb1c67e132c8da3233e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $Id$
#
# This file should allow to build ACE for Windows CE with GCC tools.
#
# Don't forget to define the ACE_ROOT environment variable!
#

#
# Chose your target CPU (by default we set it to ARM. In your
# platform_macros.GNU file you can override this to pentium, i486 or i386
#
TCPU ?= arm

cygwin32 = 1

# Cygwin doesn't have rwho
rwho = 0

# Cygwin doesn't allow to add the version number of ACE to the dll name
# because fe ace.dll.5.2.3 isn't a valid dll name
versioned_so=0

ACE_CE_VER ?= 0x600

qos ?= 1

# Disable auto-import warnings. The Cygwin linker has a problem with imports
# See https://sourceforge.net/tracker/?func=detail&atid=102435&aid=683455&group_id=2435
# for the details why to do this.
LDFLAGS += -Wl,--enable-auto-import
CPPFLAGS += -DACE_HAS_CEGCC 

CPPFLAGS += -D_WIN32_WCE=$(ACE_CE_VER) -DUNICODE -D_UNICODE -D_WINDOWS -DCEVER -DWIN32 -D_WINSOCKAPI_
RCFLAGS += -D_WIN32_WCE=$(ACE_CE_VER) -DUNICODE -D_UNICODE -D_WINDOWS -DCEVER -DWIN32 -D_WINSOCKAPI_ -D_WIN32_IE=0x0500

cpumodelflag=0
tunemodelflag=0

COMPARCH ?= i386-mingw32ce-
#COMPARCH ?= arm-wince-mingw32ce-

LIBS += -lcoredll -lmingw32 -lmingwex -lws2 -lsupc++ -liphlpapi

no_hidden_visibility ?= 1
qos ?= 1

ifdef COMSPEC
  HOST_EXE_EXT = .exe
endif

ifneq (,$(HOST_ROOT))
TAO_IDLFLAGS += -g $(HOST_ROOT)/bin/ace_gperf
TAO_IDL = $(HOST_ROOT)/bin/tao_idl$(HOST_EXE_EXT)
TAO_IDL3_TO_IDL2 = $(HOST_ROOT)/TAO/CIAO/bin/tao_idl3_to_idl2$(HOST_EXE_EXT)
TAO_IDL_DEP = $(TAO_IDL)
TAO_IDL3_TO_IDL2_DEP = $(TAO_IDL3_TO_IDL2)
else
# Append the HOST_EXE_EXT if it's not already there
TAO_IDL_DEP = $(TAO_IDL:$(HOST_EXE_EXT)=)$(HOST_EXE_EXT)
TAO_IDL3_TO_IDL2_DEP = $(TAO_IDL3_TO_IDL2:$(HOST_EXE_EXT)=)$(HOST_EXE_EXT)
endif

include $(ACE_ROOT)/include/makeinclude/platform_gnuwin32_common.GNU