4 DRIVER_DEFINES += -DGALLIUM_LLVMPIPE
5 PIPE_DRIVERS += $(TOP)/src/gallium/drivers/llvmpipe/libllvmpipe.a
6 LDFLAGS += $(LLVM_LDFLAGS)
8 DRIVER_EXTRAS = $(LLVM_LIBS)
13 $(TOP)/src/mesa/libmesagallium.a \
14 $(GALLIUM_AUXILIARIES)
16 COMMON_GALLIUM_SOURCES = \
17 $(TOP)/src/mesa/drivers/dri/common/utils.c \
18 $(TOP)/src/mesa/drivers/dri/common/vblank.c \
19 $(TOP)/src/mesa/drivers/dri/common/dri_util.c \
20 $(TOP)/src/mesa/drivers/dri/common/xmlconfig.c
22 COMMON_SOURCES = $(COMMON_GALLIUM_SOURCES) \
23 $(TOP)/src/mesa/drivers/common/driverfuncs.c \
24 $(TOP)/src/mesa/drivers/dri/common/texmem.c \
25 $(TOP)/src/mesa/drivers/dri/common/drirenderbuffer.c
28 $(TOP)/src/mesa/drivers/dri/common/dri_bufmgr.c \
29 $(TOP)/src/mesa/drivers/dri/common/dri_drmpool.c
31 INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
38 ### Include directories
41 -I$(TOP)/src/mesa/drivers/dri/common \
44 -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/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 $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME)
75 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) Makefile \
76 $(TOP)/src/mesa/drivers/dri/Makefile.template $(TOP)/src/mesa/drivers/dri/common/dri_test.o
77 $(MKLIB) -o $@.tmp -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \
78 $(OBJECTS) $(PIPE_DRIVERS) \
79 -Wl,--start-group $(MESA_MODULES) -Wl,--end-group \
80 $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
81 if [ "x${USE_CXX}" == "x" ]; then \
82 $(CC) $(CFLAGS) -o $@.test $(TOP)/src/mesa/drivers/dri/common/dri_test.o $@.tmp $(DRI_LIB_DEPS); \
84 $(CXX) $(CFLAGS) -o $@.test $(TOP)/src/mesa/drivers/dri/common/dri_test.o $@.tmp $(DRI_LIB_DEPS); \
89 $(TOP)/$(LIB_DIR)/gallium:
92 $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME): $(LIBNAME) $(TOP)/$(LIB_DIR)/gallium
93 $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)/gallium
95 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
98 $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
99 $(ASM_SOURCES) 2> /dev/null
104 etags `find . -name \*.[ch]` `find ../include`
107 # Remove .o and backup files
109 -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
110 -rm -f depend depend.bak
114 $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
115 $(MINSTALL) -m 755 $(LIBNAME) $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)