1 # src/gallium/winsys/xlib/Makefile
3 # This makefile produces a "stand-alone" libGL.so which is based on
4 # Xlib (no DRI HW acceleration)
8 include $(TOP
)/configs
/current
13 GL_TINY
= 0$(MESA_MAJOR
)0$(MESA_MINOR
)0$(MESA_TINY
)
19 -I
$(TOP
)/src
/mesa
/main \
20 -I
$(TOP
)/src
/gallium
/include \
21 -I
$(TOP
)/src
/gallium
/drivers \
22 -I
$(TOP
)/src
/gallium
/auxiliary
24 XLIB_WINSYS_SOURCES
= \
33 XLIB_WINSYS_OBJECTS
= $(XLIB_WINSYS_SOURCES
:.c
=.o
)
36 ifeq ($(CONFIG_NAME
), linux-cell
)
37 # The SPU code is in a separate .a file, unfortunately
38 CELL_SPU_LIB
= $(TOP
)/src
/gallium
/drivers
/cell
/spu
/g3d_spu.a
43 $(TOP
)/src
/mesa
/libglapi.a \
44 $(TOP
)/src
/mesa
/libmesa.a \
45 $(GALLIUM_AUXILIARIES
) \
52 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
55 $(CXX
) -c
$(INCLUDE_DIRS
) $(CXXFLAGS
) $< -o
$@
59 default
: $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
62 # Make the libGL.so library
63 $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
): $(XLIB_WINSYS_OBJECTS
) $(LIBS
)
64 $(TOP
)/bin
/mklib
-o
$(GL_LIB
) \
66 -major
$(GL_MAJOR
) -minor
$(GL_MINOR
) -patch
$(GL_TINY
) \
67 -install $(TOP
)/$(LIB_DIR
) \
68 $(MKLIB_OPTIONS
) $(XLIB_WINSYS_OBJECTS
) \
69 --start-group
$(LIBS
) --end-group
$(GL_LIB_DEPS
)
72 depend
: $(ALL_SOURCES
)
73 @ echo
"running $(MKDEP)"
74 @
rm -f depend
# workaround oops on gutsy?!?
76 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(ALL_SOURCES
) \
77 > /dev
/null
2>/dev
/null
81 $(INSTALL
) -d
$(INSTALL_DIR
)/include/GL
82 $(INSTALL
) -d
$(INSTALL_DIR
)/$(LIB_DIR
)
83 $(INSTALL
) -m
644 $(TOP
)/include/GL
/*.h
$(INSTALL_DIR
)/include/GL
84 @if
[ -e
$(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) ]; then \
85 $(INSTALL
) $(TOP
)/$(LIB_DIR
)/libGL
* $(INSTALL_DIR
)/$(LIB_DIR
); \
91 etags
`find . -name \*.[ch]` $(TOP
)/include/GL
/*.h