OSDN Git Service

mesa: distinct gl_client_array arrays are gone
[android-x86/external-mesa.git] / src / gallium / winsys / i965 / xlib / Makefile
1 # src/gallium/winsys/i965/xlib/Makefile
2
3 # This makefile produces a "stand-alone" libGL.so which is based on
4 # Xlib (no DRI HW acceleration)
5
6
7 TOP = ../../../../..
8 include $(TOP)/configs/current
9
10
11 GL_MAJOR = 1
12 GL_MINOR = 5
13 GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
14
15
16 INCLUDE_DIRS = \
17         -I$(TOP)/include \
18         -I$(TOP)/src/mesa \
19         -I$(TOP)/src/mesa/main \
20         -I$(TOP)/src/gallium/include \
21         -I$(TOP)/src/gallium/drivers \
22         -I$(TOP)/src/gallium/drivers/i965 \
23         -I$(TOP)/src/gallium/drivers/i965/include \
24         -I$(TOP)/src/gallium/state_trackers/glx/xlib \
25         -I$(TOP)/src/gallium/auxiliary \
26         -I/usr/include/drm
27
28 XLIB_WINSYS_SOURCES = \
29         xlib_i965.c \
30
31
32
33 XLIB_WINSYS_OBJECTS = $(XLIB_WINSYS_SOURCES:.c=.o)
34
35
36
37 LIBS = \
38         $(TOP)/src/gallium/drivers/i965/libi965.a \
39         $(TOP)/src/gallium/drivers/trace/libtrace.a \
40         $(TOP)/src/gallium/state_trackers/glx/xlib/libxlib.a \
41         $(TOP)/src/mapi/glapi/libglapi.a \
42         $(TOP)/src/mesa/libmesagallium.a \
43         $(GALLIUM_AUXILIARIES) 
44
45 #       $(TOP)/src/gallium/drivers/i965/lib/libi9xx.a \
46
47 .SUFFIXES : .cpp
48
49 .c.o:
50         $(CC) -c $(INCLUDE_DIRS) $(DEFINES) $(CFLAGS) $< -o $@
51
52 .cpp.o:
53         $(CXX) -c $(INCLUDE_DIRS) $(DEFINES) $(CXXFLAGS) $< -o $@
54
55
56
57 default: $(TOP)/$(LIB_DIR)/gallium $(TOP)/$(LIB_DIR)/gallium/$(GL_LIB_NAME)
58
59 $(TOP)/$(LIB_DIR)/gallium:
60         @ mkdir -p $(TOP)/$(LIB_DIR)/gallium
61
62 # Make the libGL.so library
63 $(TOP)/$(LIB_DIR)/gallium/$(GL_LIB_NAME): $(XLIB_WINSYS_OBJECTS) $(LIBS) Makefile
64         $(TOP)/bin/mklib -o $(GL_LIB) \
65                 -linker "$(CC)" \
66                 -major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
67                 -install $(TOP)/$(LIB_DIR)/gallium \
68                 $(MKLIB_OPTIONS) $(XLIB_WINSYS_OBJECTS) \
69                 -Wl,--start-group $(LIBS) -Wl,--end-group $(GL_LIB_DEPS)
70
71
72 depend: $(XLIB_WINSYS_SOURCES)
73         @ echo "running $(MKDEP)"
74         @ rm -f depend  # workaround oops on gutsy?!?
75         @ touch depend
76         $(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(XLIB_WINSYS_SOURCES) \
77                 > /dev/null 2>/dev/null
78
79
80 install: default
81         $(INSTALL) -d $(INSTALL_DIR)/include/GL
82         $(INSTALL) -d $(INSTALL_DIR)/$(LIB_DIR)
83         $(INSTALL) -m 644 $(TOP)/include/GL/*.h $(INSTALL_DIR)/include/GL
84         @if [ -e $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) ]; then \
85                 $(MINSTALL) $(TOP)/$(LIB_DIR)/libGL* $(INSTALL_DIR)/$(LIB_DIR); \
86         fi
87
88
89 # Emacs tags
90 tags:
91         etags `find . -name \*.[ch]` $(TOP)/include/GL/*.h
92
93 clean:
94         -rm -f *.o
95
96
97 include depend