1 # src/mesa/drivers/directfb/Makefile
5 include $(TOP
)/configs
/current
11 -I
$(TOP
)/src
/mesa
/main \
12 -I
$(TOP
)/src
/mesa
/glapi \
13 -I
$(TOP
)/src
/mesa
/math \
14 -I
$(TOP
)/src
/mesa
/tnl \
15 -I
$(TOP
)/src
/mesa
/shader \
16 -I
$(TOP
)/src
/mesa
/swrast \
17 -I
$(TOP
)/src
/mesa
/swrast_setup
19 DFB_CFLAGS
= $(shell pkg-config
--cflags directfb
)
20 DFB_MODULEDIR
= $(shell pkg-config
--variable
=moduledir directfb-internal
)
22 DIRECTFBGL_MESA_SOURCES
= ..
/common
/driverfuncs.c idirectfbgl_mesa.c
24 DIRECTFBGL_MESA_OBJECTS
= $(DIRECTFBGL_MESA_SOURCES
:.c
=.o
)
26 DIRECTFBGL_MESA
= libidirectfbgl_mesa.so
28 LIBS
= $(TOP
)/src
/mesa
/libmesa.a
$(TOP
)/src
/mesa
/libglapi.a
32 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $(DFB_CFLAGS
) $< -o
$@
35 default
: directfb-libgl directfbgl_mesa
38 # XXX this used to be in src/mesa/Makefile and is probably broken now
39 directfb-libgl
: $(LIBS
)
40 @
$(MKLIB
) -o
$(GL_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
41 -major
$(MESA_MAJOR
) -minor
$(MESA_MINOR
) -patch
$(MESA_TINY
) \
42 -install $(TOP
)/$(LIB_DIR
) $(MKLIB_OPTIONS
) $(LIBS
) \
47 # Mesa DirectFBGL module
48 directfbgl_mesa
: $(DIRECTFBGL_MESA_OBJECTS
)
49 $(CC
) -shared
$(CFLAGS
) $(DIRECTFBGL_MESA_OBJECTS
) -o
$(DIRECTFBGL_MESA
) \
50 -Wl
,-soname
-Wl
,$(DIRECTFBGL_MESA
) -L
$(TOP
)/$(LIB_DIR
) -lGL
-lm
54 @if
test -d
$(DFB_MODULEDIR
); then \
55 echo
"Installing DirectFBGL module."; \
57 echo
"*** Failed to determine DirectFB module's directory."; \
58 echo
"*** Installation aborted."; \
61 test -d
$(DFB_MODULEDIR
)/interfaces
/IDirectFBGL
/ || mkdir
$(DFB_MODULEDIR
)/interfaces
/IDirectFBGL
/
62 install -m
755 $(DIRECTFBGL_MESA
) $(DFB_MODULEDIR
)/interfaces
/IDirectFBGL
/