Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / include / makeinclude / platform_openbsd.GNU
blobeab9b89f1a594619123cd907d730eb25ad30784f
1 # -*- Makefile -*-
3 # platform_openbsd.GNU
5 debug ?= 1
6 optimize ?= 1
7 threads ?= 1
9 CC              = gcc
10 CXX             = g++
12 AR              = ar
13 ARFLAGS         = ruv
14 CPPFLAGS        += -I/usr/local/include
15 DCFLAGS         += -g
16 DCCFLAGS        += $(DCFLAGS)
17 DLD             = $(CXX)
18 LD              = $(CXX)
19 LDFLAGS         += -L/usr/local/lib
20 OCFLAGS         += -O2
21 OCCFLAGS        = $(OCFLAGS)
22 PIC             = -fpic
23 PRELIB          = @true
24 RANLIB          = ranlib
25 SOFLAGS         += -shared
27 ifeq ($(threads),1)
28   CPPFLAGS += -D_THREAD_SAFE
29   FLAGS_C_CC += -pthread
30   SOFLAGS += -pthread
31 endif # threads
33 PLATFORM_X11_CPPFLAGS = -I/usr/X11R6/include
34 PLATFORM_X11_LIBS = -lX11
35 PLATFORM_X11_LDFLAGS = -L/usr/X11R6/lib
37 PLATFORM_XT_CPPFLAGS =
38 PLATFORM_XT_LIBS = -lXt
39 PLATFORM_XT_LDFLAGS =
41 PLATFORM_FL_CPPFLAGS =
42 PLATFORM_FL_LIBS = -lfltk -lfltk_forms -lfltk_gl
43 PLATFORM_FL_LDFLAGS =
45 PLATFORM_GL_CPPFLAGS = -I/usr/X11R6/include
46 PLATFORM_GL_LIBS = -lGL
47 PLATFORM_GL_LDFLAGS = -L/usr/X11R6/lib
49 PLATFORM_GTK_CPPFLAGS = $(shell gtk-config --cflags)
50 PLATFORM_GTK_LIBS = $(shell gtk-config --libs)
51 PLATFORM_GTK_LDFLAGS =
53 PLATFORM_FOX_CPPFLAGS ?= -I/usr/local/include/fox-1.6
54 PLATFORM_FOX_LIBS ?= -lFOX-1.6
55 PLATFORM_FOX_LDFLAGS ?=
57 PLATFORM_TK_CPPFLAGS=$(shell . /usr/local/lib/tcl/tk*/tkConfig.sh && echo -n $$TK_INCLUDE_SPEC) $(PLATFORM_X11_CPPFLAGS)
58 PLATFORM_TK_LIBS=$(shell . /usr/local/lib/tcl/tk*/tkConfig.sh && echo -n $$TK_LIB_FLAG) $(PLATFORM_X11_LIBS)
59 PLATFORM_TK_LDFLAGS=$(PLATFORM_X11_LDFLAGS)
61 PLATFORM_TCL_CPPFLAGS=$(shell . /usr/local/lib/tcl/tcl*/tclConfig.sh && echo -n $$TCL_INCLUDE_SPEC)
62 PLATFORM_TCL_LIBS=$(shell . /usr/local/lib/tcl/tcl*/tclConfig.sh && echo -n $$TCL_LIB_FLAG)
63 PLATFORM_TCL_LDFLAGS=
65 # Test for template instantiation, add to versioned_so if versioned_so set,
66 # add -E to LDFLAGS if using GNU ld
68 include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU