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
/state_trackers
/glx
/xlib \
23 -I
$(TOP
)/src
/gallium
/auxiliary
27 #-DGALLIUM_CELL will be defined by the config */
29 XLIB_WINSYS_SOURCES
= \
36 XLIB_WINSYS_OBJECTS
= $(XLIB_WINSYS_SOURCES
:.c
=.o
)
39 # Note: CELL_SPU_LIB is only defined for cell configs
43 $(TOP
)/src
/gallium
/state_trackers
/glx
/xlib
/libxlib.a \
44 $(TOP
)/src
/mesa
/libglapi.a \
45 $(TOP
)/src
/mesa
/libmesagallium.a \
46 $(GALLIUM_AUXILIARIES
) \
53 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
56 $(CXX
) -c
$(INCLUDE_DIRS
) $(CXXFLAGS
) $< -o
$@
60 default
: $(TOP
)/$(LIB_DIR
)/gallium
$(TOP
)/$(LIB_DIR
)/gallium
/$(GL_LIB_NAME
)
62 $(TOP
)/$(LIB_DIR
)/gallium
:
63 @ mkdir
-p
$(TOP
)/$(LIB_DIR
)/gallium
65 # Make the libGL.so library
66 $(TOP
)/$(LIB_DIR
)/gallium
/$(GL_LIB_NAME
): $(XLIB_WINSYS_OBJECTS
) $(LIBS
) Makefile
67 $(TOP
)/bin
/mklib
-o
$(GL_LIB
) \
69 -major
$(GL_MAJOR
) -minor
$(GL_MINOR
) -patch
$(GL_TINY
) \
70 -install $(TOP
)/$(LIB_DIR
)/gallium \
71 $(MKLIB_OPTIONS
) $(XLIB_WINSYS_OBJECTS
) \
72 -Wl
,--start-group
$(LIBS
) -Wl
,--end-group
$(GL_LIB_DEPS
)
75 depend
: $(XLIB_WINSYS_SOURCES
)
76 @ echo
"running $(MKDEP)"
77 @
rm -f depend
# workaround oops on gutsy?!?
79 $(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(XLIB_WINSYS_SOURCES
) \
80 > /dev
/null
2>/dev
/null
84 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/include/GL
85 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
)
86 $(INSTALL
) -m
644 $(TOP
)/include/GL
/*.h
$(DESTDIR
)$(INSTALL_DIR
)/include/GL
87 @if
[ -e
$(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) ]; then \
88 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/libGL
* $(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
); \
94 etags
`find . -name \*.[ch]` $(TOP
)/include/GL
/*.h