1 # src/gallium/targets/libgl-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
)
20 -I
$(TOP
)/src
/mesa
/main \
21 -I
$(TOP
)/src
/gallium
/include \
22 -I
$(TOP
)/src
/gallium
/drivers \
23 -I
$(TOP
)/src
/gallium
/state_trackers
/glx
/xlib \
24 -I
$(TOP
)/src
/gallium
/auxiliary \
29 #-DGALLIUM_CELL will be defined by the config */
31 XLIB_TARGET_SOURCES
= \
35 XLIB_TARGET_OBJECTS
= $(XLIB_TARGET_SOURCES
:.c
=.o
)
38 # Note: CELL_SPU_LIB is only defined for cell configs
42 $(TOP
)/src
/gallium
/state_trackers
/glx
/xlib
/libxlib.a \
43 $(TOP
)/src
/gallium
/winsys
/sw
/xlib
/libws_xlib.a \
44 $(TOP
)/src
/gallium
/drivers
/trace
/libtrace.a \
45 $(TOP
)/src
/gallium
/drivers
/rbug
/librbug.a \
46 $(TOP
)/src
/gallium
/drivers
/identity
/libidentity.a \
47 $(TOP
)/src
/mapi
/glapi
/libglapi.a \
48 $(TOP
)/src
/mesa
/libmesagallium.a \
49 $(GALLIUM_AUXILIARIES
) \
56 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
59 $(CXX
) -c
$(INCLUDE_DIRS
) $(CXXFLAGS
) $< -o
$@
63 default
: $(TOP
)/$(LIB_DIR
)/gallium
$(TOP
)/$(LIB_DIR
)/gallium
/$(GL_LIB_NAME
)
65 $(TOP
)/$(LIB_DIR
)/gallium
:
66 @ mkdir
-p
$(TOP
)/$(LIB_DIR
)/gallium
68 # Make the libGL.so library
69 $(TOP
)/$(LIB_DIR
)/gallium
/$(GL_LIB_NAME
): $(XLIB_TARGET_OBJECTS
) $(LIBS
) Makefile
70 $(TOP
)/bin
/mklib
-o
$(GL_LIB
) \
72 -major
$(GL_MAJOR
) -minor
$(GL_MINOR
) -patch
$(GL_TINY
) \
73 -install $(TOP
)/$(LIB_DIR
)/gallium \
74 $(MKLIB_OPTIONS
) $(XLIB_TARGET_OBJECTS
) \
75 -Wl
,--start-group
$(LIBS
) -Wl
,--end-group
$(GL_LIB_DEPS
)
78 depend
: $(XLIB_TARGET_SOURCES
)
79 @ echo
"running $(MKDEP)"
80 @
rm -f depend
# workaround oops on gutsy?!?
82 $(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(XLIB_TARGET_SOURCES
) \
83 > /dev
/null
2>/dev
/null
87 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/include/GL
88 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
)
89 $(INSTALL
) -m
644 $(TOP
)/include/GL
/*.h
$(DESTDIR
)$(INSTALL_DIR
)/include/GL
90 @if
[ -e
$(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) ]; then \
91 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/libGL
* $(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
); \
97 etags
`find . -name \*.[ch]` $(TOP
)/include/GL
/*.h