72781824460cccae511e09dbc8afed45ee920da3
1 # src/mesa/drivers/xorg/Makefile
4 include $(TOP
)/configs
/current
30 ########################################
32 MESA_MODULES
= $(TOP
)/src
/mesa
/libmesa.a
34 C_SOURCES
+= ..
/common
/driverfuncs.c
35 ifeq ("${DRIVER_DIRS}", "dri")
36 C_SOURCES
+= ..
/dri
/common
/utils.c
39 OBJECTS
= $(C_SOURCES
:.c
=.o
)
41 ### Include directories
47 -I
$(TOP
)/src
/mesa
/main \
48 -I
$(TOP
)/src
/mesa
/glapi \
49 `pkg-config --cflags xorg-server`
51 ifeq ("${DRIVER_DIRS}", "dri")
53 -I
$(TOP
)/src
/mesa
/drivers
/dri
/common \
54 `pkg-config --cflags libdrm`
57 # undef 'USE_XSHM' to make it explicit that 'XFree86Server' takes precedence
58 DRIVER_DEFINES
= -UUSE_XSHM
-DXFree86Server
63 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DRIVER_DEFINES
) $< -o
$@
68 default
: depend symlinks
$(LIBNAME
)
71 $(LIBNAME
): $(OBJECTS
) $(MESA_MODULES
) Makefile
72 $(TOP
)/bin
/mklib
-noprefix
-o
$@ \
73 $(OBJECTS
) $(MESA_MODULES
) $(GLCORE_LIB_DEPS
)
76 depend
: $(C_SOURCES
) $(SYMLINKS
)
78 $(MKDEP
) $(MKDEP_OPTIONS
) $(DRIVER_DEFINES
) $(INCLUDES
) $(C_SOURCES
) \
83 -rm -f
*.o
*.so
$(SYMLINKS
)
84 -rm -f depend depend.bak
87 $(INSTALL
) -d
$(DRI_DRIVER_INSTALL_DIR
)
88 $(INSTALL
) -m
755 $(LIBNAME
) $(DRI_DRIVER_INSTALL_DIR
)
91 @
[ -e
$@
] || ln
-sf ..
/x11
/$@ .
/