1 # src/mesa/drivers/x11/Makefile for libGL.so
3 # This builds "stand-alone" Mesa, a version of libGL that does not need the
4 # GLX extension. All rendering is converted to Xlib calls. No hardware
10 include $(TOP
)/configs
/current
15 GL_TINY
= 0$(MESA_MAJOR
)0$(MESA_MINOR
)0$(MESA_TINY
)
39 OBJECTS
= $(SOURCES
:.c
=.o
)
44 -I
$(TOP
)/src
/mesa
/main
46 CORE_MESA
= $(TOP
)/src
/mesa
/libmesa.a
$(TOP
)/src
/mesa
/libglapi.a
51 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
54 default
: $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
57 $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
): $(OBJECTS
) $(CORE_MESA
)
58 @
$(MKLIB
) -o
$(GL_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
59 -major
$(GL_MAJOR
) -minor
$(GL_MINOR
) -patch
$(GL_TINY
) \
60 -install $(TOP
)/$(LIB_DIR
) \
61 $(MKLIB_OPTIONS
) $(GL_LIB_DEPS
) $(OBJECTS
) $(CORE_MESA
)
67 -rm -f depend depend.bak
71 depend
: $(SOURCES
) $(HEADERS
)
72 @ echo
"running $(MKDEP)"
74 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(SOURCES
) $(HEADERS
) \
75 > /dev
/null
2>/dev
/null