g3dvl: Use sobel filter for chroma interpolation
[mesa/nouveau-pmpeg.git] / src / gallium / targets / Makefile.dri
blobe828d4fcaae878d940a76e63860355d4ee4c2149
1 # -*-makefile-*-
4 ifeq ($(MESA_LLVM),1)
5 LDFLAGS += $(LLVM_LDFLAGS)
6 DRIVER_EXTRAS = $(LLVM_LIBS)
7 endif
9 MESA_MODULES = \
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
21 COMMON_BM_SOURCES = \
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)
27 OBJECTS = \
28         $(C_SOURCES:.c=.o) \
29         $(ASM_SOURCES:.S=.o) 
32 ### Include directories
33 SHARED_INCLUDES = \
34         -I. \
35         -I$(TOP)/src/mesa/drivers/dri/common \
36         -Iserver \
37         -I$(TOP)/include \
38         -I$(TOP)/include/GL/internal \
39         -I$(TOP)/src/mapi \
40         -I$(TOP)/src/gallium/include \
41         -I$(TOP)/src/gallium/auxiliary \
42         -I$(TOP)/src/gallium/drivers \
43         -I$(TOP)/src/gallium/winsys \
44         -I$(TOP)/src/mesa \
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 \
53         $(LIBDRM_CFLAGS)
55 LIBNAME_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME)
58 ##### RULES #####
60 .c.o:
61         $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
63 .S.o:
64         $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
67 ##### TARGETS #####
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);
78         @rm -f $@.test
79         mv -f $@.tmp $@
81 $(TOP)/$(LIB_DIR)/gallium:
82         mkdir -p $@
84 $(LIBNAME_STAGING): $(LIBNAME)
85         $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)/gallium
87 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
88         rm -f depend
89         touch depend
90         $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
91                 $(ASM_SOURCES) 2> /dev/null
94 # Emacs tags
95 tags:
96         etags `find . -name \*.[ch]` `find ../include`
99 # Remove .o and backup files
100 clean:
101         -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
102         -rm -f depend depend.bak
105 install: $(LIBNAME)
106         $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
107         $(MINSTALL) -m 755 $(LIBNAME) $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
110 include depend