Fix recent problems with display lists and other parts of the code.
[mesa.git] / src / mesa / drivers / dri / x11 / Makefile
1 # src/mesa/drivers/dri/x11/Makefile
2
3 TOP = ../../../../..
4 include $(TOP)/configs/current
5
6 LIBNAME = x11_dri.so
7
8 DRIVER_SOURCES = x11_dri.c \
9 $(TOP)/src/mesa/drivers/common/driverfuncs.c \
10 ../common/dri_util.c \
11 ../../x11/xm_api.c \
12 ../../x11/xm_dd.c \
13 ../../x11/xm_line.c \
14 ../../x11/xm_span.c \
15 ../../x11/xm_tri.c
16
17 C_SOURCES = \
18 $(DRIVER_SOURCES) \
19 $(DRI_SOURCES)
20
21
22 # Include directories
23 INCLUDE_DIRS = \
24 -I. \
25 -I../common \
26 -I../../x11 \
27 -I../dri_client \
28 -I../dri_client/imports \
29 -Iserver \
30 -I$(TOP)/include \
31 -I$(DRM_SOURCE_PATH)/shared-core \
32 -I$(TOP)/src/mesa \
33 -I$(TOP)/src/mesa/main \
34 -I$(TOP)/src/mesa/glapi \
35 -I$(TOP)/src/mesa/math \
36 -I$(TOP)/src/mesa/transform \
37 -I$(TOP)/src/mesa/shader \
38 -I$(TOP)/src/mesa/swrast \
39 -I$(TOP)/src/mesa/swrast_setup
40
41 # Core Mesa objects
42 MESA_MODULES = $(TOP)/src/mesa/mesa.a
43
44 # Libraries that the driver shared lib depends on
45 LIB_DEPS = -lm -lpthread -lc
46 # LIB_DEPS = -lGL -lm -lpthread -lc
47
48
49 ASM_SOURCES =
50
51 OBJECTS = $(C_SOURCES:.c=.o) \
52 $(ASM_SOURCES:.S=.o)
53
54
55 ##### RULES #####
56
57 .c.o:
58 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(DEFINES) $< -o $@
59
60 .S.o:
61 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(DEFINES) $< -o $@
62
63
64 ##### TARGETS #####
65
66 default: depend $(LIB_DIR)/$(LIBNAME)
67
68
69 $(LIB_DIR)/$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile
70 CC="$(CC)" CXX="$(CXX)" $(TOP)/bin/mklib -o $(LIBNAME) -noprefix -install $(LIB_DIR) \
71 $(OBJECTS) $(WINLIB) $(LIB_DEPS) $(WINOBJ) $(MESA_MODULES)
72
73
74 depend: $(C_SOURCES) $(ASM_SOURCES)
75 touch depend
76 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(C_SOURCES) $(ASM_SOURCES) \
77 > /dev/null
78
79
80 # Emacs tags
81 tags:
82 etags `find . -name \*.[ch]` `find ../include`
83
84
85 clean:
86 -rm -f *.o server/*.o
87
88
89 include depend