--- Makefile.common	13 Sep 2002 17:08:33 -0000	1.1.1.1.4.2
+++ Makefile.common	13 Sep 2002 17:40:14 -0000
@@ -129,14 +129,7 @@
 LinkG    := $(Link) -g  -L $(LIBDEBUG)
 LinkO    := $(Link) -O3 -L $(LIBRELEASE)
 
-# Create a .so file from a .o files...
-MakeSO   := $(CXX) -shared $(PROFILE)
-#MakeSO   := $(CXX) -G $(PROFILE)
-MakeSOO  := $(MakeSO) -O3
-
-# Have gcc tell the linker to export symbols from the program so
-# that dynamically loaded modules can be linked against them.
-ExportSymbols	:= -Wl,--export-dynamic	# Only needed by Linux
+MakeSOO  = $(MakeSO) -O3
 
 # Create one .o file from a bunch of .o files...
 Relink = ld -r
@@ -146,6 +139,12 @@
 
 # Archive a bunch of .o files into a .a file...
 AR       = ar cq 
+
+# Include the platform-specific Makefile.
+ifeq ($(PLATFORM),)
+PLATFORM := $(shell uname)
+endif
+include $(LEVEL)/Makefile.$(PLATFORM)
 
 #----------------------------------------------------------
 
--- /dev/null	Thu Aug 30 15:30:55 2001
+++ Makefile.Linux	Fri Sep 13 12:35:30 2002
@@ -0,0 +1,6 @@
+# Create a .so file from a .o files...
+MakeSO   := $(CXX) -shared $(PROFILE)
+
+# Have gcc tell the linker to export symbols from the program so
+# that dynamically loaded modules can be linked against them.
+ExportSymbols	:= -Wl,--export-dynamic	# Only needed by Linux
--- /dev/null	Thu Aug 30 15:30:55 2001
+++ Makefile.SunOS	Fri Sep 13 12:33:45 2002
@@ -0,0 +1,2 @@
+# Create a .so file from a .o files...
+MakeSO   := $(CXX) -G $(PROFILE)
