5 LDFLAGS += $(LLVM_LDFLAGS)
6 DRIVER_EXTRAS = $(LLVM_LIBS)
10 $(TOP)/src/mesa/libmesagallium.a \
11 $(GALLIUM_AUXILIARIES)
13 COMMON_GALLIUM_SOURCES = \
14 $(TOP)/src/mesa/drivers/dri/common/utils.c \
15 $(TOP)/src/mesa/drivers/dri/common/dri_util.c \
16 $(TOP)/src/mesa/drivers/dri/common/xmlconfig.c
18 COMMON_SOURCES = $(COMMON_GALLIUM_SOURCES) \
19 $(TOP)/src/mesa/drivers/common/driverfuncs.c
22 $(TOP)/src/mesa/drivers/dri/common/dri_bufmgr.c \
23 $(TOP)/src/mesa/drivers/dri/common/dri_drmpool.c
25 INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
32 ### Include directories
35 -I$(TOP)/src/mesa/drivers/dri/common \
38 -I$(TOP)/include/GL/internal \
40 -I$(TOP)/src/gallium/include \
41 -I$(TOP)/src/gallium/auxiliary \
42 -I$(TOP)/src/gallium/drivers \
43 -I$(TOP)/src/gallium/winsys \
45 -I$(TOP)/src/mesa/main \
46 -I$(TOP)/src/mesa/math \
47 -I$(TOP)/src/mesa/transform \
48 -I$(TOP)/src/mesa/shader \
49 -I$(TOP)/src/mesa/swrast \
50 -I$(TOP)/src/mesa/swrast_setup \
51 -I$(TOP)/src/egl/main \
52 -I$(TOP)/src/egl/drivers/dri \
55 LIBNAME_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME)
61 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
64 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
69 default: depend symlinks $(TOP)/$(LIB_DIR)/gallium $(LIBNAME) $(LIBNAME_STAGING)
71 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) Makefile \
72 $(TOP)/src/mesa/drivers/dri/Makefile.targets $(TOP)/src/mesa/drivers/dri/common/dri_test.o
73 $(MKLIB) -o $@.tmp -noprefix -linker '$(CXX)' -ldflags '$(LDFLAGS)' \
74 $(OBJECTS) $(PIPE_DRIVERS) \
75 -Wl,--start-group $(MESA_MODULES) -Wl,--end-group \
76 $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
77 $(CXX) $(CFLAGS) -o $@.test $(TOP)/src/mesa/drivers/dri/common/dri_test.o $@.tmp $(DRI_LIB_DEPS) $(LDFLAGS);
81 $(TOP)/$(LIB_DIR)/gallium:
84 $(LIBNAME_STAGING): $(LIBNAME)
85 $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)/gallium
87 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
90 $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
91 $(ASM_SOURCES) 2> /dev/null
96 etags `find . -name \*.[ch]` `find ../include`
99 # Remove .o and backup files
101 -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
102 -rm -f depend depend.bak
106 $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
107 $(MINSTALL) -m 755 $(LIBNAME) $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)