summaryrefslogtreecommitdiff
path: root/PACE/include/makeinclude
diff options
context:
space:
mode:
authorjoeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-10 15:14:22 +0000
committerjoeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-10 15:14:22 +0000
commitd2e7f0ac5cd8a052939af5ae9cc269601341f0b7 (patch)
tree08217ab5e327d0ba987a3e703694450ad20313aa /PACE/include/makeinclude
parentd17f549b456722018ef1c58258bf04043f549599 (diff)
downloadATCD-d2e7f0ac5cd8a052939af5ae9cc269601341f0b7.tar.gz
Mon Jul 10 08:50:37 2000 Joe Hoffert <joeh@cs.wustl.edu>
Diffstat (limited to 'PACE/include/makeinclude')
-rw-r--r--PACE/include/makeinclude/rules.common.GNU73
1 files changed, 73 insertions, 0 deletions
diff --git a/PACE/include/makeinclude/rules.common.GNU b/PACE/include/makeinclude/rules.common.GNU
new file mode 100644
index 00000000000..f1c2f38aa2e
--- /dev/null
+++ b/PACE/include/makeinclude/rules.common.GNU
@@ -0,0 +1,73 @@
+#----------------------------------------------------------------------------
+# $Id$
+#
+# Common rules for building PACE targets
+#----------------------------------------------------------------------------
+
+ifndef PACE_ROOT
+ PACE_ROOT = $(ACE_ROOT)/PACE
+endif # ! PACE_ROOT
+
+VPATH:=common:arpa:config:netinet:sys
+
+ifeq ($(PACE_SYSNAME),)
+ PACE_SYSNAME = $(shell uname -s)
+endif # ! PACE_SYSNAME
+
+ifeq ($(PACE_SYSVER),)
+ PACE_SYSVER = $(shell uname -r)
+endif # ! PACE_SYSVER
+
+PACE_SYSVER := $(shell echo $(PACE_SYSVER) | sed 's/\.//g')
+
+# List of platforms and uname -s values
+# =====================================
+# Solaris SunOS
+# NT "NT" (uname not supported)
+# LynxOS LynxOS
+# VxWorks "VxWorks" (strictly cross-compiled)
+# Linux Linux
+# pSOS "pSOS" (strictly cross-compiled)
+# Chorus "Chorus" (strictly cross-compiled)
+# QNX Neutrino "Neutrino" (strictly cross-compiled)
+# OSF/1 OSF1
+# IRIX (64 bit) IRIX64
+# IRIX (32 bit) IRIX (unconfirmed)
+# HPUX HP-UX
+
+# Solaris is POSIX - change this when the platform directories get
+# squared away
+#ifeq ($(PACE_SYSNAME),SunOS || $(PACE_SYSNAME),Linux)
+
+ifeq ($(PACE_SYSNAME),SunOS)
+# Hard code special cases for SunOS 5.6 and 5.7 since we
+# need a 3 digit version number for comparison purposes.
+ ifeq ($(PACE_SYSVER),57)
+ PACE_SYSVER := $(PACE_SYSVER)0
+ endif # PACE_SYSVER
+ ifeq ($(PACE_SYSVER),56)
+ PACE_SYSVER := $(PACE_SYSVER)0
+ endif # PACE_SYSVER
+VPATH :=.:posix:$(VPATH)
+CFLAGS += -DPACE_SUNOS=$(PACE_SYSVER)
+endif
+
+ifeq ($(PACE_SYSNAME),NT)
+VPATH :=.:win32:$(VPATH)
+CFLAGS += -DPACE_WIN32=$(PACE_SYSVER)
+endif
+
+ifeq ($(PACE_SYSNAME),LynxOS)
+VPATH :=.:posix:$(VPATH)
+CFLAGS += -DPACE_LYNXOS=$(PACE_SYSVER)
+endif
+
+ifeq ($(PACE_SYSNAME),VxWorks)
+VPATH :=.:vxworks:$(VPATH)
+CFLAGS += -DPACE_VXWORKS=$(PACE_SYSVER)
+endif
+
+ifeq ($(PACE_SYSNAME),Linux)
+VPATH :=.:posix:$(VPATH)
+CFLAGS += -DPACE_LINUX=$(PACE_SYSVER)
+endif