5 ## See /usr/ports/Mk/bsd.port.mk for sample usage of the OSVERSION
6 ## variable, especially with respect to defining the correct compiler
8 OSVERSION := $(shell sysctl -n kern.osreldate)
9 OSMAJOR := $(firstword $(subst ., ,$(shell sysctl -n kern.osrelease)))
16 ifneq ($(filter 10 11,$(OSMAJOR)),)
19 CCFLAGS += -fdelayed-template-parsing
27 CPPFLAGS += -I/usr/local/include
29 DCCFLAGS += $(DCFLAGS)
32 LDFLAGS += -L/usr/local/lib
41 FLAGS_C_CC += -pthread
45 PLATFORM_X11_CPPFLAGS = -I/usr/X11R6/include
46 PLATFORM_X11_LIBS = -lX11
47 PLATFORM_X11_LDFLAGS = -L/usr/X11R6/lib
49 PLATFORM_XT_CPPFLAGS =
50 PLATFORM_XT_LIBS = -lXt
53 PLATFORM_FL_CPPFLAGS =
54 PLATFORM_FL_LIBS = -lfltk -lfltk_forms -lfltk_gl
57 PLATFORM_GL_CPPFLAGS = -I/usr/X11R6/include
58 PLATFORM_GL_LIBS = -lGL
59 PLATFORM_GL_LDFLAGS = -L/usr/X11R6/lib
61 PLATFORM_GTK_CPPFLAGS = $(shell gtk-config --cflags)
62 PLATFORM_GTK_LIBS = $(shell gtk-config --libs)
63 PLATFORM_GTK_LDFLAGS =
65 PLATFORM_FOX_CPPFLAGS ?= -I/usr/local/include/fox-1.6
66 PLATFORM_FOX_LIBS ?= -lFOX-1.6
67 PLATFORM_FOX_LDFLAGS ?=
69 PLATFORM_TK_CPPFLAGS=$(shell . /usr/local/lib/tk8.*/tkConfig.sh && echo -n $$TK_INCLUDE_SPEC)
70 PLATFORM_TK_LIBS=$(shell . /usr/local/lib/tk8.*/tkConfig.sh && echo -n $$TK_LIB_FLAG)
73 PLATFORM_TCL_CPPFLAGS=$(shell . /usr/local/lib/tcl8.*/tclConfig.sh && echo -n $$TCL_INCLUDE_SPEC)
74 PLATFORM_TCL_LIBS=$(shell . /usr/local/lib/tcl8.*/tclConfig.sh && echo -n $$TCL_LIB_FLAG)
77 # Test for template instantiation, add to versioned_so if versioned_so set,
78 # add -E to LDFLAGS if using GNU ld
80 include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU