ref: d60389be36aae2b97889f335e0d2654ec2eb85a7
parent: a1b60580a22958a519aa77d48f7b3d2817996283
author: David Turner <[email protected]>
date: Mon Feb 21 12:46:24 EST 2000
formatting
--- a/demos/graph/rules.mk
+++ b/demos/graph/rules.mk
@@ -81,7 +81,7 @@
# in the future in order to support more systems. Probably something
# like a `config/<system>' hierarchy with a system-specific rules file
# to indicate how to make a library file, but for now, I'll stick to
-# unix and OS/2-gcc..
+# unix, Win32 and OS/2-gcc..
#
#
$(GRAPH_LIB): $(GRAPH_OBJS)
@@ -101,3 +101,4 @@
$(CC) $(CFLAGS) $(GRAPH_INCLUDES:%=$I%) \
$(DEVICE_INCLUDES:%=$I%) \
$(DEVICES:%=$DDEVICE_%) $T$@ $<
+
--- a/demos/graph/win32/rules.mk
+++ b/demos/graph/win32/rules.mk
@@ -7,6 +7,8 @@
ifeq ($(PLATFORM),win32)
+# directory of the Win32 graphics driver
+#
GR_WIN32 := $(GRAPH_)win32
GR_WIN32_ := $(GR_WIN32)$(SEP)
--- a/demos/graph/x11/rules.mk
+++ b/demos/graph/x11/rules.mk
@@ -37,7 +37,7 @@
# Update some variables to compile the X11 graphics module. Note that
# X11 is available on Unix, or on OS/2. However, it only compiles with
# gcc on the latter platform, which is why it is safe to use the flags
-# `-L' and `-l'
+# `-L' and `-l' in GRAPH_LINK
#
ifneq ($(X11_PATH),)
@@ -47,7 +47,7 @@
# the GRAPH_LINK variable is expanded each time an executable is linked against
# the graphics library..
#
-GRAPH_LINK += $(X11_LIB:%=-L%) -lX11
+GRAPH_LINK += -L$(X11_LIB) -lX11
# Solaris needs a -lsocket in GRAPH_LINK ..
#