4 PIPE_DRIVERS += $(TOP)/src/gallium/drivers/llvmpipe/libllvmpipe.a
5 LDFLAGS += $(LLVM_LDFLAGS)
7 DRIVER_EXTRAS = $(LLVM_LIBS)
12 $(TOP)/src/mesa/libmesagallium.a \
13 $(GALLIUM_AUXILIARIES)
15 COMMON_GALLIUM_SOURCES = \
16 $(TOP)/src/mesa/drivers/dri/common/utils.c \
17 $(TOP)/src/mesa/drivers/dri/common/vblank.c \
18 $(TOP)/src/mesa/drivers/dri/common/dri_util.c \
19 $(TOP)/src/mesa/drivers/dri/common/xmlconfig.c
21 COMMON_SOURCES = $(COMMON_GALLIUM_SOURCES) \
22 $(TOP)/src/mesa/drivers/common/driverfuncs.c \
23 $(TOP)/src/mesa/drivers/dri/common/texmem.c \
24 $(TOP)/src/mesa/drivers/dri/common/drirenderbuffer.c
27 $(TOP)/src/mesa/drivers/dri/common/dri_bufmgr.c \
28 $(TOP)/src/mesa/drivers/dri/common/dri_drmpool.c
30 INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
37 ### Include directories
40 -I$(TOP)/src/mesa/drivers/dri/common \
43 -I$(TOP)/include/GL/internal \
45 -I$(TOP)/src/gallium/include \
46 -I$(TOP)/src/gallium/auxiliary \
47 -I$(TOP)/src/gallium/drivers \
48 -I$(TOP)/src/gallium/winsys \
50 -I$(TOP)/src/mesa/main \
51 -I$(TOP)/src/mesa/math \
52 -I$(TOP)/src/mesa/transform \
53 -I$(TOP)/src/mesa/shader \
54 -I$(TOP)/src/mesa/swrast \
55 -I$(TOP)/src/mesa/swrast_setup \
56 -I$(TOP)/src/egl/main \
57 -I$(TOP)/src/egl/drivers/dri \
60 LIBNAME_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME)
66 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
69 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
74 default: depend symlinks $(TOP)/$(LIB_DIR)/gallium $(LIBNAME) $(LIBNAME_STAGING)
76 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) Makefile \
77 $(TOP)/src/mesa/drivers/dri/Makefile.template $(TOP)/src/mesa/drivers/dri/common/dri_test.o
78 $(MKLIB) -o $@.tmp -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \
79 $(OBJECTS) $(PIPE_DRIVERS) \
80 -Wl,--start-group $(MESA_MODULES) -Wl,--end-group \
81 $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
82 if [ "x${USE_CXX}" == "x" ]; then \
83 $(CC) $(CFLAGS) -o $@.test $(TOP)/src/mesa/drivers/dri/common/dri_test.o $@.tmp $(DRI_LIB_DEPS); \
85 $(CXX) $(CFLAGS) -o $@.test $(TOP)/src/mesa/drivers/dri/common/dri_test.o $@.tmp $(DRI_LIB_DEPS); \
90 $(TOP)/$(LIB_DIR)/gallium:
93 $(LIBNAME_STAGING): $(LIBNAME)
94 $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)/gallium
96 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
99 $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
100 $(ASM_SOURCES) 2> /dev/null
105 etags `find . -name \*.[ch]` `find ../include`
108 # Remove .o and backup files
110 -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
111 -rm -f depend depend.bak
115 $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
116 $(MINSTALL) -m 755 $(LIBNAME) $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)