1.POSIX:
2
3PLATFORM = CONF_PLATFORM
4VERSION = VERSION_MAJOR.VERSION_MINOR.VERSION_PATCH
5
6PREFIX = CONF_PREFIX
7
8# environment options
9AWK = /usr/bin/awk
10SED = /usr/bin/sed
11SH = /bin/sh
12
13# toolchain
14CXX           = c++
15CXXFLAGS_BASE = --std=c++98 -O2 -g
16LD            = $(CXX)
17LDFLAGS_BASE  =
18
19# platform specific options from configure
20SUNOS_ARCH_LIB = CONF_SUNOS_ARCH_LIB
21SUNOS_ARCH_FLAG = CONF_SUNOS_ARCH_FLAG
22
23include $(MK)/$(PLATFORM).mk
24
25CXXFLAGS = $(CXXFLAGS_BASE) -I$(MK) -DPREFIX=\"$(PREFIX)\" $(X11_CFLAGS) $(PKG_CFLAGS)
26LDFLAGS  = $(LDFLAGS_BASE) $(X11_LDFLAGS) $(PKG_LDFLAGS)
27