7 echo "You should not use this file but one of"; \
8 echo "platform_mingw32.GNU or platform_cygwin32.GNU"; \
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
17 # Cygwin/MinGW doesn't have rwho
20 # Disable auto-import warnings. The Cygwin/MinGW linker has a problem
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
26 no_hidden_visibility ?= 1
36 # When building shared libraries
37 ifeq ($(shared_libs), 1)
38 ifneq ($(static_libs_only), 1)
48 FLAGS_C_CC += -mthreads
51 ifneq ($(CROSS_COMPILE),)
52 COMPARCH ?= $(CROSS_COMPILE)
57 RC = ${COMPARCH}windres
58 DLLTOOL = ${COMPARCH}dlltool
60 RANLIB = ${COMPARCH}ranlib
73 SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
75 SHLIBBUILD = $(DLLTOOL) --dllname $@ --output-lib $@.a $(VSHOBJS) && \
76 $(SOLINK.cc) -Wl,--enable-auto-image-base -Wl,--out-implib,$@.a \
77 -shared -o $@ $(LDFLAGS) $(VSHOBJS) $(ACE_SHLIBS) $(LIBS)
79 PLATFORM_FL_CPPFLAGS ?=
80 PLATFORM_FL_LIBS ?= -lfltk -lfltk_forms -lfltk_gl -lfltk_images
81 PLATFORM_FL_LDFLAGS ?=
83 PLATFORM_GL_CPPFLAGS ?= -I/usr/X11R6/include
84 PLATFORM_GL_LIBS ?= -lGL
85 PLATFORM_GL_LDFLAGS ?= -L/usr/X11R6/lib
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)
91 # Test for template instantiation, add to SOFLAGS if SONAME set,
92 # add -E to LDFLAGS if using GNU ld
94 include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU