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 $(TOP
)/src
/mesa
/libglapi.a \
32 $(TOP
)/src
/mesa
/libmesa.a \
33 $(GALLIUM_AUXILIARIES
)
36 LOCAL_CFLAGS
= -D_EGL_PLATFORM_X
=1
40 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $(LOCAL_CFLAGS
) $< -o
$@
46 default
: depend library Makefile
49 library
: $(TOP
)/$(LIB_DIR
)/$(DRIVER_NAME
)
52 # Make the egl_softpipe.so library
53 $(TOP
)/$(LIB_DIR
)/$(DRIVER_NAME
): $(WINSYS_OBJECTS
) $(LIBS
)
54 $(TOP
)/bin
/mklib
-o
$(DRIVER_NAME
) \
57 -install $(TOP
)/$(LIB_DIR
) \
58 $(MKLIB_OPTIONS
) $(WINSYS_OBJECTS
) \
59 --start-group
$(LIBS
) --end-group
62 depend
: $(ALL_SOURCES
)
63 @ echo
"running $(MKDEP)"
64 @
rm -f depend
# workaround oops on gutsy?!?
66 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(ALL_SOURCES
) \
67 > /dev
/null
2>/dev
/null
71 $(INSTALL
) -d
$(INSTALL_DIR
)/$(LIB_DIR
)
72 @if
[ -e
$(TOP
)/$(LIB_DIR
) ]; then \
73 $(INSTALL
) $(TOP
)/$(LIB_DIR
)/$(DRIVER_NAME
) $(INSTALL_DIR
)/$(LIB_DIR
); \
79 etags
`find . -name \*.[ch]` $(TOP
)/include/GL
/*.h