diff options
Diffstat (limited to 'src/glu/sgi/Makefile.X11')
-rw-r--r-- | src/glu/sgi/Makefile.X11 | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/glu/sgi/Makefile.X11 b/src/glu/sgi/Makefile.X11 index 5481b508c76..2925d6eaa23 100644 --- a/src/glu/sgi/Makefile.X11 +++ b/src/glu/sgi/Makefile.X11 @@ -1,9 +1,3 @@ -# $Id: Makefile.X11,v 1.7 2002/01/08 15:58:32 brianp Exp $ - -# Mesa 3-D graphics library -# Version: 4.1 -# Copyright (C) 1995-2002 Brian Paul - # Makefile for SGI SI GLU library .SUFFIXES : .cc @@ -16,8 +10,9 @@ GLU_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY) VPATH = RCS -INCDIRS = -I../include -Iinclude -Iinternals -Ilibnurbs/internals -Ilibnurbs/interface -Ilibnurbs/nurbtess -LIBDIR = ../lib +TOP = .. +INCDIRS = -I$(TOP)/include -Iinclude -Iinternals -Ilibnurbs/internals -Ilibnurbs/interface -Ilibnurbs/nurbtess +LIBDIR = $(TOP)/lib C_SOURCES = \ libutil/error.c \ @@ -125,7 +120,7 @@ OBJECTS = $(C_OBJECTS) $(CC_OBJECTS) $(CC) -c $(INCDIRS) $(CFLAGS) -DNDEBUG -DLIBRARYBUILD $< -o $@ .cc.o: - $(CPLUSPLUS) -c $(INCDIRS) $(CCFLAGS) -DNDEBUG -DLIBRARYBUILD $< -o $@ + $(CXX) -c $(INCDIRS) $(CXXFLAGS) -DNDEBUG -DLIBRARYBUILD $< -o $@ ##### TARGETS ##### @@ -143,11 +138,13 @@ targets: $(LIBDIR)/$(GLU_LIB) # Make the library: $(LIBDIR)/$(GLU_LIB): $(OBJECTS) - $(MAKELIB) $(GLU_LIB) $(GLU_MAJOR) $(GLU_MINOR) $(GLU_TINY) $(OBJECTS) - rm -f $(LIBDIR)/$(GLU_LIB)* - mv $(GLU_LIB)* $(LIBDIR) + $(TOP)/bin/mklib -o GLU -major $(GLU_MAJOR) -minor $(GLU_MINOR) \ + -patch $(GLU_TINY) $(GLU_LIB_DEPS) -cplusplus \ + -install $(LIBDIR) $(OBJECTS) + + -include ../Make-config +include $(TOP)/Make-config include depend @@ -158,4 +155,4 @@ include depend # by any source file. # dep: $(SOURCES) - makedepend -fdepend -Y -I../include $(SOURCES) + makedepend -fdepend -Y -I$(TOP)/include $(SOURCES) |