3 MESA_MODULES = $(TOP)/src/mesa/libmesa.a
6 ../../common/driverfuncs.c \
10 ../common/dri_util.c \
11 ../common/xmlconfig.c \
12 ../common/drirenderbuffer.c
15 ../common/dri_bufmgr.c \
16 ../common/dri_drmpool.c
19 ifeq ($(WINDOW_SYSTEM),dri)
22 INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
24 OBJECTS = $(C_SOURCES:.c=.o) \
30 WINLIB=-L$(MESA)/src/glx/mini
31 MINIGLX_INCLUDES = -I$(TOP)/src/glx/mini
32 INCLUDES = $(MINIGLX_INCLUDES) \
36 OBJECTS = $(C_SOURCES:.c=.o) \
37 $(MINIGLX_SOURCES:.c=.o) \
42 ### Include directories
45 -I$(TOP)/src/mesa/drivers/dri/common \
48 -I$(TOP)/include/GL/internal \
50 -I$(TOP)/src/mesa/main \
51 -I$(TOP)/src/mesa/glapi \
52 -I$(TOP)/src/mesa/math \
53 -I$(TOP)/src/mesa/transform \
54 -I$(TOP)/src/mesa/shader \
55 -I$(TOP)/src/mesa/swrast \
56 -I$(TOP)/src/mesa/swrast_setup \
57 -I$(TOP)/src/egl/main \
58 -I$(TOP)/src/egl/drivers/dri \
65 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
68 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
73 default: depend symlinks $(LIBNAME) $(TOP)/$(LIB_DIR)/$(LIBNAME)
76 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile $(TOP)/src/mesa/drivers/dri/Makefile.template
77 $(TOP)/bin/mklib -noprefix -o $@ \
78 $(OBJECTS) $(MESA_MODULES) $(WINOBJ) $(DRI_LIB_DEPS)
81 $(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
82 $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)
85 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
87 $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
88 $(ASM_SOURCES) 2>&1 /dev/null
93 etags `find . -name \*.[ch]` `find ../include`
96 # Remove .o and backup files
98 -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
99 -rm -f depend depend.bak
103 $(INSTALL) -d $(DRI_DRIVER_INSTALL_DIR)
104 $(INSTALL) -m 755 $(LIBNAME) $(DRI_DRIVER_INSTALL_DIR)