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/vblank.c \
16 $(TOP)/src/mesa/drivers/dri/common/dri_util.c \
17 $(TOP)/src/mesa/drivers/dri/common/xmlconfig.c
19 COMMON_SOURCES = $(COMMON_GALLIUM_SOURCES) \
20 $(TOP)/src/mesa/drivers/common/driverfuncs.c
23 $(TOP)/src/mesa/drivers/dri/common/dri_bufmgr.c \
24 $(TOP)/src/mesa/drivers/dri/common/dri_drmpool.c
26 INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
33 ### Include directories
36 -I$(TOP)/src/mesa/drivers/dri/common \
39 -I$(TOP)/include/GL/internal \
41 -I$(TOP)/src/gallium/include \
42 -I$(TOP)/src/gallium/auxiliary \
43 -I$(TOP)/src/gallium/drivers \
44 -I$(TOP)/src/gallium/winsys \
46 -I$(TOP)/src/mesa/main \
47 -I$(TOP)/src/mesa/math \
48 -I$(TOP)/src/mesa/transform \
49 -I$(TOP)/src/mesa/shader \
50 -I$(TOP)/src/mesa/swrast \
51 -I$(TOP)/src/mesa/swrast_setup \
52 -I$(TOP)/src/egl/main \
53 -I$(TOP)/src/egl/drivers/dri \
56 LIBNAME_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME)
62 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
65 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
70 default: depend symlinks $(TOP)/$(LIB_DIR)/gallium $(LIBNAME) $(LIBNAME_STAGING)
72 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) Makefile \
73 $(TOP)/src/mesa/drivers/dri/Makefile.targets $(TOP)/src/mesa/drivers/dri/common/dri_test.o
74 $(MKLIB) -o $@.tmp -noprefix -linker '$(CXX)' -ldflags '$(LDFLAGS)' \
75 $(OBJECTS) $(PIPE_DRIVERS) \
76 -Wl,--start-group $(MESA_MODULES) -Wl,--end-group \
77 $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
78 $(CXX) $(CFLAGS) -o $@.test $(TOP)/src/mesa/drivers/dri/common/dri_test.o $@.tmp $(DRI_LIB_DEPS) $(LDFLAGS);
82 $(TOP)/$(LIB_DIR)/gallium:
85 $(LIBNAME_STAGING): $(LIBNAME)
86 $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)/gallium
88 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
91 $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
92 $(ASM_SOURCES) 2> /dev/null
97 etags `find . -name \*.[ch]` `find ../include`
100 # Remove .o and backup files
102 -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
103 -rm -f depend depend.bak
107 $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
108 $(MINSTALL) -m 755 $(LIBNAME) $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)