dri: Remove unused dri texmem.c
[mesa.git] / src / gallium / targets / Makefile.dri
1 # -*-makefile-*-
2
3
4 ifeq ($(MESA_LLVM),1)
5 LDFLAGS += $(LLVM_LDFLAGS)
6 DRIVER_EXTRAS = $(LLVM_LIBS)
7 endif
8
9 MESA_MODULES = \
10 $(TOP)/src/mesa/libmesagallium.a \
11 $(GALLIUM_AUXILIARIES)
12
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
18
19 COMMON_SOURCES = $(COMMON_GALLIUM_SOURCES) \
20 $(TOP)/src/mesa/drivers/common/driverfuncs.c
21
22 COMMON_BM_SOURCES = \
23 $(TOP)/src/mesa/drivers/dri/common/dri_bufmgr.c \
24 $(TOP)/src/mesa/drivers/dri/common/dri_drmpool.c
25
26 INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
27
28 OBJECTS = \
29 $(C_SOURCES:.c=.o) \
30 $(ASM_SOURCES:.S=.o)
31
32
33 ### Include directories
34 SHARED_INCLUDES = \
35 -I. \
36 -I$(TOP)/src/mesa/drivers/dri/common \
37 -Iserver \
38 -I$(TOP)/include \
39 -I$(TOP)/include/GL/internal \
40 -I$(TOP)/src/mapi \
41 -I$(TOP)/src/gallium/include \
42 -I$(TOP)/src/gallium/auxiliary \
43 -I$(TOP)/src/gallium/drivers \
44 -I$(TOP)/src/gallium/winsys \
45 -I$(TOP)/src/mesa \
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 \
54 $(LIBDRM_CFLAGS)
55
56 LIBNAME_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME)
57
58
59 ##### RULES #####
60
61 .c.o:
62 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
63
64 .S.o:
65 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
66
67
68 ##### TARGETS #####
69
70 default: depend symlinks $(TOP)/$(LIB_DIR)/gallium $(LIBNAME) $(LIBNAME_STAGING)
71
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);
79 @rm -f $@.test
80 mv -f $@.tmp $@
81
82 $(TOP)/$(LIB_DIR)/gallium:
83 mkdir -p $@
84
85 $(LIBNAME_STAGING): $(LIBNAME)
86 $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)/gallium
87
88 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
89 rm -f depend
90 touch depend
91 $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
92 $(ASM_SOURCES) 2> /dev/null
93
94
95 # Emacs tags
96 tags:
97 etags `find . -name \*.[ch]` `find ../include`
98
99
100 # Remove .o and backup files
101 clean:
102 -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
103 -rm -f depend depend.bak
104
105
106 install: $(LIBNAME)
107 $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
108 $(MINSTALL) -m 755 $(LIBNAME) $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
109
110
111 include depend