1 # src/gallium/winsys/egl_xlib/Makefile
3 # Build softpipe/xlib/EGL driver library/object: "egl_softpipe.so"
7 include $(TOP
)/configs
/current
10 DRIVER_NAME
= egl_softpipe.so
15 -I
$(TOP
)/src
/egl
/main \
17 -I
$(TOP
)/src
/mesa
/main \
18 -I
$(TOP
)/src
/gallium
/include \
19 -I
$(TOP
)/src
/gallium
/drivers \
20 -I
$(TOP
)/src
/gallium
/auxiliary
26 WINSYS_OBJECTS
= $(WINSYS_SOURCES
:.c
=.o
)
31 $(GALLIUM_AUXILIARIES
)
33 # XXX temporary (should create a separate lib with the GL API funcs and
34 # mesa code, as done for ES 1.x, 2.x, OpenVG, etc)
36 $(TOP
)/src
/mesa
/libglapi.a \
37 $(TOP
)/src
/mesa
/libmesagallium.a \
40 LOCAL_CFLAGS
= -D_EGL_PLATFORM_X
=1
44 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $(LOCAL_CFLAGS
) $< -o
$@
50 default
: depend library Makefile
53 library
: $(TOP
)/$(LIB_DIR
)/$(DRIVER_NAME
)
56 # Make the egl_softpipe.so library
57 $(TOP
)/$(LIB_DIR
)/$(DRIVER_NAME
): $(WINSYS_OBJECTS
) $(LIBS
)
58 $(TOP
)/bin
/mklib
-o
$(DRIVER_NAME
) \
61 -install $(TOP
)/$(LIB_DIR
) \
62 $(MKLIB_OPTIONS
) $(WINSYS_OBJECTS
) \
63 --whole-archive
$(LIBS
) --no-whole-archive
66 depend
: $(ALL_SOURCES
)
67 @ echo
"running $(MKDEP)"
68 @
rm -f depend
# workaround oops on gutsy?!?
70 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(ALL_SOURCES
) \
71 > /dev
/null
2>/dev
/null
75 $(INSTALL
) -d
$(INSTALL_DIR
)/$(LIB_DIR
)
76 @if
[ -e
$(TOP
)/$(LIB_DIR
) ]; then \
77 $(INSTALL
) $(TOP
)/$(LIB_DIR
)/$(DRIVER_NAME
) $(INSTALL_DIR
)/$(LIB_DIR
); \
83 etags
`find . -name \*.[ch]` $(TOP
)/include/GL
/*.h