summaryrefslogtreecommitdiffstats
path: root/src/glw/Makefile.X11
diff options
context:
space:
mode:
Diffstat (limited to 'src/glw/Makefile.X11')
-rw-r--r--src/glw/Makefile.X1115
1 files changed, 8 insertions, 7 deletions
diff --git a/src/glw/Makefile.X11 b/src/glw/Makefile.X11
index a494e357f91..90b7f9d35ff 100644
--- a/src/glw/Makefile.X11
+++ b/src/glw/Makefile.X11
@@ -7,10 +7,12 @@ MAJOR = 1
MINOR = 0
TINY = 0
+TOP = ../..
+
VPATH = RCS
-INCDIRS = -I../include -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/X11R6/include
-LIBDIR = ../lib
+INCDIRS = -I$(TOP)/include -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/X11R6/include
+LIBDIR = $(TOP)/lib
# Use these sources for Motif (and Xt) support. Requires Motif header files.
#SOURCES = GLwDrawA.c GLwMDrawA.c
@@ -43,9 +45,8 @@ targets: $(LIBDIR)/$(GLW_LIB) message
# Make the library
$(LIBDIR)/$(GLW_LIB): $(OBJECTS)
- $(MAKELIB) $(GLW_LIB) $(MAJOR) $(MINOR) $(TINY) $(OBJECTS)
- mv $(GLW_LIB)* $(LIBDIR)
- -mv *.a $(LIBDIR)
+ $(TOP)/bin/mklib -o GLw -major $(MAJOR) -minor $(MINOR) \
+ -patch $(TINY) $(GLW_LIB_DEPS) -install $(LIBDIR) $(OBJECTS)
message:
@@ -56,7 +57,7 @@ message:
@echo
-include ../Make-config
+include $(TOP)/Make-config
include depend
@@ -67,4 +68,4 @@ include depend
# by any source file.
#
dep: $(SOURCES)
- makedepend -fdepend -Y -I../include $(SOURCES)
+ makedepend -fdepend -Y -I$(TOP)/include $(SOURCES)