summaryrefslogtreecommitdiff
path: root/include/makeinclude
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
commita5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch)
treebcf0a25c3d45a209a6e3ac37b233a4812f29c732 /include/makeinclude
downloadATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz
Initial revision
Diffstat (limited to 'include/makeinclude')
-rw-r--r--include/makeinclude/macros.GNU22
-rw-r--r--include/makeinclude/platform_aix.GNU30
-rw-r--r--include/makeinclude/platform_hpux.GNU21
-rw-r--r--include/makeinclude/platform_hpux_orbix.GNU23
-rw-r--r--include/makeinclude/platform_irix5.2.GNU11
-rw-r--r--include/makeinclude/platform_irix5.3_g++.GNU13
-rw-r--r--include/makeinclude/platform_irix5.3_sgic++.GNU19
-rw-r--r--include/makeinclude/platform_irix6.2_sgic++.GNU24
-rw-r--r--include/makeinclude/platform_linux.GNU18
-rw-r--r--include/makeinclude/platform_linux_pthread.GNU24
-rw-r--r--include/makeinclude/platform_m88k.GNU24
-rw-r--r--include/makeinclude/platform_osf1_3.2.GNU13
-rw-r--r--include/makeinclude/platform_osf1_4.0.GNU16
-rw-r--r--include/makeinclude/platform_sco-nothread.GNU20
-rw-r--r--include/makeinclude/platform_sunos4_g++.GNU22
-rw-r--r--include/makeinclude/platform_sunos4_lucid.GNU13
-rw-r--r--include/makeinclude/platform_sunos4_sunc++3.x.GNU17
-rw-r--r--include/makeinclude/platform_sunos4_sunc++4.x.GNU12
-rw-r--r--include/makeinclude/platform_sunos4_sunc++4.x_orbix.GNU14
-rw-r--r--include/makeinclude/platform_sunos5_centerline.GNU13
-rw-r--r--include/makeinclude/platform_sunos5_centerline_orbix.GNU14
-rw-r--r--include/makeinclude/platform_sunos5_g++.GNU22
-rw-r--r--include/makeinclude/platform_sunos5_sunc++.GNU14
-rw-r--r--include/makeinclude/platform_sunos5_sunc++_4.1.GNU14
-rw-r--r--include/makeinclude/platform_sunos5_sunc++_orbix.GNU15
-rw-r--r--include/makeinclude/platform_sunos5_x86_g++.GNU22
-rw-r--r--include/makeinclude/platform_unixware_g++.GNU21
-rw-r--r--include/makeinclude/rules.bin.GNU12
-rw-r--r--include/makeinclude/rules.common.GNU17
-rw-r--r--include/makeinclude/rules.lib.GNU113
-rw-r--r--include/makeinclude/rules.local.GNU151
-rw-r--r--include/makeinclude/rules.nested.GNU15
-rw-r--r--include/makeinclude/rules.nolocal.GNU8
-rw-r--r--include/makeinclude/rules.nonested.GNU8
-rw-r--r--include/makeinclude/wrapper_macros.GNU116
35 files changed, 931 insertions, 0 deletions
diff --git a/include/makeinclude/macros.GNU b/include/makeinclude/macros.GNU
new file mode 100644
index 00000000000..8555d6b5818
--- /dev/null
+++ b/include/makeinclude/macros.GNU
@@ -0,0 +1,22 @@
+#----------------------------------------------------------------------------
+# @(#)macros.GNU 1.1 10/18/96
+#
+# Local and nested target definitions
+#----------------------------------------------------------------------------
+
+TARGETS_LOCAL = \
+ all.local \
+ debug.local \
+ profile.local \
+ optimize.local \
+ install.local \
+ deinstall.local \
+ clean.local \
+ realclean.local \
+ clobber.local \
+ depend.local \
+ rcs_info.local
+
+TARGETS_NESTED = \
+ $(TARGETS_LOCAL:.local=.nested)
+
diff --git a/include/makeinclude/platform_aix.GNU b/include/makeinclude/platform_aix.GNU
new file mode 100644
index 00000000000..058f464b2ad
--- /dev/null
+++ b/include/makeinclude/platform_aix.GNU
@@ -0,0 +1,30 @@
+# AIX 4.1.3
+# *not* using Orbix
+# This file assumes that the user has installed the AIX patch
+# containing the dl*() APIs. To use these APIs, IBM has created a
+# separate product (free to AIX licensees) called shared library
+# hookable symbols (or slhs/6000). If they don't have this patch, the
+# sv* commands for compiling and linking will not be present on the
+# system.
+
+CC = xlC
+CXX = xlC_r
+DLD = makeC++SharedLib
+CPPFLAGS += -qxcall -qtempinc
+SHLIBA = $(SHLIB:lib%.so=lib%shr.a)
+ifdef SHLIB
+ACELIB = -lACEshr
+endif
+LLIBS = -lC_r -lC -lpthreads -lbsd -lsvld -ltli -lc_r -lm -lc $(ACELIB)
+LIBS += $(filter-out $(SHLIBA:lib%.a=-l%), $(LLIBS))
+ARFLAGS = ruv
+AR = ar
+LDFLAGS += -bI:/lib/pse.exp
+# Should be set to optimize for your particular computer. This
+# is set to be optimized for RS/6000 43P
+OCCFLAGS += -qarch=ppc -qtune=604
+RANLIB = ranlib
+SOFLAGS = -p 0
+STATLIB = $(VLIB)
+TEMPINCDIR = tempinc
+SOBUILD =
diff --git a/include/makeinclude/platform_hpux.GNU b/include/makeinclude/platform_hpux.GNU
new file mode 100644
index 00000000000..8197edf7d16
--- /dev/null
+++ b/include/makeinclude/platform_hpux.GNU
@@ -0,0 +1,21 @@
+CC = /bin/cc
+CXX = /usr/bin/CC
+DLD = $(CXX)
+PIC =
+ARFLAGS = ruv
+RANLIB = echo
+CFLAGS = -Aa -z +z $(DCFLAGS)
+LDFLAGS = -L$(WRAPPER_ROOT)/ace -Wl,+s
+CCFLAGS = -Aa -z +z -pta -ptb
+SOFLAGS = -b
+SOBUILD = @echo ""; \
+ echo "$(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<"; \
+ $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(RM) -rf $(VSHDIR)pt$*; mkdir $(VSHDIR)pt$*; \
+ echo "int main() { return 0; }" >dummy.C; \
+ echo "$(CXX) $(CCFLAGS) $(PIC) $(CPPFLAGS) $(LDFLAGS) -ptr$(VSHDIR)pt$* -ptr./ptrepository dummy.C $<";\
+ YYZ="`$(CXX) $(CCFLAGS) $(PIC) $(CPPFLAGS) $(LDFLAGS) -ptr$(VSHDIR)pt$* -ptr./ptrepository dummy.C $<`"; \
+ $(RM) -rf a.out dummy.*; \
+ YYZ="`echo $(VSHDIR)pt$*/*.o`"; \
+ echo "$(SOLINK.cc) -o $@ ./$(VSHDIR)$*.o $(YYZ)"; \
+ $(SOLINK.cc) -o $@ ./$(VSHDIR)$*.o $(YYZ)
diff --git a/include/makeinclude/platform_hpux_orbix.GNU b/include/makeinclude/platform_hpux_orbix.GNU
new file mode 100644
index 00000000000..e07a9cc993e
--- /dev/null
+++ b/include/makeinclude/platform_hpux_orbix.GNU
@@ -0,0 +1,23 @@
+# Assume the existence of Orbix with HP/UX...
+CC = /bin/cc
+CXX = /usr/bin/CC
+DLD = $(CXX)
+INCLDIRS = -I$(ORBIX_ROOT)/include
+PIC =
+ARFLAGS = ruv
+RANLIB = echo
+CFLAGS = -Aa -z +z $(DCFLAGS)
+LDFLAGS = -L$(ORBIX_ROOT)/lib -L$(WRAPPER_ROOT)/ace -Wl,+s
+CCFLAGS = -Aa -z +z -pta -ptb
+SOFLAGS = -b
+SOBUILD = @echo ""; \
+ echo "$(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<"; \
+ $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(RM) -rf $(VSHDIR)pt$*; mkdir $(VSHDIR)pt$*; \
+ echo "int main() { return 0; }" >dummy.C; \
+ echo "$(CXX) $(CCFLAGS) $(PIC) $(CPPFLAGS) $(LDFLAGS) -ptr$(VSHDIR)pt$* -ptr./ptrepository dummy.C $<";\
+ YYZ="`$(CXX) $(CCFLAGS) $(PIC) $(CPPFLAGS) $(LDFLAGS) -ptr$(VSHDIR)pt$* -ptr./ptrepository dummy.C $<`"; \
+ $(RM) -rf a.out dummy.*; \
+ YYZ="`echo $(VSHDIR)pt$*/*.o`"; \
+ echo "$(SOLINK.cc) -o $@ ./$(VSHDIR)$*.o $(YYZ)"; \
+ $(SOLINK.cc) -o $@ ./$(VSHDIR)$*.o $(YYZ)
diff --git a/include/makeinclude/platform_irix5.2.GNU b/include/makeinclude/platform_irix5.2.GNU
new file mode 100644
index 00000000000..f5edee5f16d
--- /dev/null
+++ b/include/makeinclude/platform_irix5.2.GNU
@@ -0,0 +1,11 @@
+# Irix 5.2 with gcc 2.6.1
+MAKE = gmake
+CC = gcc
+CXX = g++
+DLD = $(CXX)
+LDFLAGS +=
+LIBS += -ldl
+PIC = -fpic
+RANLIB = echo
+SOFLAGS =
+SOBUILD =
diff --git a/include/makeinclude/platform_irix5.3_g++.GNU b/include/makeinclude/platform_irix5.3_g++.GNU
new file mode 100644
index 00000000000..1d81ed6b7dd
--- /dev/null
+++ b/include/makeinclude/platform_irix5.3_g++.GNU
@@ -0,0 +1,13 @@
+# Irix 5.3 with GNU C++
+
+CC = gcc
+CXX = gcc
+DLD = $(CXX)
+LDFLAGS += -L$(WRAPPER_ROOT)/ace
+LIBS += -lstdc++
+PIC = -fpic
+RANLIB = echo
+SOFLAGS = -shared $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
+
diff --git a/include/makeinclude/platform_irix5.3_sgic++.GNU b/include/makeinclude/platform_irix5.3_sgic++.GNU
new file mode 100644
index 00000000000..9ea66283ce0
--- /dev/null
+++ b/include/makeinclude/platform_irix5.3_sgic++.GNU
@@ -0,0 +1,19 @@
+# Irix 5.3 with SGI C++
+
+# This suppresses common compiler warnings which appear in the
+# ACE code but should not matter. The warnings can be turned on
+# again by removing the -woff clause in the CPPFLAGS definition.
+
+CC = cc
+CXX = CC
+DLD = $(CXX)
+CPPFLAGS += -ptused -prelink +pp -woff 3203,3209,3161,3262,3665
+LDFLAGS += -rpath "$(WRAPPER_ROOT)/ace"
+LIBS =
+PIC = -KPIC
+AR = ar
+ARFLAGS = r
+RANLIB = echo
+SOFLAGS = -shared $(CPPFLAGS) -all
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_irix6.2_sgic++.GNU b/include/makeinclude/platform_irix6.2_sgic++.GNU
new file mode 100644
index 00000000000..9bf0247f4f5
--- /dev/null
+++ b/include/makeinclude/platform_irix6.2_sgic++.GNU
@@ -0,0 +1,24 @@
+# Irix 6.2 with SGI C++
+
+# This suppresses common compiler warnings which appear in the
+# ACE code but should not matter. The warnings can be turned on
+# again by removing the -woff clause in the CPPFLAGS definition.
+#
+# I (Gonzalo Diethelm <gonzo@ing.puc.cl>) also turned off warning 85
+# from the linker; otherwise there are a lot of warnings about symbols
+# in the pthread library overriding symbols in the C library (which is
+# OK), and added libpthread.so to the link phase.
+
+CC = cc
+CXX = CC
+DLD = $(CXX)
+CPPFLAGS += -ptused -prelink +pp -D_SGI_MP_SOURCE -woff 3203,3209,3161,3262,3665
+LDFLAGS += -rpath "$(WRAPPER_ROOT)/ace" -Wl,-woff,85
+LIBS += -lpthread
+PIC = -KPIC
+AR = ar
+ARFLAGS = r
+RANLIB = echo
+SOFLAGS = -shared $(CPPFLAGS) -all
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_linux.GNU b/include/makeinclude/platform_linux.GNU
new file mode 100644
index 00000000000..cde3987019c
--- /dev/null
+++ b/include/makeinclude/platform_linux.GNU
@@ -0,0 +1,18 @@
+# According to Bryon G. Rigg <bgrigg@opus.bcbnet.com>, this file
+# should allow ACE to be built on Linux.
+
+CC = gcc -w
+CXX = gcc -w -I. -fno-strict-prototypes -D__ACE_INLINE__
+DLD = $(CXX)
+LIBS = -lstdc++
+PIC = -fPIC
+AR = ar
+ARFLAGS = ruv
+RANLIB = ranlib
+
+SOFLAGS = $(CPPFLAGS) -shared
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+PRELIB = (echo "main() { }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; exit $$status)
diff --git a/include/makeinclude/platform_linux_pthread.GNU b/include/makeinclude/platform_linux_pthread.GNU
new file mode 100644
index 00000000000..f7103d1d84e
--- /dev/null
+++ b/include/makeinclude/platform_linux_pthread.GNU
@@ -0,0 +1,24 @@
+# For pthreads support on Linux, you need
+# -D_MIT_POSIX_THREADS
+# -D_POSIX_THREADS
+# -D_POSIX_THREAD_SAFE_FUNCTIONS
+# in the CXX command line. Also, add -lpthreads to the LIBS.
+# libpthreads.so comes with the sources of Linux libc-5.3.*, you need
+# to compile it yourself (no binaries included) --
+# Jan Rychter <jwr@icm.edu.pl>
+
+CC = gcc -w
+CXX = gcc -w -I. -fno-strict-prototypes -D__ACE_INLINE__ -D_MIT_POSIX_THREADS -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS
+DLD = $(CXX)
+LIBS += -lpthreads -lstdc++
+PIC = -fPIC
+AR = ar
+ARFLAGS = ruv
+RANLIB = ranlib
+
+SOFLAGS = $(CPPFLAGS) -shared
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+PRELIB = (echo "main() { }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; exit $$status)
diff --git a/include/makeinclude/platform_m88k.GNU b/include/makeinclude/platform_m88k.GNU
new file mode 100644
index 00000000000..87922980df0
--- /dev/null
+++ b/include/makeinclude/platform_m88k.GNU
@@ -0,0 +1,24 @@
+# SunOS 5.x (Solaris 2.x) with SunC++ 4.x
+# *not* using Orbix
+CC = gcc -w
+#CXX = gcc -w -frepo -I. -fno-strict-prototypes -D__INLINE__
+CXX = gcc -w -I. -fno-strict-prototypes -D__INLINE__
+CXX += -D__m88k__
+DLD = $(CXX)
+INCLDIRS += -I$(WRAPPER_ROOT) -I.
+INCLDIRS += -I/devel/rmm/v1.0/local/src/threads/include
+LDFLAGS += -L $(WRAPPER_ROOT)/ace -L ./
+LDFLAGS += -L/devel/rmm/v1.0/local/src/threads/lib
+LIBS += -lsocket -ldl -lnsl -lgen -lstdc++ -lg++
+LIBS += -lgthreads -lgmalloc
+PIC = -fpic
+AR = ar
+ARFLAGS = ruv
+RANLIB = /bin/true
+SOFLAGS = -G $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ -h $@ $(LDFLAGS) $(VSHDIR)$*.o
+PRELIB = (echo "main() { }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; rm -f gcctemp*; exit $$status)
diff --git a/include/makeinclude/platform_osf1_3.2.GNU b/include/makeinclude/platform_osf1_3.2.GNU
new file mode 100644
index 00000000000..478a4e072dd
--- /dev/null
+++ b/include/makeinclude/platform_osf1_3.2.GNU
@@ -0,0 +1,13 @@
+# This platform macros file is intended to work with Digital UNIX 3.2 (OSF/1 3.2).
+
+CC = cxx -non_shared
+CXX = cxx -x cxx -w0 -non_shared
+#DLD = ld -non_shared
+DLD = ld -shared
+LIBS += -lpthreads -lmach -lsys5 -lxti -ltli -lcxx -lexc -lc
+PIC = -pic
+ARFLAGS = ruv
+RANLIB = ranlib
+SOFLAGS = -shared -assert
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o -lcxx -ltask -lexc -lc
diff --git a/include/makeinclude/platform_osf1_4.0.GNU b/include/makeinclude/platform_osf1_4.0.GNU
new file mode 100644
index 00000000000..19b864127a9
--- /dev/null
+++ b/include/makeinclude/platform_osf1_4.0.GNU
@@ -0,0 +1,16 @@
+# This platform macros file is intended to work with Digital UNIX 4.0 (OSF/1 4.0).
+
+CC = cxx -g -pthread -ptr $(WRAPPER_ROOT)/ace/cxx_repository
+CXX = cxx -w0 -g -pthread -ptr $(WRAPPER_ROOT)/ace/cxx_repository
+DLD = $(CXX)
+#LIBS += -lpthreads -lmach -lsys5 -lxti -ltli -lcxx -lexc -lc
+LIBS += -ltli -lc_r
+PIC =
+ARFLAGS = ruvZ
+# When libraries are archived, a hash index is automatically created so there
+# is no need for ranlib
+RANLIB = /usr/bin/true
+SOFLAGS = -shared
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o -lACE -ltli -lc_r
+# $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o -lcxx -ltask -lexc -lc
diff --git a/include/makeinclude/platform_sco-nothread.GNU b/include/makeinclude/platform_sco-nothread.GNU
new file mode 100644
index 00000000000..e6bb5c810dc
--- /dev/null
+++ b/include/makeinclude/platform_sco-nothread.GNU
@@ -0,0 +1,20 @@
+# According to Bryon G. Rigg <bgrigg@opus.bcbnet.com>, this file
+# should allow ACE to be built on Linux.
+
+CC = gcc -w
+# for threads
+# for no threads
+CXX = gcc -fno-implicit-templates -w -I. -fno-strict-prototypes -D__ACE_INLINE__
+DLD = $(CXX)
+LIBS = -lstdc++ -lsocket
+PIC =
+AR = ar
+ARFLAGS = ruv
+RANLIB = /bin/true
+
+SOFLAGS = $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+PRELIB = (echo "main() { }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; exit $$status)
diff --git a/include/makeinclude/platform_sunos4_g++.GNU b/include/makeinclude/platform_sunos4_g++.GNU
new file mode 100644
index 00000000000..e512caf5aea
--- /dev/null
+++ b/include/makeinclude/platform_sunos4_g++.GNU
@@ -0,0 +1,22 @@
+# SunOS 4.x (Solaris 1.x) with g++ *not* using Orbix
+#
+# SOBUILD - compile into .so directly
+#
+CC = gcc
+CXX = gcc -I. -fno-strict-prototypes -D__ACE_INLINE__ # -frepo
+DLD = /bin/ld
+#
+# for G++ v2.6.0
+LIBS += -lstdc++
+# LIBS += -lnsl -lg++
+PIC = -fpic
+AR = ar
+ARFLAGS = ruv
+RANLIB = ranlib
+SOFLAGS = -assert pure-text
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+# SOLINK = $(SOLINK.cc) -o $@ $(LDFLAGS) $<
+PRELIB = (echo "main() { }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; rm -f gcctemp*; exit $$status)
diff --git a/include/makeinclude/platform_sunos4_lucid.GNU b/include/makeinclude/platform_sunos4_lucid.GNU
new file mode 100644
index 00000000000..044f8764dd1
--- /dev/null
+++ b/include/makeinclude/platform_sunos4_lucid.GNU
@@ -0,0 +1,13 @@
+# SunOS 4.x (Solaris 1.x) with Lucid
+CC = lcc
+CXX = lcc
+CFLAGS = -Xa # use ANSI c complier
+CCFLAGS = -XF -Xpt- # use c++ ARM compiler with auto templates turned off
+DLD = /bin/ld
+LIBS +=
+PIC = -pic
+ARFLAGS = ruv
+RANLIB = ranlib
+SOFLAGS = -assert pure-text
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_sunos4_sunc++3.x.GNU b/include/makeinclude/platform_sunos4_sunc++3.x.GNU
new file mode 100644
index 00000000000..8e3909d090b
--- /dev/null
+++ b/include/makeinclude/platform_sunos4_sunc++3.x.GNU
@@ -0,0 +1,17 @@
+# SunOS 4.x (Solaris 1.x) with SunC++ 3.x
+CC = cc
+CXX = CC
+DLD = /bin/ld
+LIBS +=
+PIC = -pic
+AR = ar
+ARFLAGS = ruv
+RANLIB = ranlib
+SOFLAGS = -assert pure-text
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(RM) -rf $(VSHDIR)pt$*; mkdir $(VSHDIR)pt$*; \
+ YYZ="`$(CXX) $(CCFLAGS) $(CPPFLAGS) \
+ -ptr$(VSHDIR)pt$* -ptr./ptrepository $<`"; \
+ $(RM) -rf a.out; \
+ YYZ="`echo $(VSHDIR)pt$*/*.o`"; \
+ $(SOLINK.cc) -o $@ ./$(VSHDIR)$*.o $(YYZ)
diff --git a/include/makeinclude/platform_sunos4_sunc++4.x.GNU b/include/makeinclude/platform_sunos4_sunc++4.x.GNU
new file mode 100644
index 00000000000..250fd133a18
--- /dev/null
+++ b/include/makeinclude/platform_sunos4_sunc++4.x.GNU
@@ -0,0 +1,12 @@
+# SunOS 4.x (Solaris 1.x) with SunC++ 4.x
+CC = cc
+CXX = CC
+DLD = $(CXX)
+LIBS +=
+AR = CC
+ARFLAGS = -xar -o
+PIC = -pic
+RANLIB = ranlib
+SOFLAGS = -G $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_sunos4_sunc++4.x_orbix.GNU b/include/makeinclude/platform_sunos4_sunc++4.x_orbix.GNU
new file mode 100644
index 00000000000..6a282ff451b
--- /dev/null
+++ b/include/makeinclude/platform_sunos4_sunc++4.x_orbix.GNU
@@ -0,0 +1,14 @@
+# SunOS 4.x (Solaris 1.x) with SunC++ 4.x and Orbix.
+CC = cc
+CXX = CC
+DLD = $(CXX)
+LIBS +=
+INCLDIRS = -I$(ORBIX_ROOT)/include
+AR = CC
+LDFLAGS += -L$(ORBIX_ROOT)/lib
+ARFLAGS = -xar -o
+PIC = -pic
+RANLIB = ranlib
+SOFLAGS = -G $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_sunos5_centerline.GNU b/include/makeinclude/platform_sunos5_centerline.GNU
new file mode 100644
index 00000000000..3bf22121c8b
--- /dev/null
+++ b/include/makeinclude/platform_sunos5_centerline.GNU
@@ -0,0 +1,13 @@
+# SunOS 5.x (Solaris 2.x) with Centerline C++
+CC = cc
+CXX = CC -mt
+DLD = $(CXX) -mt
+LIBS += -lsocket -ldl -lnsl -lgen
+PIC = -PIC
+#AR = CC
+#ARFLAGS = -xar -o
+ARFLAGS = ruv
+RANLIB = echo
+SOFLAGS = -G $(CPPFLAGS) $(PTDIRS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) $(PIC) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_sunos5_centerline_orbix.GNU b/include/makeinclude/platform_sunos5_centerline_orbix.GNU
new file mode 100644
index 00000000000..cd68c89b609
--- /dev/null
+++ b/include/makeinclude/platform_sunos5_centerline_orbix.GNU
@@ -0,0 +1,14 @@
+# SunOS 5.x (Solaris 2.x) with Centerline C++
+CC = cc
+CXX = CC -mt
+DLD = $(CXX) -mt
+INCLDIRS = -I$(ORBIX_ROOT)/include
+LDFLAGS += -L$(ORBIX_ROOT)/lib
+LIBS += -lITsrv -lsocket -ldl -lnsl -lgen
+PIC = -PIC
+AR = CC
+ARFLAGS = -xar -o
+RANLIB = echo
+SOFLAGS = -G $(CPPFLAGS) $(PTDIRS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) $(PIC) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_sunos5_g++.GNU b/include/makeinclude/platform_sunos5_g++.GNU
new file mode 100644
index 00000000000..195065cc641
--- /dev/null
+++ b/include/makeinclude/platform_sunos5_g++.GNU
@@ -0,0 +1,22 @@
+# SunOS 5.x (Solaris 2.x) with g++ *not* using Orbix
+#
+# SOBUILD - compile into .so directly
+#
+CC = gcc
+CXX = gcc -I. -fno-strict-prototypes -D__ACE_INLINE__ # -frepo
+DLD = $(CXX)
+LDFLAGS += -L $(WRAPPER_ROOT)/ace -L ./ # -z muldefs
+LIBS += -lsocket -ldl -lstdc++ -lgen -lnsl -lthread -lw
+PIC = -fpic
+AR = ar
+ARFLAGS = ruv
+RANLIB = /bin/true
+SOFLAGS = -G $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+# SOLINK = cp $< $@
+# SOLINK = ln -s $< $@
+# SOLINK = $(SOLINK.cc) -o $@ $(LDFLAGS) $<
+PRELIB = (echo "main() { }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; rm -f gcctemp*; exit $$status)
diff --git a/include/makeinclude/platform_sunos5_sunc++.GNU b/include/makeinclude/platform_sunos5_sunc++.GNU
new file mode 100644
index 00000000000..45a69579117
--- /dev/null
+++ b/include/makeinclude/platform_sunos5_sunc++.GNU
@@ -0,0 +1,14 @@
+# SunOS 5.x (Solaris 2.x) with SunC++ 4.0.1 or earlier
+# *not* using Orbix
+CC = cc
+CXX = CC -mt -pta -noex # This option should solve some evil problems with Solaris
+DLD = $(CXX)
+LDFLAGS += -R $(WRAPPER_ROOT)/ace
+LIBS += -lsocket -ldl -lnsl -lgen # -lposix4
+PIC = -PIC
+AR = CC
+ARFLAGS = -xar -o
+RANLIB = echo
+SOFLAGS = -G $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ -h $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_sunos5_sunc++_4.1.GNU b/include/makeinclude/platform_sunos5_sunc++_4.1.GNU
new file mode 100644
index 00000000000..69e9895dfb7
--- /dev/null
+++ b/include/makeinclude/platform_sunos5_sunc++_4.1.GNU
@@ -0,0 +1,14 @@
+# SunOS 5.x (Solaris 2.x) with SunC++ 4.1
+# *not* using Orbix
+CC = cc
+CXX = CC -mt -noex -pta
+DLD = $(CXX)
+LDFLAGS += -R $(WRAPPER_ROOT)/ace
+LIBS += -lsocket -ldl -lnsl -lgen
+PIC = -PIC
+AR = CC
+ARFLAGS = -xar -o
+RANLIB = echo
+SOFLAGS = -G $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ -h $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_sunos5_sunc++_orbix.GNU b/include/makeinclude/platform_sunos5_sunc++_orbix.GNU
new file mode 100644
index 00000000000..f76fc318f99
--- /dev/null
+++ b/include/makeinclude/platform_sunos5_sunc++_orbix.GNU
@@ -0,0 +1,15 @@
+# SunOS 5.x (Solaris 2.x) with SunC++ 4.0.1 or earlier
+# *using* Orbix
+CC = cc
+CXX = CC -mt -pta -noex
+DLD = $(CXX)
+INCLDIRS = -I$(ORBIX_ROOT)/include
+PIC = -PIC
+LDFLAGS += $(PIC) -L$(ORBIX_ROOT)/lib -R $(WRAPPER_ROOT)/ace -R $(ORBIX_ROOT)/lib
+LIBS += -lITsrv -lsocket -ldl -lnsl -lthread -lgen
+AR = CC
+ARFLAGS = -xar -o
+RANLIB = echo
+SOFLAGS = -G $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) $(PIC) -o $@ -h $@ $(LDFLAGS) $(VSHDIR)$*.o
diff --git a/include/makeinclude/platform_sunos5_x86_g++.GNU b/include/makeinclude/platform_sunos5_x86_g++.GNU
new file mode 100644
index 00000000000..195065cc641
--- /dev/null
+++ b/include/makeinclude/platform_sunos5_x86_g++.GNU
@@ -0,0 +1,22 @@
+# SunOS 5.x (Solaris 2.x) with g++ *not* using Orbix
+#
+# SOBUILD - compile into .so directly
+#
+CC = gcc
+CXX = gcc -I. -fno-strict-prototypes -D__ACE_INLINE__ # -frepo
+DLD = $(CXX)
+LDFLAGS += -L $(WRAPPER_ROOT)/ace -L ./ # -z muldefs
+LIBS += -lsocket -ldl -lstdc++ -lgen -lnsl -lthread -lw
+PIC = -fpic
+AR = ar
+ARFLAGS = ruv
+RANLIB = /bin/true
+SOFLAGS = -G $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+# SOLINK = cp $< $@
+# SOLINK = ln -s $< $@
+# SOLINK = $(SOLINK.cc) -o $@ $(LDFLAGS) $<
+PRELIB = (echo "main() { }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; rm -f gcctemp*; exit $$status)
diff --git a/include/makeinclude/platform_unixware_g++.GNU b/include/makeinclude/platform_unixware_g++.GNU
new file mode 100644
index 00000000000..fdbd634653b
--- /dev/null
+++ b/include/makeinclude/platform_unixware_g++.GNU
@@ -0,0 +1,21 @@
+# UnixWare V2.01 with g++ *not* using Orbix
+#
+# SOBUILD - compile into .so directly
+#
+CC = gcc -w
+CXX = gcc -I. -D__ACE_INLINE__ # -w -fno-strict-prototypes
+DLD = $(CXX)
+LDFLAGS += -L$(WRAPPER_ROOT)/ace -L./ -L/usr/lib
+LIBS += -lsocket -lnsl -lstdc++ -lgen -lthread
+PIC = -fpic
+AR = ar
+ARFLAGS = ruv
+RANLIB = /bin/true
+#SOFLAGS = -assert pure-text
+SOFLAGS = -shared
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+# SOLINK = $(SOLINK.cc) -o $@ $(LDFLAGS) $<
+PRELIB = (echo "main() { }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; rm -f gcctemp*; exit $$status)
diff --git a/include/makeinclude/rules.bin.GNU b/include/makeinclude/rules.bin.GNU
new file mode 100644
index 00000000000..b546c9d43af
--- /dev/null
+++ b/include/makeinclude/rules.bin.GNU
@@ -0,0 +1,12 @@
+#----------------------------------------------------------------------------
+# @(#)rules.bin.GNU 1.1 10/18/96
+#
+# Build binaries
+# GNU version
+# Requires GNU make
+#----------------------------------------------------------------------------
+
+VBIN = $(BIN:%=%$(VAR))
+
+$(BIN): %: $(VDIR)%.o $(VSHOBJS)
+ $(LINK.cc) -o $@ $< $(LDFLAGS) $(VLDLIBS)
diff --git a/include/makeinclude/rules.common.GNU b/include/makeinclude/rules.common.GNU
new file mode 100644
index 00000000000..c111b1996ea
--- /dev/null
+++ b/include/makeinclude/rules.common.GNU
@@ -0,0 +1,17 @@
+#----------------------------------------------------------------------------
+# @(#)rules.common.GNU 1.1 10/18/96
+#
+# Common targets
+#----------------------------------------------------------------------------
+
+all: all.nested all.local
+debug: debug.nested debug.local
+profile: profile.nested profile.local
+install: install.nested install.local
+deinstall: deinstall.nested deinstall.local
+clean: clean.nested clean.local
+realclean: realclean.nested realclean.local
+clobber: clobber.nested clobber.local
+depend: depend.nested depend.local
+rcs_info: rcs_info.nested rcs_info.local
+
diff --git a/include/makeinclude/rules.lib.GNU b/include/makeinclude/rules.lib.GNU
new file mode 100644
index 00000000000..f28213810a0
--- /dev/null
+++ b/include/makeinclude/rules.lib.GNU
@@ -0,0 +1,113 @@
+#----------------------------------------------------------------------------
+# @(#)rules.lib.GNU 1.1 10/18/96
+#
+# Build libraries (i.e., contain no binary executables)
+# GNU version
+# Requires GNU make
+#----------------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+# The following targets arrange to build both unshared and shared libraries
+#----------------------------------------------------------------------------
+
+VSHLIB = $(SHLIB:%.so=%$(VAR).so)
+VOBJS = $(LSRC:%.cpp=$(VDIR)%.o)
+
+ifdef TEMPINCDIR
+VSHOBJS1 =
+else
+LSRC += $(LSRC2)
+ifdef PRELIB
+VSHOBJS = $(LSRC:%.cpp=$(VSHDIR)%.so)
+VSHOBJS1 = $(VSHOBJS)
+else
+VSHOBJS = $(LSRC:%.cpp=$(VSHDIR)%.so)
+VSHOBJS1 = $(LSRC:%.cpp=$(VSHDIR)%.o)
+endif
+endif
+
+# Comment out for now...
+# $(DEFS:%=$(INSINC)/%) \
+
+INSTALL = $(VLIB:%.a=$(INSLIB)/%.a) \
+ $(VSHLIB:%.so=$(INSLIB)/%.so)
+
+ifdef PRELIB
+# Unfortunately, gcc has to do a link of all of the objects (during which
+# it may decide to recompile some of the objects), before we can safely build
+# any libraries or shared objects. Comment this line if no shared
+# libraries or objects are used.
+$(VSHOBJS): $(VSHLIB)
+endif
+
+# Comment these lines out if you want to build both *.a and *.so libraries...
+#$(VSHLIB): $(VSHOBJS) $(STATLIB)
+#ifdef PRELIB
+# $(PRELIB)
+#endif
+# $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)*.o
+
+# Uncomment the remaining lines if you want to build both *.a and *.so libraries...
+VLIB = $(LIB:%.a=%$(VAR).a)
+
+$(VLIB): $(VOBJS)
+ifdef PRELIB
+ $(PRELIB)
+endif
+ $(AR) $(ARFLAGS) $@ $?
+ifdef TEMPINCDIR
+# This is required for AIX!!!
+ if test -e xxx; \
+ then \
+ rm xxx; \
+ fi
+ (if test -s ./$(TEMPINCDIR)/*.C; \
+ then \
+ while ! test -e xxx; \
+ do \
+ touch xxx; \
+ cd ./$(TEMPINCDIR); \
+ for temp in *.C; \
+ do \
+ if ! test -d ./$(TEMPINCDIR); \
+ then \
+ cd ..; \
+ fi; \
+ if $(COMPILE.cc) -o $(VDIR)$$temp.o ./$(TEMPINCDIR)/$$temp; \
+ then \
+ $(AR) $(ARFLAGS) $@ $(VDIR)$$temp.o;\
+ else \
+ rm $@; \
+ rm xxx; \
+ exit; \
+ fi \
+ done; \
+ for temp in ./$(TEMPINCDIR)/*.C; \
+ do \
+ if test $$temp -nt xxx; \
+ then \
+ rm xxx; \
+ break; \
+ fi \
+ done \
+ done; \
+ fi)
+ rm xxx
+endif
+ -chmod a+r $@
+ -$(RANLIB) $@
+
+# Note that if you don't want to build shared libraries, just remove the $(VSHOBJS)
+$(VSHLIB): $(VSHOBJS) $(STATLIB)
+ifdef PRELIB
+ $(PRELIB)
+endif
+ $(SOLINK.cc) -o $@ $(VSHOBJS1) $(LDFLAGS) $(LIBS) $(STATLIB)
+ -chmod a+rx $@
+
+ifdef SHLIBA
+$(SHLIBA): $(VSHLIB)
+ $(AR) $(ARFLAGS) $@ $?
+ -chmod a+rx $@
+ -$(RANLIB) $@
+endif
diff --git a/include/makeinclude/rules.local.GNU b/include/makeinclude/rules.local.GNU
new file mode 100644
index 00000000000..1c3c30a44dd
--- /dev/null
+++ b/include/makeinclude/rules.local.GNU
@@ -0,0 +1,151 @@
+#----------------------------------------------------------------------------
+# @(#)rules.local.GNU 1.1 10/18/96
+#
+# Local targets
+# GNU version
+# Requires GNU make
+#----------------------------------------------------------------------------
+
+OBJDIRS = .obj .shobj # .obj_debug .obj_profile .obj_optimize
+
+all.local: build.objdirs build.local install.local
+
+#----------------------------------------------------------------------------
+# C/C++ compilation targets
+#----------------------------------------------------------------------------
+
+build.local: $(BUILD)
+
+# Set up the suffixes for C++ and IDL.
+.SUFFIXES:
+.SUFFIXES: .cpp .cc .C .idl $(SUFFIXES)
+
+# and here's how to compile C++ files from the IDL file.
+# only ONE of these rules will be run at make-time,
+
+%S.cpp: %.idl
+ $(IDL) $(IDLFLAGS) $<
+
+%C.cpp: %.idl
+ $(IDL) $(IDLFLAGS) $<
+
+%.hh: %.idl
+ $(IDL) $(IDLFLAGS) $<
+
+# C++ related targets
+
+$(VDIR)%.o: %.c
+ $(COMPILE.c) -o $@ $<
+
+$(VDIR)%.o: %.cpp
+ $(COMPILE.cc) -o $@ $<
+
+#$(VDIR)%.o: %.C
+# $(COMPILE.cc) -o $@ $<
+
+#$(VDIR)%.o: %.cc
+# $(COMPILE.cc) -o $@ $<
+
+# If SOLINK is defined, then the .so file is built from the .o file via
+# separate rules in the same directory. Otherwise, the .so and .o are
+# built via the same rule. SOLINK is required for the repository under
+# gcc.
+ifndef SOLINK
+$(VSHDIR)%.so: %.cpp
+ $(SOBUILD)
+else
+$(VSHDIR)%.o: %.cpp
+ $(COMPILE.cc) $(PIC) -o $@ $<
+$(VSHDIR)%.o: %.cc
+ $(COMPILE.cc) $(PIC) -o $@ $<
+$(VSHDIR)%.so: $(VSHDIR)%.o
+ $(SOLINK)
+endif
+
+#----------------------------------------------------------------------------
+# Library generation targets
+#----------------------------------------------------------------------------
+
+.PRECIOUS: $(VLIB)
+
+#----------------------------------------------------------------------------
+# Installation targets
+#----------------------------------------------------------------------------
+
+install.local: $(INSTALL)
+
+deinstall.local:
+ $(RM) $(INSTALL) $(LIB:%.a=$(INSLIB)/%*.a) $(SHLIB:%.so=$(INSLIB)/%*.so)
+
+$(INSBIN)/%$(VAR) \
+$(INSINC)/ace% \
+$(INSLIB)/%$(VAR).a \
+$(INSLIB)/%$(VAR).so \
+$(INSMAN)/man1/% \
+$(INSMAN)/man2/% \
+$(INSMAN)/man3/% \
+$(INSMAN)/man4/% \
+$(INSMAN)/man5/% \
+$(INSMAN)/man6/% \
+$(INSMAN)/man7/% \
+$(INSMAN)/man8/% \
+$(INSMAN)/manl/% \
+$(INSMAN)/mann/% :
+ @if test -s $@ ; then \
+ echo "$(@F) already installed" ; \
+ else \
+ echo "Installing $(@F) -> $(@D)" ; \
+ ln -s $(shell pwd)/$(@F) $@ ; \
+ fi
+
+#----------------------------------------------------------------------------
+# Cleanup targets
+#----------------------------------------------------------------------------
+
+clean.local:
+ -$(RM) -f *.o *~ *.bak *.rpo Makefile.old core
+ -$(RM) -rf $(OBJDIRS) $(TEMPINCDIR) ptrepository Templates.DB gcctemp.c
+
+realclean.local: clean.local
+ -$(RM) -f $(BIN:%=%) $(BIN:%=%_debug) $(BIN:%=%_profile) $(BIN:%=%_optimize) $(LIB:%=%) $(LIB:%=%_debug) $(LIB:%=%_profile) $(LIB:%=%_optimize) $(SHLIB:%=%) $(SHLIB:%=%_debug) $(SHLIB:%=%_profile) $(SHLIB:%=%_optimize)
+
+#----------------------------------------------------------------------------
+# Dependency generation target
+#----------------------------------------------------------------------------
+
+ifndef MAKEFILE
+MAKEFILE=Makefile
+endif
+
+depend.local: $(MAKEFILE)
+ @$(RM) -f $(MAKEFILE).old
+ @cp $(MAKEFILE) $(MAKEFILE).old
+ $(WRAPPER_ROOT)/bin/g++dep -f $(MAKEFILE) $(CPPFLAGS) $(LSRC) $(SRC)
+ @cat $(MAKEFILE) | \
+ sed -e "s;$(WRAPPER_ROOT);\$$(WRAPPER_ROOT);g" \
+ -e "s; /[-a-zA-Z0-9_./]*\.h;;g" \
+ -e "/:$$/d" \
+ -e "s;\([-a-zA-Z0-9._]*\)\.o:;.obj/\1.o .shobj/\1.so:;" \
+ > $(MAKEFILE).new
+ @mv $(MAKEFILE).new $(MAKEFILE)
+ @if cmp -s $(MAKEFILE) $(MAKEFILE).old ;\
+ then echo "Makefile dependencies unchanged." ;\
+ else \
+ echo "Makefile dependencies updated." ;\
+ fi ;\
+ $(RM) -f $(MAKEFILE).old ;
+#----------------------------------------------------------------------------
+# RCS info target
+#----------------------------------------------------------------------------
+
+rcs_info.local:
+ @rcs info
+
+#----------------------------------------------------------------------------
+# Variant targets and conditional macros
+#----------------------------------------------------------------------------
+
+build.objdirs: $(OBJDIRS)
+
+$(OBJDIRS):
+ test -d $@ || mkdir $@
diff --git a/include/makeinclude/rules.nested.GNU b/include/makeinclude/rules.nested.GNU
new file mode 100644
index 00000000000..bacf5604e8d
--- /dev/null
+++ b/include/makeinclude/rules.nested.GNU
@@ -0,0 +1,15 @@
+#----------------------------------------------------------------------------
+# @(#)rules.nested.GNU 1.1 10/18/96
+#
+# Nested directory targets makefile definitions
+#----------------------------------------------------------------------------
+
+$(TARGETS_NESTED):
+ @for dir in $(DIRS) ;\
+ do \
+ (cd $$dir ; \
+ echo "" ; \
+ echo " ========> Making $(@:.nested=) $(MAKEFLAGS): `pwd`"; \
+ $(MAKE) $(@:.nested=) MAKEFLAGS=$(MAKEFLAGS) ; \
+ echo "<======== End $(@:.nested=): `pwd`") \
+ done
diff --git a/include/makeinclude/rules.nolocal.GNU b/include/makeinclude/rules.nolocal.GNU
new file mode 100644
index 00000000000..b71f6742c75
--- /dev/null
+++ b/include/makeinclude/rules.nolocal.GNU
@@ -0,0 +1,8 @@
+#----------------------------------------------------------------------------
+# @(#)rules.nolocal.GNU 1.1 10/18/96
+#
+# Makefile for directories with no local build targets
+#----------------------------------------------------------------------------
+
+$(TARGETS_LOCAL):
+
diff --git a/include/makeinclude/rules.nonested.GNU b/include/makeinclude/rules.nonested.GNU
new file mode 100644
index 00000000000..fc4f2b6de14
--- /dev/null
+++ b/include/makeinclude/rules.nonested.GNU
@@ -0,0 +1,8 @@
+#----------------------------------------------------------------------------
+# @(#)rules.nonested.GNU 1.1 10/18/96
+#
+# Null nested targets
+#----------------------------------------------------------------------------
+
+$(TARGETS_NESTED):
+
diff --git a/include/makeinclude/wrapper_macros.GNU b/include/makeinclude/wrapper_macros.GNU
new file mode 100644
index 00000000000..1a3c1cb6ab8
--- /dev/null
+++ b/include/makeinclude/wrapper_macros.GNU
@@ -0,0 +1,116 @@
+#----------------------------------------------------------------------------
+# @(#)wrapper_macros.GNU 1.1 10/18/96
+#----------------------------------------------------------------------------
+#
+# Please see the README file in this directory to get a complete listing
+# of all the platform compilation macros that may be defined to port ACE.
+
+# The following describes the ACE wrapper macros
+#
+# Variable Description
+# -------- -----------
+# ARFLAGS Flags for the archive utility (ar)
+# CC C compiler command
+# CXX C++ compiler command
+# COMPILE.c Flags for compiling with C
+# COMPILE.cc Flags for compiling with C++
+# CPPFLAGS C pre-processor flags
+# CFLAGS C compilation flags
+# CCFLAGS C++ compilation flags
+# DCFLAGS C compilation flags for debugging
+# DCCFLAGS C++ compilation flags for debugging
+# DEFFLAGS C++ preprocessor flag for defining symbols
+# DLD Name of dynamic linker
+# IDL Name of the CORBA IDL compiler
+# INSBIN Binary (executable) installation directory
+# INSINC Include file installation directory
+# INSMAN Manpage installation directory
+# INSLIB Library installation directory
+# LDFLAGS ld linker flags
+# LINK.c Flags for linking with C
+# LINK.cc Flags for linking with C++
+# LINE_COMMAND A hook for passing commands to the linker, e.g., for Quantify
+# MAKEFLAGS Flags that are passed into the compilation from the commandline
+# OCFLAGS Optimizing C compilation flags
+# OCCFLAGS Optimizing C++ compilation flags
+# ORBIX_ROOT Root of IONA's Orbix CORBA implementation
+# PCFLAGS C compilation flags for profiling
+# PCCFLAGS C++ compilation flags for profiling
+# PTDIRS Pathnames of directories containing template code
+# RM Name of program to use to remove files
+# SOFLAGS Flags used to build a shared library
+# SOBUILD Link line necessary to build a share library
+# VAR Variant identifier suffix
+# VDIR Directory for object code
+# VSHDIR Directory for shared object code
+# WRAPPER_ROOT Pathname for the root of the build tree
+#
+#----------------------------------------------------------------------------
+# Platform-dependent macro definitions
+# (link to the appropriate platform-specific config file).
+#----------------------------------------------------------------------------
+
+include $(WRAPPER_ROOT)/include/makeinclude/platform_macros.GNU
+
+#----------------------------------------------------------------------------
+# Platform-independent macro definitions
+#----------------------------------------------------------------------------
+
+CPPFLAGS += $(DEFFLAGS) $(INCLDIRS)
+DCFLAGS += -g
+DCCFLAGS += -g
+IDL = idl
+IDLFLAGS = -s S.cpp -c C.cpp
+INCLDIRS += -I$(WRAPPER_ROOT) -I.
+INSBIN = $(WRAPPER_ROOT)/bin
+INSINC = $(WRAPPER_ROOT)/ace
+INSLIB = $(WRAPPER_ROOT)/ace
+INSMAN = $(WRAPPER_ROOT)/man
+LDFLAGS += -L$(WRAPPER_ROOT)/ace -L./
+LEX = flex
+# LINK_COMMAND = quantify -cache-dir=/tmp/quantify
+OCFLAGS += -O
+OCCFLAGS += -O
+PCFLAGS += # -p
+PCCFLAGS += # -p
+RM = /bin/rm
+VAR =
+VDIR = .obj/
+VSHDIR = .shobj/
+ifdef SHLIBA
+VLDLIBS :=$(VLDLIBS) -lACEshr $(LIBS)
+else
+VLDLIBS :=$(VLDLIBS) -lACE $(LIBS)
+endif
+YACC = yacc
+
+#----------------------------------------------------------------------------
+# Conditional macro definitions
+#----------------------------------------------------------------------------
+
+ifdef debug
+CFLAGS += $(DCFLAGS)
+CCFLAGS += $(DCCFLAGS)
+
+else
+ifdef profile
+CFLAGS += $(PCFLAGS)
+CCFLAGS += $(PCCFLAGS)
+
+else
+ifdef optimize
+CFLAGS += $(OCFLAGS) #-DNDEBUG
+CCFLAGS += $(OCCFLAGS) #-DNDEBUG
+
+else # default settings
+CFLAGS += $(DCFLAGS) #-DNDEBUG
+CCFLAGS += $(DCCFLAGS) #-DNDEBUG
+endif # optimize
+endif # profile
+endif # debug
+
+COMPILE.c =$(CC) $(CFLAGS) $(CPPFLAGS) -c
+COMPILE.cc =$(CXX) $(CCFLAGS) $(CPPFLAGS) $(PTDIRS) -c
+LINK.c =$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(LDLIBS) $(LIBS)
+LINK.cc =$(CXX) $(CCFLAGS) $(CPPFLAGS) $(PTDIRS)
+SOLINK.cc =$(LINK_COMMAND) $(DLD) $(SOFLAGS)