DRI2: Drop sarea, implement swap buffers in the X server.
[mesa.git] / src / mesa / drivers / dri / Makefile
1 # src/mesa/drivers/dri/Makefile
2
3 TOP = ../../../..
4
5 include $(TOP)/configs/current
6
7
8
9 default: $(TOP)/$(LIB_DIR) subdirs
10
11
12 $(TOP)/$(LIB_DIR):
13 -mkdir $(TOP)/$(LIB_DIR)
14
15
16 subdirs:
17 @for dir in $(DRI_DIRS) ; do \
18 if [ -d $$dir ] ; then \
19 (cd $$dir && $(MAKE)) || exit 1 ; \
20 fi \
21 done
22
23 pcedit = sed \
24 -e 's,@INSTALL_DIR@,$(INSTALL_DIR),' \
25 -e 's,@INSTALL_LIB_DIR@,$(INSTALL_LIB_DIR),' \
26 -e 's,@INSTALL_INC_DIR@,$(INSTALL_INC_DIR),' \
27 -e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' \
28 -e 's,@DRI_DRIVER_DIR@,$(DRI_DRIVER_SEARCH_DIR),'
29
30 dri.pc: dri.pc.in
31 $(pcedit) $< > $@
32
33
34 install: dri.pc
35 @for dir in $(DRI_DIRS) ; do \
36 if [ -d $$dir ] ; then \
37 (cd $$dir && $(MAKE) install) || exit 1 ; \
38 fi \
39 done
40 $(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
41 $(INSTALL) -m 0644 $(TOP)/include/GL/internal/dri_interface.h \
42 $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
43 $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig
44 $(INSTALL) -m 0644 dri.pc $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig
45
46
47 clean:
48 -@for dir in $(DRI_DIRS) ; do \
49 if [ -d $$dir ] ; then \
50 (cd $$dir && $(MAKE) clean) ; \
51 fi \
52 done
53 -rm -f common/*.o
54 -rm -f *.pc