Debian Codegraph @

include/makeinclude/platform_gnuwin32_common.GNU

raw
1 # -*- Makefile -*-
2
3 ifneq ($(mingw32),1)
4 ifneq ($(cygwin32),1)
5 fail := \
6 $(shell \
7 echo "You should not use this file but one of"; \
8 echo "platform_mingw32.GNU or platform_cygwin32.GNU"; \
9 exit 1)
10 endif
11 endif
12
13 # Cygwin/MinGW doesn't allow to add the version number of ACE to the dll name
14 # because ace.dll.6.0.1 isn't a valid dll name
15 versioned_so = 0
16
17 # Cygwin/MinGW doesn't have rwho
18 rwho = 0
19
20 # Disable auto-import warnings. The Cygwin/MinGW linker has a problem
21 # with imports
22 # See https://sourceforge.net/tracker/?func=detail&atid=102435&aid=683455&group_id=2435
23 # for the details why to do this.
24 LDFLAGS += -Wl,--enable-auto-import
25
26 no_hidden_visibility ?= 1
27
28 winsock2 ?= 1
29 debug ?= 1
30 optimize ?= 1
31 threads ?= 1
32
33 cpumodelflag ?= 0
34 tunemodelflag ?= 1
35
36 # When building shared libraries
37 ifeq ($(shared_libs), 1)
38 ifneq ($(static_libs_only), 1)
39 inline ?= 0
40 endif
41 endif
42
43 ifeq ($(debug),0)
44 CPPFLAGS += -DNDEBUG
45 endif
46
47 ifeq ($(threads),1)
48 FLAGS_C_CC += -mthreads
49 endif # threads
50
51 ifneq ($(CROSS_COMPILE),)
52 COMPARCH ?= $(CROSS_COMPILE)
53 endif
54
55 CC = ${COMPARCH}gcc
56 CXX = ${COMPARCH}g++
57 RC = ${COMPARCH}windres
58 DLLTOOL = ${COMPARCH}dlltool
59 AR = ${COMPARCH}ar
60 RANLIB = ${COMPARCH}ranlib
61
62 DCFLAGS += -g
63 DCCFLAGS += -g
64 DLD = $(CXX)
65 LD = $(CXX)
66 OCFLAGS += -O3
67 OCCFLAGS += -O3
68 ARFLAGS = rsuv
69 SOEXT = dll
70 EXEEXT = .exe
71 RC_OUTPUT_FLAG = -o
72
73 SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
74
75 SHLIBBUILD = $(DLLTOOL) --dllname $@ --output-lib [email protected] $(VSHOBJS) && \
76 $(SOLINK.cc) -Wl,--enable-auto-image-base -Wl,--out-implib,[email protected] \
77 -shared -o $@ $(LDFLAGS) $(VSHOBJS) $(ACE_SHLIBS) $(LIBS)
78
79 PLATFORM_FL_CPPFLAGS ?=
80 PLATFORM_FL_LIBS ?= -lfltk -lfltk_forms -lfltk_gl -lfltk_images
81 PLATFORM_FL_LDFLAGS ?=
82
83 PLATFORM_GL_CPPFLAGS ?= -I/usr/X11R6/include
84 PLATFORM_GL_LIBS ?= -lGL
85 PLATFORM_GL_LDFLAGS ?= -L/usr/X11R6/lib
86
87 PLATFORM_WX_CPPFLAGS ?= $(shell wx-config --cxxflags) -I/usr/local/include
88 PLATFORM_WX_LIBS ?= $(shell wx-config --libs)
89 PLATFORM_WX_LDFLAGS ?= $(shell wx-config --ldflags)
90
91 # Test for template instantiation, add to SOFLAGS if SONAME set,
92 # add -E to LDFLAGS if using GNU ld
93 #
94 include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
95
96 PRELIB = @true