summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_netbsd.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/include/makeinclude/platform_netbsd.GNU')
-rw-r--r--ACE/include/makeinclude/platform_netbsd.GNU55
1 files changed, 55 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_netbsd.GNU b/ACE/include/makeinclude/platform_netbsd.GNU
new file mode 100644
index 00000000000..bd1073953a2
--- /dev/null
+++ b/ACE/include/makeinclude/platform_netbsd.GNU
@@ -0,0 +1,55 @@
+# $Id$
+
+# platform_netbsd.GNU
+
+versioned_so = 1
+
+ifndef exceptions
+ exceptions = 1
+endif
+
+ifeq (,$(debug))
+ debug = 1
+endif
+
+ifeq (,$(optimize))
+ optimize = 1
+endif
+
+ifeq (,$(threads))
+ threads = 1
+endif
+
+pipes ?= 1
+
+CC = gcc
+CXX = g++
+
+CFLAGS += -W -Wall -Wpointer-arith
+DCFLAGS += -g
+LDFLAGS += -Wl,-rpath $(ACE_ROOT)/lib
+DLD = $(CXX)
+LD = $(CXX)
+LIBS +=
+OCFLAGS += -O2
+PIC = -fpic
+AR = ar
+ARFLAGS = ruv
+RANLIB = ranlib
+
+SOFLAGS += $(CPPFLAGS) -shared
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+PRELIB = @echo
+
+ifeq ($(threads),1)
+LDFLAGS += -pthread
+CFLAGS += -D_REENTRANT -DACE_HAS_THREADS
+endif # threads
+
+# Test for template instantiation, add to SOFLAGS if versioned_so set,
+# add -E to LDFLAGS if using GNU ld
+#
+include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
+
+CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
+