From 6e0fccdd68e93827e6fa8246bffffd0bb57b2bcb Mon Sep 17 00:00:00 2001
From: ram <ram>
Date: Thu, 27 Oct 1994 19:15:39 +0000
Subject: [PATCH] Move plamform specific make stuff to Config.

---
 motif/server/Config.hpux_cc   |  6 ++++++
 motif/server/Config.pmax_mach |  2 ++
 motif/server/Config.solaris   |  4 ++++
 motif/server/GNUmakefile      | 27 +++++++--------------------
 4 files changed, 19 insertions(+), 20 deletions(-)
 create mode 100644 motif/server/Config.hpux_cc
 create mode 100644 motif/server/Config.pmax_mach
 create mode 100644 motif/server/Config.solaris

diff --git a/motif/server/Config.hpux_cc b/motif/server/Config.hpux_cc
new file mode 100644
index 000000000..abac39f2c
--- /dev/null
+++ b/motif/server/Config.hpux_cc
@@ -0,0 +1,6 @@
+CC = cc -Ae
+
+CFLAGS = -O -I/usr/include/X11R5 -I/usr/include/Motif1.2
+
+# -Wl,-a,archive forces motif libraries to be included (not shared.)
+LDFLAGS = -L/usr/lib/X11R5 -L/usr/lib/Motif1.2
diff --git a/motif/server/Config.pmax_mach b/motif/server/Config.pmax_mach
new file mode 100644
index 000000000..614218b48
--- /dev/null
+++ b/motif/server/Config.pmax_mach
@@ -0,0 +1,2 @@
+CFLAGS = -O -G 0 -I/usr/misc/.motif/include -I/usr/misc/.X11/include
+LDFLAGS = -G 0 -L/usr/misc/.X11/lib -L/usr/misc/.motif/lib
diff --git a/motif/server/Config.solaris b/motif/server/Config.solaris
new file mode 100644
index 000000000..365119bcb
--- /dev/null
+++ b/motif/server/Config.solaris
@@ -0,0 +1,4 @@
+# -DSVR4 is needed for X and for Solaris.
+CFLAGS = -O -DSVR4 -I/usr/openwin/include
+LDFLAGS = -L/usr/openwin/lib -R/usr/openwin/lib
+LIBS = -lXm -lXt -lX11 -lsocket -lnsl -lgen
diff --git a/motif/server/GNUmakefile b/motif/server/GNUmakefile
index 260bf3d5f..3793e3612 100644
--- a/motif/server/GNUmakefile
+++ b/motif/server/GNUmakefile
@@ -1,30 +1,17 @@
-CC = cc
-#CC = gcc
-
-#
-# Places to look for X and Motif headers
-XHDR  = -I/usr/misc/.X11/include
-XMHDR = -I/usr/misc/.motif/include
-
-#
-# Places to look for X and Motif libraries
-XLIB  = -L/usr/misc/.X11/lib
-XMLIB = -L/usr/misc/.motif/lib
-
-#
-# -G 0 option is for MIPS only
-CFLAGS = -O -G 0 $(XHDR) $(XMHDR)
-LDFLAGS = -G 0 $(XLIB) $(XMLIB)
+CC = gcc
 LIBS = -lXm -lXt -lX11
+CFLAGS = -O
+LDFLAGS =
+
+TARGET = motifd
 OBJS = main.o server.o translations.o packet.o message.o datatrans.o \
        requests.o callbacks.o widgets.o resources.o tables.o motif.o \
-       text.o xmstring.o list.o events.o
-TARGET = motifd
+       text.o xmstring.o list.o events.o timer-support.o
 
+include Config
 
 $(TARGET) : $(OBJS)
 	$(CC) -o $(TARGET) $(LDFLAGS) $(OBJS) $(LIBS)
-	strip $(TARGET)
 
 tables.o : tables.c StringTable.h ClassTable.h TypeTable.h
 	$(CC) $(CFLAGS) -c tables.c
-- 
GitLab