changed rules to build demos on Solaris
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
diff --git a/demos/config/x11/rules.mk b/demos/config/x11/rules.mk
index ee616e9..58feda1 100644
--- a/demos/config/x11/rules.mk
+++ b/demos/config/x11/rules.mk
@@ -14,15 +14,17 @@
#
ifneq ($(findstring X11R6$(SEP)bin,$(PATH)),)
xversion := X11R6
-endif
+else
ifneq ($(findstring X11R5$(SEP)bin,$(PATH)),)
xversion := X11R5
-endif
+else
ifneq ($(findstring X11$(SEP)bin,$(PATH)),)
xversion := X11
endif
+endif
+endif
ifdef xversion
X11_PATH := $(subst ;, ,$(PATH)) $(subst :, ,$(PATH))
@@ -47,10 +49,20 @@ X11_LIB := $(X11_PATH)$(SEP)lib
#
GRAPH_LINK += -L$(X11_LIB) -lX11
+# Solaris needs a -lsocket in GRAPH_LINK ..
+#
+UNAME := $(shell uname)
+ifneq ($(findstring $(UNAME),SunOS Solaris),)
+GRAPH_LINK += -lsocket
+endif
+
+
# add the X11 driver object file to the graphics library
#
GRAPH_OBJS += $(OBJ_)grx11.$O
+
+
GR_X11 := config$(SEP)x11
GR_X11_ := $(GR_X11)$(SEP)