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
78 OBJECTS
= $(SOURCES
:.c
=.o
)
84 $(CC
) -c
-I
$(TOP
)/include $(X11_INCLUDES
) $(CFLAGS
) $(GLUT_CFLAGS
) $<
90 default
: $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
)
94 $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
): depend
$(OBJECTS
)
95 $(MKLIB
) -o
$(GLUT_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
96 -major
$(GLUT_MAJOR
) -minor
$(GLUT_MINOR
) -patch
$(GLUT_TINY
) \
97 $(MKLIB_OPTIONS
) -install $(TOP
)/$(LIB_DIR
) \
98 -id
$(INSTALL_LIB_DIR
)/lib
$(GLUT_LIB
).
$(GLUT_MAJOR
).dylib \
99 $(GLUT_LIB_DEPS
) $(OBJECTS
)
102 # glut pkgconfig file
104 -e
's,@INSTALL_DIR@,$(INSTALL_DIR),' \
105 -e
's,@INSTALL_LIB_DIR@,$(INSTALL_LIB_DIR),' \
106 -e
's,@INSTALL_INC_DIR@,$(INSTALL_INC_DIR),' \
107 -e
's,@VERSION@,$(GLUT_MAJOR).$(GLUT_MINOR).$(GLUT_TINY),' \
108 -e
's,@GLUT_PC_REQ_PRIV@,$(GLUT_PC_REQ_PRIV),' \
109 -e
's,@GLUT_PC_LIB_PRIV@,$(GLUT_PC_LIB_PRIV),' \
110 -e
's,@GLUT_PC_CFLAGS@,$(GLUT_PC_CFLAGS),' \
111 -e
's,@GLUT_LIB@,$(GLUT_LIB),'
116 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_INC_DIR
)/GL
117 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_LIB_DIR
)
118 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_LIB_DIR
)/pkgconfig
119 $(INSTALL
) -m
644 $(TOP
)/include/GL
/glut.h
$(DESTDIR
)$(INSTALL_INC_DIR
)/GL
120 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_GLOB
) $(DESTDIR
)$(INSTALL_LIB_DIR
)
121 $(INSTALL
) -m
644 glut.
pc $(DESTDIR
)$(INSTALL_LIB_DIR
)/pkgconfig
130 -rm -f depend depend.bak
134 @ echo
"running $(MKDEP)"
137 @
$(MKDEP
) $(MKDEP_OPTIONS
) -I
$(TOP
)/include $(SOURCES
) \
138 $(X11_INCLUDES
) > /dev
/null