remove specular color assertion (the path works)
[mesa.git] / src / glx / x11 / Makefile
1 TOP = ../../..
2 include $(TOP)/configs/current
3
4 EXTRA_DEFINES = -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER \
5 -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\"
6
7 SOURCES = \
8 glcontextmodes.c \
9 clientattrib.c \
10 compsize.c \
11 eval.c \
12 glxcmds.c \
13 glxext.c \
14 glxextensions.c \
15 indirect.c \
16 indirect_init.c \
17 indirect_size.c \
18 indirect_window_pos.c \
19 indirect_transpose_matrix.c \
20 indirect_vertex_array.c \
21 indirect_vertex_program.c \
22 pixel.c \
23 pixelstore.c \
24 render2.c \
25 renderpix.c \
26 single2.c \
27 singlepix.c \
28 vertarr.c \
29 xfont.c \
30 glx_pbuffer.c \
31 glx_query.c \
32 glx_texture_compression.c \
33 dri_glx.c \
34 XF86dri.c
35
36 include $(TOP)/src/mesa/sources
37
38 MESA_ASM_API = $(addprefix $(TOP)/src/mesa/, $(ASM_API))
39 MESA_GLAPI_SOURCES = $(addprefix $(TOP)/src/mesa/, $(GLAPI_SOURCES))
40 MESA_GLAPI_OBJECTS = $(addprefix $(TOP)/src/mesa/, $(GLAPI_OBJECTS))
41
42 OBJECTS = $(SOURCES:.c=.o) $(MESA_GLAPI_OBJECTS)
43
44 INCLUDES = -I. \
45 -I$(TOP)/include \
46 -I$(TOP)/include/GL/internal \
47 -I$(TOP)/src/mesa/main \
48 -I$(TOP)/src/mesa/glapi \
49 $(LIBDRM_CFLAGS) \
50 $(X11_INCLUDES)
51
52
53 ##### RULES #####
54
55 .c.o:
56 $(CC) -c $(INCLUDES) $(CFLAGS) $(EXTRA_DEFINES) $< -o $@
57
58 .S.o:
59 $(CC) -c $(INCLUDES) $(CFLAGS) $(EXTRA_DEFINES) $< -o $@
60
61 ##### TARGETS #####
62
63 default: depend $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
64
65 # Make libGL
66 $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) Makefile
67 $(TOP)/bin/mklib -o $(GL_LIB) -linker '$(CC)' \
68 -major 1 -minor 2 $(MKLIB_OPTIONS) \
69 -install $(TOP)/$(LIB_DIR) $(GL_LIB_DEPS) $(OBJECTS)
70
71
72 depend: $(SOURCES) $(MESA_GLAPI_SOURCES) $(MESA_ASM_API) Makefile
73 rm -f depend
74 touch depend
75 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) \
76 $(MESA_GLAPI_SOURCES) $(MESA_ASM_API)
77
78
79 # Emacs tags
80 tags:
81 etags `find . -name \*.[ch]` `find $(TOP)/include`
82
83 # Dummy install target
84 install:
85
86 # Remove .o and backup files
87 clean:
88 -rm -f $(TOP)/$(LIB_DIR)/libGL.so*
89 -rm -f *.o *~
90 -rm -f depend
91
92 include depend