3 # NOTICE: The OpenGL Utility Toolkit (GLUT) distribution contains source
4 # code published in a book titled "Programming OpenGL for the X Window
5 # System" (ISBN: 0-201-48359-9) published by Addison-Wesley. The
6 # programs and associated files contained in the distribution were
7 # developed by Mark J. Kilgard and are Copyright 1994, 1995, 1996 by Mark
8 # J. Kilgard (unless otherwise noted). The programs are not in the
9 # public domain, but they are freely distributable without licensing
10 # fees. These programs are provided without guarantee or warrantee
11 # expressed or implied.
13 # GLUT source included with Mesa with permission from Mark Kilgard.
18 include $(TOP
)/configs
/current
76 OBJECTS
= $(SOURCES
:.c
=.o
)
82 $(CC
) -c
-I
$(TOP
)/include $(X11_INCLUDES
) $(CFLAGS
) $(GLUT_CFLAGS
) $<
88 default
: $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
)
92 $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
): depend
$(OBJECTS
)
93 $(TOP
)/bin
/mklib
-o
$(GLUT_LIB
) -linker
'$(CC)' \
94 -major
$(GLUT_MAJOR
) -minor
$(GLUT_MINOR
) -patch
$(GLUT_TINY
) \
95 $(MKLIB_OPTIONS
) -install $(TOP
)/$(LIB_DIR
) \
96 $(GLUT_LIB_DEPS
) $(OBJECTS
)
100 $(INSTALL
) -d
$(INSTALL_DIR
)/include/GL
101 $(INSTALL
) -d
$(INSTALL_DIR
)/$(LIB_DIR
)
102 $(INSTALL
) -m
644 $(TOP
)/include/GL
/glut.h
$(INSTALL_DIR
)/include/GL
103 $(INSTALL
) $(TOP
)/$(LIB_DIR
)/libglut
* $(INSTALL_DIR
)/$(LIB_DIR
)
111 -rm -rf depend depend.bak
115 @ echo
"running $(MKDEP)"
117 @
$(MKDEP
) $(MKDEP_OPTIONS
) -I
$(TOP
)/include $(SOURCES
) \